Re:Deurbanising the Web [pdf]
by snksnk on Monday July 19, 2021 @07:04AM
(#27881188)
Why not use TeX/LaTeX instead and also include a link to the code?
[ Parent
| on HN ]
Re:Deurbanising the Web [pdf]
by jimhefferon on Monday July 19, 2021 @07:44AM
(#27881494)
The LaTeX below will leave a push-pin symbol in the text, and clicking on it shows the code.
\documentclass{article}
\usepackage{attachfile}
\usepackage{lipsum}
\begin{document}\expandafter\attachfile\expandafter{\jobname.tex}
\lipsum[1-150]
\end{document}
Re:Deurbanising the Web [pdf]
by leephillips on Monday July 19, 2021 @09:47AM
(#27882611)
Using xelatex, I got only the text, no pushbutton. Using pdflatex, I got a pushbutton, but it was not a hyperlink, just an image. What engine do you use to get this to work?
Re:Deurbanising the Web [pdf]
by jimhefferon on Monday July 19, 2021 @12:30PM
(#27884482)
I ran pdflatex from a 2017 TeX Live install under Ubuntu, and viewed in Acrobat Reader.
Re:Deurbanising the Web [pdf]
by leephillips on Monday July 19, 2021 @12:37PM
(#27884556)
Ahh, I think it is a viewer problem. Sadly, most viewers can not handle PDF attachments properly or at all.