Skip to content

TemmlOptions

Namespace: Temml

public class TemmlOptions

The rendering options. Maps to the options object of upstream’s Settings.

Inheritance: object

Derived: TemmlAutoRenderOptions

View source

public bool Annotate { get; set; }

Include the TeX source in an annotation element.

Value: bool

View source

public bool ColorIsTextColor { get; set; }

Make \color behave like \textcolor.

Value: bool

View source

public bool DisplayMode { get; set; }

Render in display style.

Value: bool

View source

public string ErrorColor { get; set; }

The color of rendered errors.

Value: string

View source

public bool Leqno { get; set; }

Put equation tags on the left.

Value: bool

View source

public TemmlMacroDictionary? Macros { get; set; }

Custom macros. Rendering writes to this dictionary: \gdef, and also \def at the top level, as upstream does. So do not share one between threads, and give untrusted input a dictionary of its own.

Value: TemmlMacroDictionary

View source

public int MaxExpand { get; set; }

The largest number of macro expansions.

Value: int

View source

public (double Em, double Pt)? MaxSize { get; set; }

The largest user-specified size, in ems and in points. Unlimited when null.

Value: (double Em, double Pt)?

View source

public bool Strict { get; set; }

Throw on input that LaTeX would reject.

Value: bool

View source

public bool ThrowOnError { get; set; }

Throw a ParseError instead of rendering the error.

Value: bool

View source

public bool Trust { get; set; }

Trust every command that needs trust.

Value: bool

View source

public Func<TemmlTrustContext, bool>? TrustHandler { get; set; }

Decides trust per command. When set, Trust is ignored.

Value: Func<TemmlTrustContext, bool>

View source

public TemmlWrap Wrap { get; set; }

Soft line breaking in inline math.

Value: TemmlWrap

View source

public bool Xml { get; set; }

Add the MathML xmlns attribute.

Value: bool

View source

MIT · Copyright 2020 Ron Kok · unofficial community port of Temml