forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Fix imports Rename NewFileDialog -> FileDialog Also cancel duplicate finder workflow on close button Removed/moved preferences which are constants implements JabRef#1767: Add Help Button to access new help page Fixed BibTeXMLImporter Set more default file filters in dialogs JabRef#1763 Resolve crossrefs and strings in main table (JabRef#1644) Rewrite bibtexml importer with JAXB parser (JabRef#1666) Moved a few more initialization to GUIGlobals.init() (JabRef#1756) Added program to generate a table of all characters and fixed some characters (JabRef#1766) Improve focus of the maintable after a sidepane gets closed (JabRef#1741) Table row height adjusts on Windows as the font scales with the menu (JabRef#1623) Added more characters to converters (JabRef#1761)
- Loading branch information
Showing
88 changed files
with
1,863 additions
and
372 deletions.
There are no files selected for viewing
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
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
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
49 changes: 49 additions & 0 deletions
49
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,49 @@ | ||
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("\\fontspec{Cambria}"); | ||
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|c}"); | ||
System.out.println("No. & Uni & Symb & \\LaTeX & Code \\\\ \n \\hline"); | ||
|
||
for (Map.Entry<Integer, String> character : characterMap.entrySet()) { | ||
System.out | ||
.println( | ||
character.getKey() + " & " | ||
+ ((character.getKey() > 128) ? String | ||
.valueOf(Character.toChars(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
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
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
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
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
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
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
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
Oops, something went wrong.