From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71263 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Re: Verbatim in framed text Date: Thu, 22 Sep 2011 11:54:46 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316688899 4054 80.91.229.12 (22 Sep 2011 10:54:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 10:54:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 22 12:54:55 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6gvf-0004PG-2w for gctc-ntg-context-518@m.gmane.org; Thu, 22 Sep 2011 12:54:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5BA9BCAFBC; Thu, 22 Sep 2011 12:54:54 +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 TlRHiTY53Gd9; Thu, 22 Sep 2011 12:54:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98FB9CAFB7; Thu, 22 Sep 2011 12:54:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25E02CAFB7 for ; Thu, 22 Sep 2011 12:54:50 +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 N7FrdimkrKnK for ; Thu, 22 Sep 2011 12:54:48 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 51B04CAFB2 for ; Thu, 22 Sep 2011 12:54:48 +0200 (CEST) Original-Received: from mail-vx0-f169.google.com (mail-vx0-f169.google.com [209.85.220.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8MAsk8I030279 for ; Thu, 22 Sep 2011 12:54:47 +0200 Original-Received: by vcbfo14 with SMTP id fo14so496444vcb.14 for ; Thu, 22 Sep 2011 03:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Bp3k1IT9kAGTvebjzHnqgDyltAgTQbkD+qV5pjGP6mQ=; b=uKOmKJyknRIGhnDP+3Pje2lznqmQllUFgMoQSJvKRzj8hlHQY5aFDvmwVqHiO6x2Gz oTcapfjhVgZU1zGOo0BeSxR4wosxdKnxGBQRHVKWusTRIcuteelqaJ1JdRYM5g47ppJz w4luRbYnuUKweaLPATJmTOEoCHTLN5pA/EXyU= Original-Received: by 10.52.33.3 with SMTP id n3mr1645956vdi.354.1316688886190; Thu, 22 Sep 2011 03:54:46 -0700 (PDT) Original-Received: by 10.52.111.193 with HTTP; Thu, 22 Sep 2011 03:54:46 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.169; 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: 0bFzKSLb7 - fde455d9f83c - 20110922 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71263 Archived-At: > ---------- Forwarded message ---------- > From:=A0Wolfgang Schuster > To:=A0mailing list for ConTeXt users > Date:=A0Wed, 21 Sep 2011 13:09:42 +0200 > Subject:=A0Re: [NTG-context] Verbatim in framed text > > Am 20.09.2011 um 17:50 schrieb Felix Ingram: > >> Some of my verbatim lines are overflowing the framed text box I'm >> putting them in. I see that I could define a pretty printer to handle >> this but I came up with the following: >> >> >> \starttext >> \startframedtext[middle][width=3D.8\textwidth] >> \startframedtext[left][frame=3Doff, width=3D.6\textwidth] >> \starttyping >> import x >> from x import y >> for z in b: >> =A0 =A0print dfdg >> Some text >> Some text >> Some text >> Some text >> Some really long text Some really long text Some really long text Some >> really long text Some really longtextSomereallylong text Some really >> long text Some really long text Some really long text Some really long >> text Some really long text >> \stoptyping >> \stopframedtext >> \stopframedtext >> \stoptext >> >> >> This works but seems like cheating. >> >> Is there a better third way I could try, or could someone point to a >> mkiv pretty printer example I could study? > > Change the alignment of the verbatim text with =93\setuptyping[align=3Dfl= ushleft]=94. This has helped unless I have some particularly long words towards the right of the frame. I will use a combination of flushleft plus some pre-processing. Thanks for the help, Felix ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________