writer2latex.latex.util
public class BeforeAfter extends Object
| Constructor Summary | |
|---|---|
| BeforeAfter(String sBefore1, String sAfter1) Constructor to initialize the object with a pair of strings | |
| BeforeAfter() Default constructor: Create with empty strings | |
| Method Summary | |
|---|---|
| void | add(String sBefore1, String sAfter1) Add data to the The new data will be be added "inside", thus for example
will create the pair |
| String | getAfter() Get LaTeX code to put after |
| String | getBefore() Get LaTeX code to put before |
| boolean | isEmpty() Check if this BeforeAfter contains any data |
Parameters: sBefore1 LaTeX code to put before sAfter1 LaTeX code to put after
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{, }}
Parameters: sBefore1 LaTeX code to put before sAfter1 LaTeX code to put after
Returns: then LaTeX code
Returns: then LaTeX code
BeforeAfter contains any dataReturns: true if there is data in at least one part