public class LatexBookSink extends LatexSink
LatexBookSink class.
PIPE
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STAR
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5
Constructor and Description |
---|
LatexBookSink(Writer out)
Construct a new LatexBookSink which is a LatexSink with the given writer,
null sinkCommands, null preamble and fragmentDocument = true.
|
Modifier and Type | Method and Description |
---|---|
void |
defaultBookPreamble()
Writes the default LaTeX commands and preamble in the main book file.
|
protected String |
getDocumentBegin()
Returns a default \begin{document} declaration.
|
protected String |
getDocumentStart()
Returns a default \documentclass declaration.
|
String |
getTitle()
Return the title.
|
void |
text(String text)
Adding a text.
|
void |
title_()
Ends the title element.
|
anchor_, anchor, anchor, author_, author, author, body_, body, body, bold_, bold, close, comment, content, date_, date, date, defaultPreamble, defaultSinkCommands, definedTerm_, definedTerm, definedTerm, definition_, definition, definition, definitionList_, definitionList, definitionList, definitionListItem_, definitionListItem, definitionListItem, escaped, figure_, figure, figure, figureCaption_, figureCaption, figureCaption, figureGraphics, figureGraphics, flush, getDocumentEnd, head, head, horizontalRule, horizontalRule, init, italic_, italic, lineBreak, lineBreak, link_, link, link, list_, list, list, listItem, listItem, markup, monospaced_, monospaced, nonBreakingSpace, numberedList_, numberedList, numberedList, numberedListItem, numberedListItem, pageBreak, paragraph_, paragraph, paragraph, rawText, sectionTitle_, sectionTitle, sectionTitle1_, sectionTitle1, sectionTitle2_, sectionTitle2, sectionTitle3_, sectionTitle3, sectionTitle4_, sectionTitle4, sectionTitle5_, sectionTitle5, table_, table, table, tableCaption_, tableCaption, tableCaption, tableCell_, tableCell, tableCell, tableCell, tableHeaderCell_, tableHeaderCell, tableHeaderCell, tableHeaderCell, tableRow_, tableRow, tableRow, tableRows_, tableRows, text, title, title, unknown, verbatim_, verbatim, verbatim, verbatimContent
head_, listItem_, numberedListItem_, section_, section, section1_, section1, section2_, section2, section3_, section3, section4_, section4, section5_, section5, sectionTitle_, sectionTitle
enableLogging, getLog, unifyEOLs
public LatexBookSink(Writer out)
out
- the writer for the sink.protected String getDocumentStart()
getDocumentStart
in class LatexSink
protected String getDocumentBegin()
getDocumentBegin
in class LatexSink
public void text(String text)
text
in interface Sink
text
in class LatexSink
text
- The text to write.Sink.text(String,SinkEventAttributes)
public void title_()
public String getTitle()
public void defaultBookPreamble()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.