zauguin / intopdf

3 stars 1 forks source link

"filespec" is not expanded #4

Open koppor opened 1 year ago

koppor commented 1 year ago

The parameter filespec is not expanded.

MWE:

\documentclass{article}
\newcommand{\filename}{FileName.bib}
\newcommand{\fullpath}{Test.bib}
\usepackage{intopdf}
\begin{document}
\attachandlink[\filename]{\fullpath}[application/x-bibtex]{BibTeX entry of this paper}{BibTeX}
\end{document}

PDF:

image

Instead of "filename", fileName.bib should be shown.

I tried with the trick \romannumeral-`X, but it did not help.

zauguin commented 1 year ago

You can probably do \expanded{\attachandlink[\filename]{\fullpath}[application/x-bibtex]{BibTeX entry of this paper}{BibTeX}} if you want everything to be expanded for now.