From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71245 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Verbatim in framed text Date: Wed, 21 Sep 2011 13:09:42 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316603410 24475 80.91.229.12 (21 Sep 2011 11:10:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 11:10:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 21 13:10:04 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 1R6Kgl-0005Af-7y for gctc-ntg-context-518@m.gmane.org; Wed, 21 Sep 2011 13:10:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A720CAFB1; Wed, 21 Sep 2011 13:10:02 +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 SKvUz95M+8S1; Wed, 21 Sep 2011 13:09:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D0B2CAFAC; Wed, 21 Sep 2011 13:09:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5DA4ACAFAC for ; Wed, 21 Sep 2011 13:09: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 52yB48Ep+TO2 for ; Wed, 21 Sep 2011 13:09:55 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 73901CAFAA for ; Wed, 21 Sep 2011 13:09:55 +0200 (CEST) Original-Received: from mail-ew0-f42.google.com (mail-ew0-f42.google.com [209.85.215.42]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8LB9sB2000615 for ; Wed, 21 Sep 2011 13:09:54 +0200 Original-Received: by ewy1 with SMTP id 1so1381547ewy.15 for ; Wed, 21 Sep 2011 04:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=ccTgg3I+ZPLmxeBTlVsDEtfhtr/vPkMOvc+AX1DEHZE=; b=S1SIWL7ph7xbotseeTxdHG9cF00l5fzDh7kFEBj6ptif4aMRl7IASwRti21XTREYXf OEVmxZtiI582ZKNMt3xK/g7PGG+e5SZOYGlg0ZjXvAZ7xOP9FFoRte2RYhBy59KmO135 rlgoUKZBCQzphHwxAUJzqltA/DagtvGaq1iZU= Original-Received: by 10.14.5.196 with SMTP id 44mr217208eel.135.1316603394396; Wed, 21 Sep 2011 04:09:54 -0700 (PDT) Original-Received: from [192.168.11.101] (cust-78-71-111-94.dyn.as47377.net. [94.111.71.78]) by mx.google.com with ESMTPS id v60sm13601808eev.12.2011.09.21.04.09.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 04:09:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.42; 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: 0xFzn9StU - 547cd9a591bf - 20110921 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:71245 Archived-At: 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: > print 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=3Dflus= hleft]=94. 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 ___________________________________________________________________________= ________