summaryrefslogtreecommitdiff
path: root/tex/context/base/char-ini.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
committerMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
commit3880c6aa8cef3b379b06777c09f9ce3e7e61f493 (patch)
treebcde92b4216855c15fbd77700423f5cb919c05c9 /tex/context/base/char-ini.mkiv
parent21179ddb493e5c3355211e090959036cc048366b (diff)
downloadcontext-3880c6aa8cef3b379b06777c09f9ce3e7e61f493.tar.gz
beta 2011.02.20 20:34
Diffstat (limited to 'tex/context/base/char-ini.mkiv')
-rw-r--r--tex/context/base/char-ini.mkiv9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/char-ini.mkiv b/tex/context/base/char-ini.mkiv
index 2cb225988..68bc3b497 100644
--- a/tex/context/base/char-ini.mkiv
+++ b/tex/context/base/char-ini.mkiv
@@ -45,6 +45,15 @@
\def\checkedmathchar#1#2{#2}
\def\checkedtextchar #1{\iffontchar\font#1 \expandafter\firstoftwoarguments\else\expandafter\secondoftwoarguments\fi{\char#1}}
+\unexpanded\def\textormathchar#1%
+ {\relax\ifmmode
+ \char#1\relax
+ \else\iffontchar\font#1\relax
+ \char#1\relax
+ \else
+ $\char#1$%
+ \fi\fi}
+
%D The codes are stored in the format, so we don't need to reinitialize
%D them (unless of course we have adapted the table). It is on the agenda
%D to do this with \type {tex.lccode} cum suis once they're available.