diff options
author | Marius <mariausol@gmail.com> | 2012-06-28 11:00:13 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-06-28 11:00:13 +0300 |
commit | 5bb7beb9db0bdf798ab7f2f63a03a354503f3081 (patch) | |
tree | f98c19ac24c446bd79761b7579ab485e24286a39 /tex/context/base/lang-mis.mkiv | |
parent | eedd3462bb4e7d16146d00683c3a85d1f74fe1fe (diff) | |
download | context-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.mkiv | 24 |
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 |