pub struct InputDefinitionOptions {Show 16 fields
pub extension: Option<Cow<'static, str>>,
pub options: Vec<String>,
pub after: Tokens,
pub notex: bool,
pub noerror: bool,
pub noltxml: bool,
pub withoptions: Option<Vec<String>>,
pub handleoptions: bool,
pub as_class: bool,
pub raw: bool,
pub reloadable: bool,
pub reread: bool,
pub at_letter: bool,
pub searchpaths_only: bool,
pub nested_class: bool,
pub format_module: Option<FormatModule>,
}Expand description
a configuration for loading LaTeX definition files (such as .sty, .cls, and their bindings)
Fields§
§extension: Option<Cow<'static, str>>an optional extension (such as “sty”)
options: Vec<String>package options to pass into the loaded library, appended to \opt@<name>.<ext> (pass_options). A binding that
reads its own raw file passes none: the \usepackage that loaded the binding recorded them already, and passing
them again runs every option twice (\opt@<name>.<ext> read noautomatic,noautomatic).
after: TokensTokens to process after the definition is loaded
notex: boolflag to forbid raw TeX sources
noerror: boolflag to forbid errors ?
noltxml: boolflag to forbid binding dispatch
withoptions: Option<Vec<String>>collection of (package) options to process when loading the dependency
handleoptions: boolflag to handle options, or ignore them
as_class: boolflag to process in .cls mode (default: false)
raw: boolflag to indicate reading the file raw in Gullet
reloadable: boolflag to allow reloading a previously loaded definitions file
reread: bool\input of a raw file already read while reading definitions: TeX
reads it again. Forbids binding dispatch like noltxml, without the
\@currname directory resolution noltxml also implies (see input).
at_letter: boolflag: set @ catcode to LETTER during loading (default true). Set to false for packages like xy.tex that need @ to stay as OTHER.
searchpaths_only: boolWhen set, raw-file lookup is restricted to the user-supplied
SEARCHPATHS (SOURCEDIRECTORY + graphicspaths), skipping the
kpsewhich fallback into system texmf. Matches Perl Package.pm’s
searchpaths_only => 1 — enabled by the localrawstyles option
to latexml.sty. Perl ref: Package.pm L2135, L2674.
nested_class: boolA class loaded while another class loads (\LoadClass): its options are
its own (\opt@<name>.cls), never the global options. latex.ltx sets
\@classoptionslist only at the first class load, \documentclass
(latex.ltx:18716-18718; KPE #304).
format_module: Option<FormatModule>The binding’s own raw file is a module the LaTeX format holds: while the format holds it, the read takes the TeX
tree’s file, not a paper’s copy (format_module_path).