namespace AIStudio.Tools.DocumentSegments.Latex; /// /// What a command means for the segments of a document. /// internal enum LatexCommandRole { /// /// Marks up words, e.g., \textbf or \footnote: its text argument becomes a pair of tags. /// WORDS, /// /// A heading or a caption, e.g., \section: its text argument and its optional arguments are segments of their own. /// HEADING, /// /// An item of a list, which starts a segment; its optional argument is its label, a segment of its own. /// ITEM, /// /// Ends a paragraph, as \par does. /// PARAGRAPH, /// /// Breaks a line, as \\ does: within a table, it ends a row and so a segment; elsewhere, it is layout. /// LINE_BREAK, /// /// Layout without words, e.g., \label or \centering: a tag of its own, which stays outside of a segment at its edges. /// LAYOUT, /// /// Anything else, e.g., \ref or \cite: a tag of its own within the words, since it stands for something a reader sees. /// INLINE, }