summaryrefslogtreecommitdiff
path: root/tex/context/base/buff-ver.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-12-04 20:40:13 +0200
committerMarius <mariausol@gmail.com>2010-12-04 20:40:13 +0200
commitc06e4e00885df7a7e679311a36059669caaa1435 (patch)
tree0b014f2d20d349977140ddd7e4e046a435ff4c39 /tex/context/base/buff-ver.mkiv
parent5e7d254e26fb7683947962997410d89b502645b2 (diff)
downloadcontext-c06e4e00885df7a7e679311a36059669caaa1435.tar.gz
beta 2010.12.04 19:31
Diffstat (limited to 'tex/context/base/buff-ver.mkiv')
-rw-r--r--tex/context/base/buff-ver.mkiv19
1 files changed, 18 insertions, 1 deletions
diff --git a/tex/context/base/buff-ver.mkiv b/tex/context/base/buff-ver.mkiv
index f4402eb41..f6847f055 100644
--- a/tex/context/base/buff-ver.mkiv
+++ b/tex/context/base/buff-ver.mkiv
@@ -269,6 +269,20 @@
%D
%D \typebuffer
+% beware, the command is supposed to do something like
+% \framed and not manipulate content i.e. it gets no
+% argument but something b/egrouped instead
+%
+% so, if we only had left and right it woul dbe:
+%
+% \def\doleftoftype {\typeparameter\c!left\bgroup} % we need the grouping in order
+% \def\dorightoftype{\egroup\typeparameter\c!right} % to get the normal font
+%
+% but with command:
+
+\def\doleftoftype {\typeparameter\c!left\typeparameter\c!command\bgroup}
+\def\dorightoftype{\egroup\typeparameter\c!right}
+
\unexpanded\def\type{\dotype\empty}
\unexpanded\def\typ {\dotyp \empty}
@@ -283,7 +297,8 @@
\dodotype}
\def\dodotype
- {\futurelet\next\dodotypeone}
+ {\doleftoftype
+ \futurelet\next\dodotypeone}
\def\dotyp#1%
{\dontleavehmode
@@ -338,6 +353,7 @@
nature = "inline",
}}%
\dostoptagged
+ \dorightoftype
\egroup}
\def\dodotypenested#1%
@@ -351,6 +367,7 @@
nature = "inline",
}}%
\dostoptagged
+ \dorightoftype
\egroup
\gobbleoneargument} % grab last >