[texhax] global options on the command-line
Philipp Stephani
p.stephani2 at gmail.com
Sun Feb 9 23:39:39 CET 2014
Or (untested):
pdflatex '\PassOptionsToClass{...}{article} \input{...}'
On Sonntag, 9. Februar 2014 19:06:35, Philip Taylor <P.Taylor at rhul.ac.uk>
wrote:
>
>
> Bob Tennent wrote:
>
> > How can I pass "global" options (normally inserted after
> > \documentclass) on the command-line? The input file itself
> > has a \documentclass command.
>
> Maybe :
>
> TeX \toks 0 = {my global options}\input <input file>
>
> \expandafter \documentclass \the \toks 0 {whatever}
>
> Philip Taylor
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20140209/673cf64c/attachment-0001.html>
More information about the texhax
mailing list