In my thesis I have a few listings and I also want to provide them online because copying the listings from the PDF output is a bit cumbersome (scattered around multiple pages, line numbering is also copied,...). In the PDF it looks like
which I get from
\lstinputlisting[label={lst:ex1},caption={R code for Example~\ref{ex:intro}},frame=single]{../R/Example1/PCAIntro.r}
Now I want to write a PHP script which provides the file PCAIntro.r online and I want to refer to "Example 2.1.0.1" there. So my question is:
How do I get the result 2.1.0.1 of \ref{ex:intro} to a separate file for further processing?
.auxfile...? – cmhughes Dec 09 '16 at 11:00aux,bbl,blg,idx,ilg,lof,log,log,out. I have to learn about.aux-files first. It looks promising. Thanks. But is there also atexcommand to write a specific\refto some file? – phinz Dec 09 '16 at 11:14