Struct katex::opts::OptsBuilder
source · pub struct OptsBuilder { /* private fields */ }
Expand description
Builder for Opts
.
Implementations§
source§impl OptsBuilder
impl OptsBuilder
sourcepub fn display_mode<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn display_mode<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to render the math in the display mode.
sourcepub fn output_type<VALUE: Into<OutputType>>(&mut self, value: VALUE) -> &mut Self
pub fn output_type<VALUE: Into<OutputType>>(&mut self, value: VALUE) -> &mut Self
KaTeX output type.
sourcepub fn leqno<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn leqno<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to have \tags
rendered on the left instead of the right.
sourcepub fn fleqn<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn fleqn<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to make display math flush left.
sourcepub fn throw_on_error<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn throw_on_error<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to let KaTeX throw a ParseError for invalid LaTeX.
sourcepub fn error_color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn error_color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Color used for invalid LaTeX.
sourcepub fn macros<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn macros<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE
) -> &mut Self
Collection of custom macros. Read https://katex.org/docs/options.html for more information.
sourcepub fn min_rule_thickness<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn min_rule_thickness<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Specifies a minimum thickness, in ems. Read https://katex.org/docs/options.html for more information.
sourcepub fn max_size<VALUE: Into<Option<f64>>>(&mut self, value: VALUE) -> &mut Self
pub fn max_size<VALUE: Into<Option<f64>>>(&mut self, value: VALUE) -> &mut Self
Max size for user-specified sizes.
If set to None
, users can make elements and spaces arbitrarily large.
Read https://katex.org/docs/options.html for more information.
sourcepub fn max_expand<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn max_expand<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
Limit the number of macro expansions to the specified number.
If set to None
, the macro expander will try to fully expand as in LaTeX.
Read https://katex.org/docs/options.html for more information.
source§impl OptsBuilder
impl OptsBuilder
Trait Implementations§
source§impl Clone for OptsBuilder
impl Clone for OptsBuilder
source§fn clone(&self) -> OptsBuilder
fn clone(&self) -> OptsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more