[pdftex] Reference to attached file

Victor Ivrii vivrii at gmail.com
Sat Dec 10 12:20:13 CET 2005

Let put in preamble


and let's place somewhere in the document


% \externaldocument[main-]{main}[main.pdf]


% \ref{main-eqn3}



%% \label{blah}


\immediate\write18{pdflatex note1}


Then running pdflatex --shell-escape  produces also note1.pdf which is also
attached to main.pdf



1) I want make a reference in note1 to eqn3 in the main.pdf. To do
this I need to



in the preamble and body respectively. Unfortunately \externaldocument
returns an
!Fle ended within \read.

I.11 \externaldocument[main-]{main}[main.pdf]

Here 2-39 is a label completely unrelated (well before) I inserted in
the document
the ansatz above.

So, how I can make this reference from attachment (note1.pdf) to main.pdf work?

2) How I can make working \pageref{blah}?

I can make these links with Acrobat but I am looking for a LaTeX solution.
Thank you very much in advance.
Victor Ivrii, Department of Mathematics, University of Toronto

More information about the pdftex mailing list