Declaration¶
Source position: wtex.pp line 31
type
TTexWriter = class(TFormattingWriter)
FCellCount: Integer;
public
procedure ScopeStart;
procedure ScopeEnd;
procedure EnvironmentStart;
procedure EnvironmentEnd;
function EscapeText : string;
procedure DocumentStart;
procedure DocumentEnd;
procedure HeaderStart;
procedure HeaderEnd;
procedure ParagraphEnd;
procedure LineBreak;
procedure Rule;
procedure BoldStart;
procedure BoldEnd;
procedure ItalicStart;
procedure ItalicEnd;
procedure UnderlineStart;
procedure UnderlineEnd;
procedure PreformatStart;
procedure PreformatEnd;
procedure TableStart;
procedure TableEnd;
procedure RowStart;
procedure RowEnd;
procedure CellStart;
procedure HeaderCellStart;
procedure HeaderCellEnd;
procedure ListStart;
procedure ListEnd;
procedure ListItemStart;
procedure DefinitionItem;
end;
Inheritance¶
Description¶
TTexWriter is a concrete implementation of TFormattingWriter that generates LaTeX output. It implements all formatting methods to produce valid LaTeX markup including document structure, text formatting, tables, and lists. The class properly escapes LaTeX special characters and uses standard LaTeX commands and environments.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| BoldEnd | public | Ends LaTeX bold formatting |
| BoldStart | public | Begins LaTeX bold formatting |
| CellStart | public | Begins LaTeX table cell |
| DefinitionItem | public | Creates LaTeX definition list item |
| DocumentEnd | public | Ends LaTeX document |
| DocumentStart | public | Begins LaTeX document |
| EnvironmentEnd | public | Ends LaTeX environment |
| EnvironmentStart | public | Begins LaTeX environment with optional parameters |
| EscapeText | public | Escapes LaTeX special characters |
| HeaderCellEnd | public | Ends LaTeX table header cell |
| HeaderCellStart | public | Begins LaTeX table header cell |
| HeaderEnd | public | Ends LaTeX section header |
| HeaderStart | public | Begins LaTeX section header |
| ItalicEnd | public | Ends LaTeX italic formatting |
| ItalicStart | public | Begins LaTeX italic formatting |
| LineBreak | public | Inserts LaTeX line break |
| ListEnd | public | Ends LaTeX list environment |
| ListItemStart | public | Begins LaTeX list item |
| ListStart | public | Begins LaTeX list environment |
| ParagraphEnd | public | Ends LaTeX paragraph |
| PreformatEnd | public | Ends LaTeX verbatim environment |
| PreformatStart | public | Begins LaTeX verbatim environment |
| RowEnd | public | Ends LaTeX table row |
| RowStart | public | Begins LaTeX table row |
| Rule | public | Inserts LaTeX horizontal rule |
| ScopeEnd | public | Writes LaTeX closing brace |
| ScopeStart | public | Writes LaTeX opening brace |
| TableEnd | public | Ends LaTeX tabular environment |
| TableStart | public | Begins LaTeX tabular environment |
| UnderlineEnd | public | Ends LaTeX underline formatting |
| UnderlineStart | public | Begins LaTeX underline formatting |
Fieldss¶
| Member | Visibility | Description |
|---|---|---|
| FCellCount | default | Internal counter for table cell positions |
See also¶
| Name | Description |
|---|---|
| TFormattingWriter | |
| ListNames | LaTeX environment names for different list types |