diff options
Diffstat (limited to 'tex/context/base/core-fnt.tex')
-rw-r--r-- | tex/context/base/core-fnt.tex | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/tex/context/base/core-fnt.tex b/tex/context/base/core-fnt.tex index 5315f4d88..47c08451b 100644 --- a/tex/context/base/core-fnt.tex +++ b/tex/context/base/core-fnt.tex @@ -143,14 +143,11 @@ %D Some precautions for a \PLAIN\ \TEX\ definition. -\let\normalcap\cap +\unexpanded\def\normalcap{\dohandlemathtoken{cap}} +\unexpanded\def\normalCap{\dohandlemathtoken{Cap}} -\def\cap - {\ifmmode - \expandafter\normalcap - \else - \expandafter\smallcapped - \fi} +\def\cap{\mathortext\normalcap\smallcapped} +\def\Cap{\mathortext\normalCap\SmallCapped} %D \macros %D {setupcapitals} @@ -501,17 +498,26 @@ \def\betweenunderbarspaces {\hskip\currentspaceskip} -\unexpanded\def\dounderbar#1#2% +% \unexpanded\def\dounderbar#1#2% +% {\let\betweenisolatedwords#1% +% \processisolatedwords{#2}\dodounderbar +% \egroup} + +% \unexpanded\def\underbar +% {\bgroup +% \increment\underbarlevel +% \donetrue +% \dounderbar\betweenunderbarwords} + +\unexpanded\def\dounderbar#1% {\let\betweenisolatedwords#1% + \dosingleempty\redounderbar} + +\unexpanded\def\redounderbar[#1]#2% + {\iffirstargument\setupunderbar[#1]\fi \processisolatedwords{#2}\dodounderbar \egroup} -\unexpanded\def\underbar - {\bgroup - \increment\underbarlevel - \donetrue - \dounderbar\betweenunderbarwords} - \unexpanded\def\underbars {\bgroup \increment\underbarlevel @@ -557,6 +563,8 @@ \processisolatedwords{#1}\dooverstrike \egroup} +\def\underbarparameter#1{\csname\??on#1\csname} + \def\setupunderbar {\dodoubleargument\getparameters[\??on]} |