]> mj.ucw.cz Git - ucwmac.git/commitdiff
Inline verbatim is turned off by default, added \inlineverb(on|off)
authorMartin Mares <mj@ucw.cz>
Sun, 3 Oct 2010 12:12:28 +0000 (14:12 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 9 Oct 2010 11:14:11 +0000 (13:14 +0200)
test.tex
ucw-verb.tex

index bb1aef53f47d610c3cfcb9524c00942faa0a8563..ad70a84a51962d6906617f73d4596a5f334190c7 100644 (file)
--- a/test.tex
+++ b/test.tex
@@ -57,8 +57,12 @@ misinterpreted\dots{} --- Douglas Addams: HHG
 
 \hd{Inline verbatim}
 
+\inlineverbon
 Lo and behold: |a quick brown fox| {\showspacestrue |jumps over  the lazy dog|} |!@#$%^&*()\_|
 
+\inlineverboff
+When turned off, vertical lines work as usually: $|a-b| \ge 0$.
+
 \hd{Block verbatim}
 
 \noindent Pre-verbatim
index 2b9890972e8a7c6cc4112493741862e246aa12bf..d6e5317b4ed3ce3fe420919f8e6e7373e4fd9e8f 100644 (file)
 \gdef\showsp@ces{\ifshowspaces\let =\sp@ce\fi}
 \global\let =\ }
 
-\catcode124=\active % Make | active
-\def\ttst@rt{\begingroup\setverb@tim\let|=\endgroup}
-\let|=\ttst@rt
+{\catcode124=\active % Make | active
+\gdef\ttst@rt{\begingroup\setverb@tim\let|=\endgroup}
+\gdef\inlineverbon{\catcode124=\active\let|=\ttst@rt}
+\gdef\inlineverboff{\catcode124=12}
+}
 
 % Typesetting of verbatim blocks:
 %      - the block is enclosed in balanced {}'s