writer2latex.latex.util

Class BeforeAfter

public class BeforeAfter extends Object

Utility class to hold LaTeX code to put before/after other LaTeX code
Method Summary
voidadd(String sBefore1, String sAfter1)

Add data to the BeforeAfter

The new data will be be added "inside", thus for example

  • add("\textsf{","}");
  • add("\textit{","}");

will create the pair \textsf{\textit{, }}

StringgetAfter()
Get LaTeX code to put after
StringgetBefore()
Get LaTeX code to put before
booleanisEmpty()
Check if this BeforeAfter contains any data

Method Detail

add

public void add(String sBefore1, String sAfter1)

Add data to the BeforeAfter

The new data will be be added "inside", thus for example

will create the pair \textsf{\textit{, }}

Parameters: sBefore1 LaTeX code to put before sBefore2 LaTeX code to put after

getAfter

public String getAfter()
Get LaTeX code to put after

Returns: then LaTeX code

getBefore

public String getBefore()
Get LaTeX code to put before

Returns: then LaTeX code

isEmpty

public boolean isEmpty()
Check if this BeforeAfter contains any data

Returns: true if there is data in at least one part