Am 26.11.2012 um 21:42 schrieb Erik Margraf
Dear List,
is there a Context function/macro which enables me to set a box with verbatim file input. I.e. something similar to :
\setbox\scratchbox\hbox{\verbatimfileinput{FileName}}
You have to use a \vbox because a \hbox would put everything in a single line. The important question is why do you want to store the text in a box. When you plan to frame the text something like this can be used: \definetyping [framedfile] [file] [before={\startframedtext[width=max]}, after=\stopframedtext] \starttext \typefile[framedfile]{knuth.tex} \stoptext To store text and reuse it buffers are the best tool: \startbuffer[ward] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopbuffer \starttext \typebuffer[ward] \getbuffer[ward] \stoptext Wolfgang