org.apache.maven.doxia.module.latex
public class LatexSink extends AbstractTextSink
Since: 1.0
UNKNOWN: role="org.apache.maven.doxia.sink.Sink" role-hint="tex"
Constructor Summary | |
---|---|
LatexSink(Writer out)
Constructor.
| |
LatexSink(Writer out, String sinkCommands, String preamble)
Constructor.
| |
LatexSink(Writer out, String sinkCommands, String preamble, boolean fragmentDocument)
Constructor.
|
Method Summary | |
---|---|
void | anchor(String name) |
void | anchor_() |
void | author() |
void | author_() |
void | body() |
void | body_() |
void | bold() |
void | bold_() |
void | close() |
protected void | content(String text)
Writes the text, without preserving whitespace.
|
void | date() |
void | date_() |
static String | defaultPreamble()
Returns the default preamble.
|
static String | defaultSinkCommands()
Returns the default sink commands.
|
void | definedTerm() |
void | definedTerm_() |
void | definitionList() |
void | definitionList_() |
protected static String | escaped(String text)
Escapes special characters.
|
void | figure() |
void | figureCaption() |
void | figureCaption_() |
void | figureGraphics(String name) |
void | figure_() |
void | flush() |
static InputStream | getDefaultPreamble()
Returns the default preamble from a resource.
|
static InputStream | getDefaultSinkCommands()
Returns the default sink commands from a resource.
|
protected String | getDocumentBegin()
Returns a default \begin{document} declaration.
|
protected String | getDocumentEnd()
Returns a default \end{document} declaration.
|
protected String | getDocumentStart()
Returns a default \documentclass declaration.
|
void | head() |
void | horizontalRule() |
void | italic() |
void | italic_() |
void | lineBreak() |
void | link(String name) |
void | link_() |
void | list() |
void | listItem() |
void | list_() |
protected void | markup(String text)
Writes the text, preserving whitespace.
|
void | monospaced() |
void | monospaced_() |
void | nonBreakingSpace() |
void | numberedList(int numbering) |
void | numberedListItem() |
void | numberedList_() |
void | pageBreak() |
void | paragraph_() |
void | sectionTitle1() |
void | sectionTitle1_() |
void | sectionTitle2() |
void | sectionTitle2_() |
void | sectionTitle3() |
void | sectionTitle3_() |
void | sectionTitle4() |
void | sectionTitle4_() |
void | sectionTitle5() |
void | sectionTitle5_() |
void | sectionTitle_() |
void | table() |
void | tableCaption() |
void | tableCaption_() |
void | tableCell() |
void | tableCell(boolean header)
Starts a table cell.
|
void | tableCell_() |
void | tableCell_(boolean header)
Ends a table cell.
|
void | tableHeaderCell() |
void | tableHeaderCell_() |
void | tableRow() |
void | tableRows(int[] justification, boolean grid) |
void | tableRows_() |
void | tableRow_() |
void | table_() |
void | text(String text) |
void | title() |
void | title_() |
void | verbatim(boolean boxed) |
protected void | verbatimContent(String text)
Writes the text, preserving whitespace.
|
void | verbatim_() |
Parameters: out The writer to use.
Parameters: out The writer to use. sinkCommands A String representation of commands that go before \documentclass. preamble A String representation of commands that go between \documentclass and \begin{document}.
Parameters: out The writer to use. sinkCommands A String representation of commands that go before \documentclass. preamble A String representation of commands that go between \documentclass and \begin{document}. fragmentDocument If this receives events that that are only part of a document. Typically, headers are omitted if this is true.
Parameters: text the text to write.
Returns: String.
Returns: String.
Parameters: text The text to escape.
Returns: The text with special characters replaced.
Returns: InputStream
Throws: java.io.IOException if the resource file cannot be read.
Returns: InputStream
Throws: java.io.IOException if the resource file cannot be read.
Returns: String.
Returns: String.
Returns: String.
Parameters: text the text to write.
Parameters: header True if this is a header cell.
Parameters: header True if this is a header cell.
Parameters: text the text to write.