Am 26.11.2012 um 21:42 schrieb Erik Margraf <erik.marg...@gmail.com>:
> 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________