I'm currently using \PassOptionsToClass, as suggested in Conditional Compiling and \documentclass to compile a document in several languages. However, if I use language-options in \PassOptionsToClass, they will not be passed to babel.
MWEs:
\documentclass[english]{article}
\usepackage{babel}
\begin{document}
\end{document}
compiles (without complaints) an empty document. But
\PassOptionsToClass{english}{article}
\documentclass{article}
\usepackage{babel}
\begin{document}
\end{document}
yields
! Package babel Error: You haven't specified a language option.
since babel does not get the english option.
So here is my actual question:
Is there any (simple) possibility to add a global option (which is passed to subsequent packages) before the actual \documentclass?
\documentclass[<opt>]{article}the option<opt>is also passed to all subsequently-loaded packages. Apparently this doesn't happen when using\PassOptionsToClass{<opt>}{article}as shown in the example. – Paul Gessler Jan 15 '15 at 13:18