Or (untested):<br><br> pdflatex '\PassOptionsToClass{...}{article} \input{...}'<br><br><div>On Sonntag, 9. Februar 2014 19:06:35, Philip Taylor <<a href="mailto:P.Taylor@rhul.ac.uk">P.Taylor@rhul.ac.uk</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Bob Tennent wrote:<br>
<br>
> How can I pass "global" options (normally inserted after<br>
> \documentclass) on the command-line? The input file itself<br>
> has a \documentclass command.<br>
<br>
Maybe :<br>
<br>
TeX \toks 0 = {my global options}\input <input file><br>
<br>
\expandafter \documentclass \the \toks 0 {whatever}<br>
<br>
Philip Taylor<br>
______________________________<u></u>_________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/<u></u>texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/<u></u>listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org" target="_blank">postmaster@tug.org</a><br>
</blockquote>