Back to API Reference
Class
LatexTextRule
sealed
Inherits:ParseRule
Renders the LaTeX syntax that stands for characters and breaks in text: \\, \newline and \linebreak as line breaks and \par as a paragraph break, the escapes \# \$ \% \& \_ \{ \}, the tie ~ as a no-break space, -- and --- as en and em dashes, `` and '' as curly quotes, a few named characters (\ldots, \textbackslash, \,, \quad, \-), and grouping braces, \noindent, \indent and \label{…} as nothing.
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 line break before a block such as a table, a list or a display, before the end of an environment, right after the end of a block other than a display, or at the end of the text breaks no line, since that block or end ends the line itself; after a display it ends an empty line, as in LaTeX. 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.
