From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79553 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: "verbatim boxes" Date: Mon, 26 Nov 2012 22:35:11 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353965727 2244 80.91.229.3 (26 Nov 2012 21:35:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 21:35:27 +0000 (UTC) To: erik.margraf@gmail.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 22:35:34 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Td6Kz-0003Ep-By for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2012 22:35:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D788102BE; Mon, 26 Nov 2012 22:35:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YXwuTalFDAqW; Mon, 26 Nov 2012 22:35:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2A842102AF; Mon, 26 Nov 2012 22:35:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48BE0102AF for ; Mon, 26 Nov 2012 22:35:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UGqpn1W9fiTy for ; Mon, 26 Nov 2012 22:35:16 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F06DB101F1 for ; Mon, 26 Nov 2012 22:35:15 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAQLjBLN027888 for ; Mon, 26 Nov 2012 22:45:12 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so5691237bkc.14 for ; Mon, 26 Nov 2012 13:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=wK8GEULOKau5Be/cV4f4xxJwk3sWLZt7lXeMtnTKI3c=; b=s6T0xaZrjtoA8MAD21umunNKH4Yj+xvwE40ue++OjNTcQU3vSJ2BIQJrUpqz7DO6mT cs5MmvKmY5tjyKb1lDl6n6ZA269T6M7Pmv19F95XvwhUU3YpD/DVCATfoi/kiJ6tQTLU bVUjVs5AdbWFEcruTj9U5KYwMih1CtZ74J7H326hWxQoYw6Tuc45KPJgEOL1Pl+ISVH2 qRHoe+PRp1otV2n9gyS8iERBTsmmrwmguiPlWyfjMPlthysDj36OpzaDRPvlEjdOERIv QtbQUSn1VU6U8DrlZBV2pSFymXscgsICfDtt23raN+UCVzgKpCWQhgcknM4+sSwel3tU ytKQ== Original-Received: by 10.204.149.204 with SMTP id u12mr3319171bkv.108.1353965714984; Mon, 26 Nov 2012 13:35:14 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d074542.pool.mediaWays.net. [77.7.69.66]) by mx.google.com with ESMTPS id j16sm8024806bkv.1.2012.11.26.13.35.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Nov 2012 13:35:13 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01IslJcec - ec99ebe45c44 - 20121126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79553 Archived-At: 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 li= ne. 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=3D{\startframedtext[width=3Dmax]}, after=3D\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 =96 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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________