3 ms·
Why not use TeX/LaTeX instead and also include a link to the code?
by snksnk 5y ago
Why not use TeX/LaTeX instead and also include a link to the code?
- jimhefferon 5y agoThe 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}
- leephillips 5y agoUsing 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?
- jimhefferon 5y agoI ran pdflatex from a 2017 TeX Live install under Ubuntu, and viewed in Acrobat Reader.
- leephillips 5y agoAhh, I think it is a viewer problem. Sadly, most viewers can not handle PDF attachments properly or at all.