writer2latex.latex

Class LaTeXDocumentPortion


public class LaTeXDocumentPortion
extends java.lang.Object

This class represents a portion of a LaTeX document. A portion is any number of lines, and may include subportions.

Constructor Summary

LaTeXDocumentPortion(boolean bWrap)

Method Summary

LaTeXDocumentPortion
append(String s)
Add a string to the end of this portion
LaTeXDocumentPortion
append(LaTeXDocumentPortion ldp)
Add another portion to the end of this portion
LaTeXDocumentPortion
nl()
Add a newline to the end of this portion
void
write(OutputStreamWriter osw, int nLineLen, String sNewline)
Write this portion to the output (note: nLineLen=0 means no wrap)

Constructor Details

LaTeXDocumentPortion

public LaTeXDocumentPortion(boolean bWrap)

Method Details

append

public LaTeXDocumentPortion append(String s)
Add a string to the end of this portion

append

public LaTeXDocumentPortion append(LaTeXDocumentPortion ldp)
Add another portion to the end of this portion

nl

public LaTeXDocumentPortion nl()
Add a newline to the end of this portion

write

public void write(OutputStreamWriter osw,
                  int nLineLen,
                  String sNewline)
            throws IOException
Write this portion to the output (note: nLineLen=0 means no wrap)