public final class LaTeXIndenter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INDENT_WIDTH
Default indent width
|
static int |
DEFAULT_MAX_INDENT_LEVEL
Default maximum indent level
|
| Constructor and Description |
|---|
LaTeXIndenter(Writer outputWriter)
Creates a new indenter that will output to
outputWriter. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndentWidth() |
int |
getMaxIndentLevel() |
boolean |
isCompactingBlankLines() |
void |
reset() |
void |
run(Reader inputReader)
Indents the TeX read from the given inputReader, sending the results to
outputWriter. |
void |
setCompactingBlankLines(boolean condenseBlankLines) |
void |
setIndentWidth(int indentWidth) |
void |
setMaxIndentLevel(int maxIndentLevel) |
public static final int DEFAULT_INDENT_WIDTH
public static final int DEFAULT_MAX_INDENT_LEVEL
public LaTeXIndenter(Writer outputWriter)
outputWriter. This will have
default properties set and will compact blank lines by default.outputWriter - public int getIndentWidth()
public void setIndentWidth(int indentWidth)
public int getMaxIndentLevel()
public void setMaxIndentLevel(int maxIndentLevel)
public boolean isCompactingBlankLines()
public void setCompactingBlankLines(boolean condenseBlankLines)
public void reset()
public void run(Reader inputReader) throws IOException
outputWriter. The inputReader will be closed afterwards; the
outputWriter is left open so the caller should arrange to
flush or close it as required.IOExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.