1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
Description: Add translations.
In translation of \log, append space. Add plain text translations
for \lbrace, \rbrace, \over, and all 32 math functions on p. 162 of
The TeXbook. Add unicode translations for \sum, \int, and \prod.
Add unicode and html entity translations for \ell, \ll, \gg, \langle,
and \rangle.
Author: James Van Zandt <jim.vanzandt@gmail.com>
Last-Update: 2019-02-03
Debian-bug: #921278
--- bibtex2html-1.99.orig/latexmacros.ml
+++ bibtex2html-1.99/latexmacros.ml
@@ -366,7 +366,7 @@ def "\\[" [Print "<blockquote>"];
def "\\]" [Print "\n</blockquote>"];
def "\\le" [Print "<="];
def "\\leq" [Print "<="];
-def "\\log" [Print "log"];
+def "\\log" [Print "log "];
def "\\ge" [Print ">="];
def "\\geq" [Print ">="];
def "\\neq" [Print "<>"];
@@ -380,6 +380,40 @@ def "\\times" [Print "×"];
def "\\neg" [Print "¬"];
def "\\frac" [Print "("; Print_arg; Print ")/("; Print_arg; Print ")"];
def "\\not" [Print "not "];
+def "\\arccos" [Print "arccos "];
+def "\\arcsin" [Print "arcsin "];
+def "\\arctan" [Print "arctan "];
+def "\\arg" [Print "arg "];
+def "\\cos" [Print "cos "];
+def "\\cosh" [Print "cosh "];
+def "\\coth" [Print "coth "];
+def "\\cot" [Print "cot "];
+def "\\csc" [Print "csc "];
+def "\\deg" [Print "deg "];
+def "\\det" [Print "det "];
+def "\\dim" [Print "dim "];
+def "\\exp" [Print "exp "];
+def "\\gcd" [Print "gcd "];
+def "\\hom" [Print "hom "];
+def "\\inf" [Print "inf "];
+def "\\ker" [Print "ker "];
+def "\\lg" [Print "lg "];
+def "\\lim" [Print "lim "];
+def "\\liminf" [Print "liminf "];
+def "\\limsup" [Print "limsup "];
+def "\\ln" [Print "ln "];
+def "\\max" [Print "max "];
+def "\\min" [Print "min "];
+def "\\Pr" [Print "Pr "];
+def "\\sec" [Print "sec "];
+def "\\sin" [Print "sin "];
+def "\\sinh" [Print "sinh "];
+def "\\sup" [Print "sup "];
+def "\\tanh" [Print "tanh "];
+def "\\tan" [Print "tan "];
+def "\\over" [Print "/"];
+def "\\lbrace" [Print "{"];
+def "\\rbrace" [Print "}"];
(* Math symbols printed as texts (could we do better?) *)
def "\\ne" [Print "=/="];
@@ -569,6 +603,14 @@ let unicode_entities () =
| s -> print_s "not "; print_s s)];
def "--" [Print "–"];
def "---" [Print "—"];
+ def "\\ll" [Print "≪"];
+ def "\\gg" [Print "≫"];
+ def "\\ell" [Print "ℓ"];
+ def "\\int" [Print "∫"];
+ def "\\sum" [Print "∑"];
+ def "\\prod" [Print "∏"];
+ def "\\langle" [Print "⟨"];
+ def "\\rangle" [Print "⟩"];
()
let html_entities () =
@@ -648,6 +690,11 @@ let html_entities () =
| s -> print_s s)];
def "--" [Print "–"];
def "---" [Print "—"];
+ def "\\ll" [Print "≪"];
+ def "\\gg" [Print "≫"];
+ def "\\ell" [Print "ℓ"];
+ def "\\langle" [Print "⟨"];
+ def "\\rangle" [Print "⟩"];
()
(*s Macros for German BibTeX style. *)
|