1
2
3
4
5
6
7
8
9
10
11
12
13
|
AP_Context ctx = new AP_Context();
ctx.setAlignment(TextAlignment.LEFT);
AsciiParagraph ap = new AsciiParagraph(ctx);
ap.addText("A sentence with some normal text, not specific to LaTeX.");
ap.addText("Now for some characters that require conversion: # % &.");
ap.addText("And some more: © § ¤.");
ap.addText("And even more: È É Ê Ë.");
ap.addText("And some arrows as well: ← ↑ → ↓ ↔");
System.out.println(ap.render(35));
ctx.setTargetTranslator(new Text2Latex());
System.out.println(ap.render(35)); |