1
2
3
4
5
6
7
8
9
10
11
12
13
14
String text = "A sentence with some normal text, not specific to LaTeX. " +
"Now for some characters that require conversion: # % &. " +
"And some more: © § ¤. " +
"And even more: È É Ê Ë. " +
"And some arrows as well: ← ↑ → ↓ ↔"
;
AsciiTable at = new AsciiTable();
at.addRule();
at.addRow(text, text).getCells().get(1).getContext().setTargetTranslator(new Text2Latex());
at.addRule();
at.setTextAlignment(TextAlignment.LEFT);
System.out.println(at.render());