r17290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17289‎ | r17290 | r17291 >
Date:19:09, 29 October 2006
Author:jeluf
Status:old
Tags:
Comment:
(bug 7749) MATH: added some more LaTeX symbols, e.g. parallel, diamond, ast, ...
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/math/texutil.ml (modified) (history)

Diff [purge]

Index: trunk/phase3/math/texutil.ml
@@ -167,6 +167,7 @@
168168 | "\\Harr" -> LITERAL (HTMLABLE (FONT_UF, "\\Leftrightarrow ", "⇔"))
169169 | "\\lrArr" -> LITERAL (HTMLABLE (FONT_UF, "\\Leftrightarrow ", "⇔"))
170170 | "\\hAar" -> LITERAL (HTMLABLE (FONT_UF, "\\Leftrightarrow ", "⇔"))
 171+ | "\\longleftrightarrow"->LITERAL (HTMLABLE (FONT_UF, "\\longleftrightarrow ", "↔"))
171172 | "\\Longleftrightarrow"->LITERAL (HTMLABLE (FONT_UF, "\\Longleftrightarrow ", "↔"))
172173 | "\\iff" -> LITERAL (HTMLABLE (FONT_UF, "\\iff ", "↔"))
173174 | "\\ll" -> LITERAL (TEX_ONLY "\\ll ")
@@ -177,6 +178,7 @@
178179 | "\\swarrow" -> LITERAL (TEX_ONLY "\\swarrow ")
179180 | "\\nwarrow" -> LITERAL (TEX_ONLY "\\nwarrow ")
180181 | "\\simeq" -> LITERAL (TEX_ONLY "\\simeq ")
 182+ | "\\ast" -> LITERAL (TEX_ONLY "\\ast ")
181183 | "\\star" -> LITERAL (TEX_ONLY "\\star ")
182184 | "\\ell" -> LITERAL (TEX_ONLY "\\ell ")
183185 | "\\P" -> LITERAL (TEX_ONLY "\\P ")
@@ -214,6 +216,7 @@
215217 | "\\circ" -> LITERAL (TEX_ONLY "\\circ ")
216218 | "\\hbar" -> LITERAL (TEX_ONLY "\\hbar ")
217219 | "\\imath" -> LITERAL (TEX_ONLY "\\imath ")
 220+ | "\\jmath" -> LITERAL (TEX_ONLY "\\jmath ")
218221 | "\\lnot" -> LITERAL (TEX_ONLY "\\lnot ")
219222 | "\\hookrightarrow" -> LITERAL (TEX_ONLY "\\hookrightarrow ")
220223 | "\\hookleftarrow" -> LITERAL (TEX_ONLY "\\hookleftarrow ")
@@ -324,6 +327,7 @@
325328 | "\\otimes" -> LITERAL (HTMLABLE (FONT_UF, "\\otimes ", "⊗"))
326329 | "\\cap" -> LITERAL (HTMLABLEM(FONT_UF, "\\cap ", "∩"))
327330 | "\\cup" -> LITERAL (HTMLABLE (FONT_UF, "\\cup ", "∪"))
 331+ | "\\uplus" -> LITERAL (TEX_ONLY "\\uplus ")
328332 | "\\sqcap" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\sqcap "))
329333 | "\\sqcup" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\sqcup "))
330334 | "\\empty" -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "∅"))
@@ -352,6 +356,7 @@
353357 | "\\rang" -> DELIMITER (HTMLABLE (FONT_UFH,"\\rangle ","⟩"))
354358 | "\\lbrack" -> DELIMITER (HTMLABLEC(FONT_UFH,"[","["))
355359 | "\\rbrack" -> DELIMITER (HTMLABLEC(FONT_UFH,"]","]"))
 360+ | "\\surd" -> LITERAL (TEX_ONLY "\\surd ")
356361 | "\\ddots" -> LITERAL (TEX_ONLY "\\ddots ")
357362 | "\\clubs" -> LITERAL (TEX_ONLY "\\clubsuit ")
358363 | "\\clubsuit" -> LITERAL (TEX_ONLY "\\clubsuit ")
@@ -360,7 +365,23 @@
361366 | "\\hearts" -> LITERAL (TEX_ONLY "\\heartsuit ")
362367 | "\\heartsuit" -> LITERAL (TEX_ONLY "\\heartsuit ")
363368 | "\\diamonds" -> LITERAL (TEX_ONLY "\\diamondsuit ")
 369+ | "\\diamond" -> LITERAL (TEX_ONLY "\\diamond ")
 370+ | "\\bigtriangleup" -> LITERAL (TEX_ONLY "\\bigtriangleup ")
 371+ | "\\bigtriangledown" -> LITERAL (TEX_ONLY "\\bigtriangledown ")
364372 | "\\diamondsuit" -> LITERAL (TEX_ONLY "\\diamondsuit ")
 373+ | "\\ominus" -> LITERAL (TEX_ONLY "\\ominus ")
 374+ | "\\oslash" -> LITERAL (TEX_ONLY "\\oslash ")
 375+ | "\\odot" -> LITERAL (TEX_ONLY "\\odot ")
 376+ | "\\bigcirc" -> LITERAL (TEX_ONLY "\\bigcirc ")
 377+ | "\\amalg" -> LITERAL (TEX_ONLY "\\amalg ")
 378+ | "\\prec" -> LITERAL (TEX_ONLY "\\prec ")
 379+ | "\\succ" -> LITERAL (TEX_ONLY "\\succ ")
 380+ | "\\preceq" -> LITERAL (TEX_ONLY "\\preceq ")
 381+ | "\\succeq" -> LITERAL (TEX_ONLY "\\succeq ")
 382+ | "\\dashv" -> LITERAL (TEX_ONLY "\\dashv ")
 383+ | "\\asymp" -> LITERAL (TEX_ONLY "\\asymp ")
 384+ | "\\doteq" -> LITERAL (TEX_ONLY "\\doteq ")
 385+ | "\\parallel" -> LITERAL (TEX_ONLY "\\parallel ")
365386 | "\\implies" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\implies ", "⇒")))
366387 | "\\mod" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mod ", "mod")))
367388 | "\\Diamond" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\Diamond ", "◊")))
Index: trunk/phase3/RELEASE-NOTES
@@ -102,6 +102,7 @@
103103 * (bug 7741) MATH: fixed broken syntax of underbrace etc. Fixed arrays
104104 * Fix purging for updated SVG files
105105 * (bug 7745) Add id attribute to search button in Monobook
 106+* (bug 7749) MATH: added some more LaTeX symbols, e.g. parallel, diamond, ast, ...
106107
107108
108109 == Languages updated ==