3 ms·
The LaTeX below will leave a push-pin symbol in the text, and clicking on it shows the code. \documentclass{article} \usepackage{attachfile} \usepackage{
by jimhefferon 5y ago
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}
- 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.