diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/ran_toks/examples/rt-cb.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/ran_toks/examples/rt-cb.tex | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ran_toks/examples/rt-cb.tex b/Master/texmf-dist/doc/latex/ran_toks/examples/rt-cb.tex new file mode 100644 index 00000000000..c8e20e4d171 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ran_toks/examples/rt-cb.tex @@ -0,0 +1,36 @@ +\documentclass{article} +\usepackage{ran_toks} +\usepackage{collectbox} + +\useLastAsSeed + +\newbox\rtcollectbox + +\parindent0pt + + +\begin{document} + +In this file, a method of placing verbatim content in as a token argument of +\verb~\ranToks~ The key is to use the \textsf{collectbox} package, and collect +the verbatim content with \verb~\collectboxto~. + +\def\cbCont{\def\myVerb{\usebox{\rtcollectbox}}} +\collectboxto{\rtcollectbox}{\cbCont}{\verb!$x^2+1$!} + +%\ranToksOff +\ranToks{CB} +{% + {Don-1} + {Kira-2} + {Alex-3} + {Jim-4} + {Rick-5} + {\myVerb-6} +} + +\useRanTok{1}, \useRanTok{2}, \useRanTok{3}, \useRanTok{4}, \useRanTok{5}, +\useRanTok{6}%, \useRanTok{7} + + +\end{document} |