Skip to main content

load_class_with_options

Function load_class_with_options 

Source
pub fn load_class_with_options(name: &str, after: Tokens) -> Result<()>
Expand description

Perl: LoadClass($name, withoptions => 1) — load a class passing the caller’s class options through to the child. Reads class_options from state (populated by the outer \documentclass invocation) and forwards those as the child’s options list, matching Perl Package.pm LoadClass’s withoptions branch. \LoadClassWithOptions — the calling class’s options go to the loaded class (latex.ltx:18637 \@loadwithoptions, calling_file_options); with no file on the load stack (a class binding delegating directly, e.g. amsart → ams_core) the document class’s recorded options stand in. The \LoadClassWithOptions constructor once passed an EMPTY list, so a raw class delegating its options (oblivoir.cls → oblivoir-utf.cls:77 \if@AMSmath\RequirePackage{amsmath}) never saw [amsmath] (istgame-doc).