From 36ade5e9fe64fe0b88697769a04cdea4437f6fa4 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 22 Jun 2010 00:14:06 +0000 Subject: [PATCH] (bug 21475) Add \mathtt and \textsf to compliment \mathsf and \texttt in --- RELEASE-NOTES | 1 + math/texutil.ml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b6b1046d17..0b584d3c55 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -89,6 +89,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17857) {{anchorencode}} acts more like how the parser creates section ids. * (bug 21477) \& can now be used in * (bug 11641) \dotsc \dotsm \dotsi \dotso can now be used in +* (bug 21475) \mathtt and \textsf can now be used in === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/math/texutil.ml b/math/texutil.ml index 80adf600de..bd348f9e92 100644 --- a/math/texutil.ml +++ b/math/texutil.ml @@ -518,6 +518,7 @@ let find = function | "\\emph" -> FUN_AR1 "\\emph " | "\\texttt" -> FUN_AR1 "\\texttt " | "\\textbf" -> FUN_AR1 "\\textbf " + | "\\textsf" -> FUN_AR1 "\\textsf " | "\\textit" -> FUN_AR1hf ("\\textit ", FONTFORCE_IT) | "\\textrm" -> FUN_AR1hf ("\\textrm ", FONTFORCE_RM) | "\\rm" -> DECLh ("\\rm ", FONTFORCE_RM) @@ -730,6 +731,7 @@ let find = function | "\\mathsf" -> (tex_use_ams (); FUN_AR1 "\\mathsf ") | "\\mathcal" -> (tex_use_ams (); FUN_AR1 "\\mathcal ") | "\\mathbb" -> (tex_use_ams (); FUN_AR1 "\\mathbb ") + | "\\mathtt" -> (tex_use_ams (); FUN_AR1 "\\mathtt ") | "\\mathfrak" -> (tex_use_ams (); FUN_AR1 "\\mathfrak ") | "\\operatorname" -> (tex_use_ams (); FUN_AR1 "\\operatorname ") | "\\text" -> raise (Failure "malformatted \\text") -- 2.20.1