pub struct MathRecomposeOptions {
pub surround_display_math: (String, String),
pub emit_flm_math_environment_macro: bool,
}Expand description
The options of the math feature that say how the recomposed LaTeX writes a
displayed formula: an option type (crate::model::options) whose
values are set on a render request
(Bind::Render). The rules of a
feature that processes mathematics read them on the latex-recomposed
backend, through the parts of this module (see the module documentation).
§Examples
use flm_core::stdlib::features::math::MathRecomposeOptions;
let options = MathRecomposeOptions::default();
assert_eq!(options.surround_display_math, (String::new(), String::new()));
assert!(!options.emit_flm_math_environment_macro);Fields§
§surround_display_math: (String, String)The LaTeX written, byte for byte, before and after every displayed
formula: every display-math environment and every displayed math group
(\[…\]). Both empty by default.
emit_flm_math_environment_macro: boolWhether an environment is written as
\flmMathEnvironment{<name>}{<arguments>}{<body>} rather than as
\begin{<name>}…\end{<name>}. Off by default. The style file then
holds the definition of \flmMathEnvironment, which a user may
redefine.
Trait Implementations§
Source§impl Clone for MathRecomposeOptions
impl Clone for MathRecomposeOptions
Source§impl Debug for MathRecomposeOptions
impl Debug for MathRecomposeOptions
Source§impl Default for MathRecomposeOptions
impl Default for MathRecomposeOptions
Source§impl<'de> Deserialize<'de> for MathRecomposeOptionswhere
MathRecomposeOptions: Default,
impl<'de> Deserialize<'de> for MathRecomposeOptionswhere
MathRecomposeOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MathRecomposeOptions
Source§impl Hash for MathRecomposeOptions
impl Hash for MathRecomposeOptions
Source§impl JsonSchema for MathRecomposeOptions
impl JsonSchema for MathRecomposeOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MathRecomposeOptions
impl PartialEq for MathRecomposeOptions
impl StructuralPartialEq for MathRecomposeOptions
Auto Trait Implementations§
impl Forget for MathRecomposeOptions
impl Freeze for MathRecomposeOptions
impl Move for MathRecomposeOptions
impl RefUnwindSafe for MathRecomposeOptions
impl Send for MathRecomposeOptions
impl Sync for MathRecomposeOptions
impl Unpin for MathRecomposeOptions
impl UnsafeUnpin for MathRecomposeOptions
impl UnwindSafe for MathRecomposeOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more