From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83589 Path: news.gmane.org!not-for-mail From: john Culleton Newsgroups: gmane.comp.tex.context Subject: Re: Inserting verbatim text in a figure and framed. Date: Wed, 31 Jul 2013 10:42:45 -0400 Organization: WexfordPress Message-ID: <20130731104245.1c4f4743@wexfordpress> References: <20130730151110.1070203b@wexfordpress> <87li4nrgl1.fsf@micropit.couberia.selfip.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375281881 27981 80.91.229.3 (31 Jul 2013 14:44:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 14:44:41 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 31 16:44:44 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4Xdp-0006Uf-0v for gctc-ntg-context-518@m.gmane.org; Wed, 31 Jul 2013 16:44:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 464AC101E8; Wed, 31 Jul 2013 16:44:10 +0200 (CEST) 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 ZUDSMRsJgGlw; Wed, 31 Jul 2013 16:43:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 10A61101E5; Wed, 31 Jul 2013 16:43:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A56CA101E5 for ; Wed, 31 Jul 2013 16:43:57 +0200 (CEST) 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 GKglE1Phs3Hz for ; Wed, 31 Jul 2013 16:43:34 +0200 (CEST) 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 1A4A8101E4 for ; Wed, 31 Jul 2013 16:43:33 +0200 (CEST) Original-Received: from qmta05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:48]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6VEi17k010277 for ; Wed, 31 Jul 2013 16:44:02 +0200 Original-Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta05.emeryville.ca.mail.comcast.net with comcast id 72Mo1m0030x6nqcA52jzXr; Wed, 31 Jul 2013 14:43:59 +0000 Original-Received: from wexfordpress ([68.50.233.152]) by omta12.emeryville.ca.mail.comcast.net with comcast id 72jx1m00N3HwwZ88Y2jy3F; Wed, 31 Jul 2013 14:43:59 +0000 In-Reply-To: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.10; x86_64-unknown-linux-gnu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1375281839; bh=SoY0ntgjreNne/TR81IIVn3l/a6oMXwdpsRUv8rhwzw=; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version: Content-Type; b=J6lro/WwCNMDviRf9xCOdb7wpoIOmFx4kp3nBV0V51vZ4NFRq6T5DwnSSfWGeJpm3 C6MltxrcGDB3c1IS5TExI9N/wY9zMAQuUzbzyHJ7illZsFD4tLhtzYNGZX5E9bGrmk W8eh08plr15PQ8YKKeh7Ou3QIvpxK0/yFOl/tUFTCi3kNIKEOyxjiE4Y7Vm+RwKUL9 W7/QIQ+jbbR8wmxH/paDGpu/wTCh0Yb6gqIXbC8Nn4okjrHg1Gy26CWegbWCSAY3uK B5Z8LRIds4M2tFnnZ5HdxE15/Z5Foh4NBBHAxrI3slJ14rpm/6qBJ0Dd3vIx6R0/1x N4XV3bAO3eMjA== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:558:fe2d:43:76:96:30:48; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01K72I1Pn - 9f10dd4b97c1 - 20130731 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:83589 Archived-At: On Tue, 30 Jul 2013 23:03:32 +0200 Wolfgang Schuster wrote: > = > Am 30.07.2013 um 21:30 schrieb Peter M=FCnster : > = > > On Tue, Jul 30 2013, john Culleton wrote: > > = > >> Here is my code so far. I want to show a file in verbatim form. It > >> compiles but here is no frame around the text and there is no > >> caption. > > = > > Hi, > > = > > this works here: > > = > > --8<---------------cut here---------------start------------->8--- > > \starttext > > \startbuffer[ex1] > > \typefile[]{test.tex} > > \stopbuffer > > \placefigure[here][fig:ex1] > > {Example 1} > > {\framed{\externalfigure[ex1.buffer][width=3D.75\textwidth]}} > > \stoptext > > --8<---------------cut here---------------end--------------->8--- > = > Why do you use a buffer? > = > \starttext > \startplacefigure[reference=3Dfig:ex1,title=3DExample 1] > \framed[align=3Dflushleft,width=3D.75\textwidth]{\typefile{test.tex}} > \stopplacefigure > \stoptext > = > Wolfgang > = Possibly Peter used it because I used it. I used it because the example I followed in The Manual used a buffer. As it happens his example works better. My "example1.tex" is knuth.tex with two minor modifications. His version with the buffer reduces the size of the Knuth text to fit the frame. Your version wraps the text instead on each line. For my purposes the facsimile representation is better. = However thanks to both for adding to my education. Unfortunately I forget things as fast as I learn them these days. It is not Alzheimer's disease but just plain oldtimers disease. = John Culleton ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________