Skip to main content

InputDefinitionOptions

Struct InputDefinitionOptions 

Source
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: Tokens

Tokens to process after the definition is loaded

§notex: bool

flag to forbid raw TeX sources

§noerror: bool

flag to forbid errors ?

§noltxml: bool

flag to forbid binding dispatch

§withoptions: Option<Vec<String>>

collection of (package) options to process when loading the dependency

§handleoptions: bool

flag to handle options, or ignore them

§as_class: bool

flag to process in .cls mode (default: false)

§raw: bool

flag to indicate reading the file raw in Gullet

§reloadable: bool

flag 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: bool

flag: set @ catcode to LETTER during loading (default true). Set to false for packages like xy.tex that need @ to stay as OTHER.

§searchpaths_only: bool

When 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: bool

A 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).

Trait Implementations§

Source§

impl Default for InputDefinitionOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.