[OS X TeX] Wish for TeXShop : attach custom icon to a given file
Giovanni Dore
giovanni.dore at unibo.it
Tue Feb 25 08:36:24 EST 2014
Il giorno 23/feb/2014, alle ore 19.34, Iraj Kalantari ha scritto:
> As an option, can TexShop when typesetting *myfile.tex*, use the name *zzmyfile.aux* instead of *myflie.aux*? (And similarly.)
To get this it is sufficient to add the lines
\let\standardjobname\jobname
\def\jobname{zzz\standardjobname}
to the source file before \begin{document}.
If you \include some files it is also necessary to add the lines
\makeatletter
\def\@include#1 {%
\clearpage
\if at filesw
\immediate\write\@mainaux{\string\@input{zzz#1.aux}}%
\fi
\@tempswatrue
\if at partsw
\@tempswafalse
\edef\reserved at b{#1}%
\@for\reserved at a:=\@partlist\do
{\ifx\reserved at a\reserved at b\@tempswatrue\fi}%
\fi
\if at tempswa
\let\@auxout\@partaux
\if at filesw
\immediate\openout\@partaux zzz#1.aux
\immediate\write\@partaux{\relax}%
\fi
\@input@{#1.tex}%
\clearpage
\@writeckpt{#1}%
\if at filesw
\immediate\closeout\@partaux
\fi
\else
\deadcycles\z@
\@nameuse{cp@#1}%
\fi
\let\@auxout\@mainaux}
\makeatother
Use this at your own risk, it is possible that in some situation this code lead to undesirable results or errors.
Giovanni
More information about the MacOSX-TeX
mailing list