-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added program to generate a table of all characters and fixed some ch…
…aracters
- Loading branch information
Showing
2 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
src/main/java/net/sf/jabref/cli/GenerateCharacterTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package net.sf.jabref.cli; | ||
|
||
import java.util.Map; | ||
import java.util.TreeMap; | ||
|
||
import net.sf.jabref.logic.util.strings.HTMLUnicodeConversionMaps; | ||
|
||
public class GenerateCharacterTable { | ||
|
||
public static void main(String[] args) { | ||
Map<Integer, String> characterMap = new TreeMap<>(HTMLUnicodeConversionMaps.NUMERICAL_LATEX_CONVERSION_MAP); | ||
System.out.println("\\documentclass[10pt, a4paper]{article}"); | ||
System.out.println("\\usepackage[T5,T1]{fontenc}"); | ||
System.out.println("\\usepackage{amssymb}"); | ||
System.out.println("\\usepackage{amsmath}"); | ||
System.out.println("\\usepackage{txfonts}"); | ||
System.out.println("\\usepackage{xfrac}"); | ||
System.out.println("\\usepackage{combelow}"); | ||
System.out.println("\\usepackage{textcomp}"); | ||
System.out.println("\\usepackage{mathspec}"); | ||
System.out.println("\\usepackage{fontspec}"); | ||
System.out.println("\\usepackage[a4paper,margin=1cm]{geometry}"); | ||
System.out.println("\\usepackage{supertabular}"); | ||
System.out.println("\\usepackage{mathabx}"); | ||
System.out.println("\\DeclareTextSymbolDefault{\\OHORN}{T5}"); | ||
System.out.println("\\DeclareTextSymbolDefault{\\UHORN}{T5}"); | ||
System.out.println("\\DeclareTextSymbolDefault{\\ohorn}{T5}"); | ||
System.out.println("\\DeclareTextSymbolDefault{\\uhorn}{T5}"); | ||
System.out.println("\\begin{document}"); | ||
System.out.println("\\twocolumn"); | ||
System.out.println("\\begin{supertabular}{c|c|c|c}"); | ||
System.out.println("No. & Uni & \\LaTeX & Code \\\\ \n \\hline"); | ||
|
||
for (Map.Entry<Integer, String> character : characterMap.entrySet()) { | ||
System.out.println(character.getKey() + " & \\symbol{" + Integer.toString(character.getKey()) + "} & " | ||
+ character.getValue() | ||
+ " & \\verb+" + character.getValue() | ||
+ "+ \\\\"); | ||
} | ||
System.out.println("\\end{supertabular}"); | ||
System.out.println("\\end{document}"); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters