From 5847d842a47c88aae8f0e48f28d2209c135a333e Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 17 Apr 2008 21:27:59 +0000 Subject: [PATCH] Allow \C and \Q as TeX commands to match \R, \N, \Z, because the inconsistency annoys me. Patterned off r22477, so I assume this will work, although I guess not on Wikimedia until someone recompiles (which is not exactly critical). --- RELEASE-NOTES | 1 + math/texutil.ml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8356da6531..c692146ed6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -80,6 +80,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Add class="nested" for
s so fieldsets inside fieldsets get a slightly less huge margin and padding. * (bug 13527) Use sitemaps.org format 0.9 instead of a Google-specific format +* Allow \C and \Q as TeX commands to match \R, \N, \Z === Bug fixes in 1.13 === diff --git a/math/texutil.ml b/math/texutil.ml index 6a405cb300..5ea16eeff5 100644 --- a/math/texutil.ml +++ b/math/texutil.ml @@ -408,11 +408,13 @@ let find = function | "\\reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "R"))) | "\\Reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "R"))) | "\\R" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "R"))) + | "\\C" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "C"))) | "\\cnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "C"))) | "\\Complex" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "C"))) | "\\Z" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Z}", "Z"))) | "\\natnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "N"))) | "\\N" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "N"))) + | "\\Q" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Q}", "Q"))) | "\\lVert" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\lVert ", "||"))) | "\\rVert" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\rVert ", "||"))) | "\\nmid" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nmid ")) -- 2.20.1