[OS X TeX] command-click on the name of a console file
Peter Dyballa
Peter_Dyballa at Web.DE
Sat Nov 17 13:23:30 EST 2012
Am 17.11.2012 um 18:39 schrieb Michael Sharpe:
> Assuming you're using pdflatex and have included
>
> \usepackage[abspath]{currfile}
>
> add the line
>
> \typeout{^^J^^JFILEPATH: \currfileabspath^^J^^J} % or \currfileabsdir
>
> just before \end{document}.
With
\documentclass{minimal}
\usepackage[abspath]{currfile}
\immediate\write16{==\jobname: == \currfiledir == Bonjour, PDF!==}
\input{Meldung}
%\include{Meldung}
\listfiles
\pagestyle{empty}
\begin{document}
Text! -- \currfiledir{} -- \currfilebase{} -- \currfileext{} -- \currfilename{} -- \currfilepath{} --
\arabic{currfiledepth} --\\ \currfileabsdir{} -- \currfileabspath{} --\\
\thepwd{} -- \getmainfile\themainfile{} -- \theabspath{} -- \theabsdir{} --
\end{document}
\currfiledir is empty, in my LaTeX file and also in the included file. Changing the minimal class to article makes no other change. \typeout and \immediate\write16 also cannot output the value of \currfiledir when in the body.
(In four or five hours I might have more time. Also to re-read the documentation.)
--
Greetings
Pete
War springs from unseen and generally insignificant causes.
– Anonymous
More information about the MacOSX-TeX
mailing list