use of org.jabref.logic.formatter.bibtexfields.HtmlToLatexFormatter in project jabref by JabRef.
the class CleanupWorkerTest method cleanupHtmlToLatexConvertsEpsilonToLatex.
@Test
public void cleanupHtmlToLatexConvertsEpsilonToLatex() {
CleanupPreset preset = new CleanupPreset(new FieldFormatterCleanups(true, Collections.singletonList(new FieldFormatterCleanup("title", new HtmlToLatexFormatter()))));
BibEntry entry = new BibEntry();
entry.setField("title", "Ε");
worker.cleanup(preset, entry);
Assert.assertEquals(Optional.of("{{$\\Epsilon$}}"), entry.getField("title"));
}
Aggregations