[latexrefman] pdflatex -jobname=aa "\RequirePackage[draft]@{graphicx@}\input@{aa.tex@}"
Vincent Belaïche
vincent.belaiche at gmail.com
Mon May 11 14:54:06 CEST 2020
Just as a reminder to myself when I take on writing the jobname node,
one thing to mention is that all the characters in the \jobname are in
catcode « other » (12), so if one wants to make some test based on the
jobname being equal to, say, « toto » on can do this:
\edef\temp{\string t\string o\string t\string o}%
\ifx\jobname\temp
...
\fi
another option on modern engines is:
\ifnum\pdfstrcmp{\jobname}{toto}=\z@
...
\fi
Le 30/04/2020 à 00:49, Karl Berry a écrit :
> one more reason for using \PassOptionsToPackage instead of
> \RequirePackage !
>
> If it works with \PassOptionsToPackage, that is good.
> The -jobname=aa example is still worth showing for its own sake.
>
> All the various things you've pointed out seem worthwhile to me.
> If you want to write a draft change, that would be good.
>
> As I mentioned before, if all this stuff gets added, jobname needs to be
> its own node.
>
> a more complete example can be found in the run_tex function of the
> bash script texi2dvi
>
> It's a general Bourne shell script, not bash-specific. Anyway, yes, I
> had "fun" messing around with that script in general and that feature
> specifically. I see Gavin has substantially generalized it since I
> worked on it. Yikes. --best, karl.
More information about the latexrefman
mailing list.