TheDJ has uploaded a new change for review.
https://gerrit.wikimedia.org/r/61287
Change subject: MathJax: Support the texvc command \textsf \texttt and \vline
......................................................................
MathJax: Support the texvc command \textsf \texttt and \vline
Emulate these texvc commands with tex commands
These have been in use by Nageh's MathJax for almost a year now.
Bug: 35186
Change-Id: If38014bde908bb202dc63213fa21a72b52a6a42d
---
M modules/MathJax/extensions/TeX/texvc.js
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/87/61287/1
diff --git a/modules/MathJax/extensions/TeX/texvc.js
b/modules/MathJax/extensions/TeX/texvc.js
index 1e5cc4a..5c0ecbc 100644
--- a/modules/MathJax/extensions/TeX/texvc.js
+++ b/modules/MathJax/extensions/TeX/texvc.js
@@ -136,7 +136,10 @@
bold: ['Macro','\\boldsymbol'], // boldsymbol
href: 'NamedFn', // disable dangerous command
style: 'NamedFn', // disable dangerous command
- pagecolor: ['Macro','',1] // ignore \pagecolor{}
+ pagecolor: ['Macro','',1], // ignore \pagecolor{}
+ textsf: ['Macro','\\mathord{\\sf{\\text{#1}}}',1],
+ texttt: ['Macro','\\mathord{\\tt{\\text{#1}}}',1],
+ vline: ['Macro','\\smash{\\large\\lvert}',0]
}
});
--
To view, visit https://gerrit.wikimedia.org/r/61287
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If38014bde908bb202dc63213fa21a72b52a6a42d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits