Skip to main content

CoreOptions

Struct CoreOptions 

Source
pub struct CoreOptions {
    pub model: Option<Model>,
    pub verbosity: Option<i32>,
    pub strict: Option<bool>,
    pub include_comments: Option<bool>,
    pub include_styles: Option<bool>,
    pub nomathparse: Option<bool>,
    pub source_map: Option<bool>,
    pub documentid: Option<String>,
    pub search_paths: Option<Vec<String>>,
    pub graphics_paths: Option<Vec<String>>,
    pub input_encoding: Option<String>,
    pub preload: Option<Vec<String>>,
}
Expand description

Configuration for the Core processing

Fields§

§model: Option<Model>

a custom schema-induced model (default is None) for the final XML

§verbosity: Option<i32>

default is 0, sub-zero values are quiet, positive values are verbose

§strict: Option<bool>

strict error-reporting (is this still used?)

§include_comments: Option<bool>

toggle preserving comments in the XML on/off

§include_styles: Option<bool>

toggle loading raw .sty modules on/off

§nomathparse: Option<bool>

disable math parsing (enabled by default)

§source_map: Option<bool>

enable source-locator (--source-map) tracking + emission (off by default). See docs/performance/SOURCE_PROVENANCE.md.

§documentid: Option<String>

an optional, fixed id prefix for all xml:id attributes

§search_paths: Option<Vec<String>>

the list of paths used for loading TeX sources and packages

§graphics_paths: Option<Vec<String>>

the list of paths used for loading graphics assets

§input_encoding: Option<String>

set an explicit encoding of the input text

§preload: Option<Vec<String>>

a list of package names to preload before processing start

Trait Implementations§

Source§

impl Default for CoreOptions

Source§

fn default() -> CoreOptions

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.