Docsv3.20.2
Back to API Reference
Class

LatexTextRule

sealed
Inherits:ParseRule

Renders the LaTeX syntax that stands for characters and line breaks in text: \\, \newline and \linebreak as line breaks, the escapes \# \$ \% \& \_ \{ \}, the tie ~ as a no-break space, -- and --- as en and em dashes, `` and '' as curly quotes, and a few named characters (\ldots, \textbackslash, \,, \quad, \-).

Remarks

A line break ends its source line too, as the line end after \\ is only a space in LaTeX: the line end and the next line's indentation are dropped, and the optional * and [length] are read across them. A named character takes the spaces after it and an empty {}, as LaTeX does. A backslash escapes only the characters LaTeX reserves; \\ is a line break, never a backslash. As the literal escape of an editable text, this rule replaces BackslashEscapeRule, which would read \\ as a backslash. Standalone: register it without a modifier.
public int Priority{ get }
public bool IsStandalone{ get }
public char EscapePrefix{ get }
public string MarkupTriggers{ get }
public string TypingTriggers{ get }
public override bool IsEscapable()
public override int TryMatch()