[texhax] global options on the command-line

Philip Taylor P.Taylor at Rhul.Ac.Uk
Sun Feb 9 19:05:28 CET 2014

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

More information about the texhax mailing list