summaryrefslogtreecommitdiff
path: root/tex/context/base/lang-mis.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-06-28 11:00:13 +0300
committerMarius <mariausol@gmail.com>2012-06-28 11:00:13 +0300
commit5bb7beb9db0bdf798ab7f2f63a03a354503f3081 (patch)
treef98c19ac24c446bd79761b7579ab485e24286a39 /tex/context/base/lang-mis.mkiv
parenteedd3462bb4e7d16146d00683c3a85d1f74fe1fe (diff)
downloadcontext-5bb7beb9db0bdf798ab7f2f63a03a354503f3081.tar.gz
beta 2012.06.28 09:36
Diffstat (limited to 'tex/context/base/lang-mis.mkiv')
-rw-r--r--tex/context/base/lang-mis.mkiv24
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/lang-mis.mkiv b/tex/context/base/lang-mis.mkiv
index ce23c0f60..3ce6b438f 100644
--- a/tex/context/base/lang-mis.mkiv
+++ b/tex/context/base/lang-mis.mkiv
@@ -664,4 +664,28 @@
\ifdefined\normalcompound \else \let\normalcompound=| \fi
+%D \macros
+%D {compound}
+%D
+%D We will overload the already active \type {|} so we have
+%D to save its meaning in order to be able to use this handy
+%D macro.
+%D
+%D \starttyping
+%D so test\compound{}test can be used instead of test||test
+%D \stoptyping
+
+\bgroup
+ \catcode\barasciicode\activecatcode
+ \unexpanded\gdef\compound#1{|#1|}
+\egroup
+
+%D Here we hook some code into the clean up mechanism needed
+%D for verbatim data.
+
+\appendtoks
+ \disablecompoundcharacters
+ \disablediscretionaries
+\to \everycleanupfeatures
+
\protect \endinput