From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71237 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Verbatim in framed text Date: Tue, 20 Sep 2011 16:50:20 +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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316533878 4711 80.91.229.12 (20 Sep 2011 15:51:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2011 15:51:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 20 17:51:14 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 1R62bF-0000cN-DL for gctc-ntg-context-518@m.gmane.org; Tue, 20 Sep 2011 17:51:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4192CAFAD; Tue, 20 Sep 2011 17:51:05 +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 r5AXF70hDTjO; Tue, 20 Sep 2011 17:50:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26C6BCAFAA; Tue, 20 Sep 2011 17:50:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6DE04CAFAA for ; Tue, 20 Sep 2011 17:50: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 SXAMUkkk8mr0 for ; Tue, 20 Sep 2011 17:50:21 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id B6C1CCAF37 for ; Tue, 20 Sep 2011 17:50:21 +0200 (CEST) Original-Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8KFoKc2004594 for ; Tue, 20 Sep 2011 17:50:21 +0200 Original-Received: by ewy6 with SMTP id 6so533669ewy.3 for ; Tue, 20 Sep 2011 08:50:20 -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; bh=5ssgj9iAIQFWqtO+nMgJnyIBw9iuwDShuLpMZwznkiQ=; b=ryuvlZegZ3UVgq7TGqx78BQrDGoyTLPkmSf93wk2nmVm/lVQ0T+YnEM+hM6QdJNks8 VwC/VrZEu2S1BJ0dgLBLVhLv08EGXd7P0RNq8g5lCh9xizLi5GbElK69PalYypmWte71 ua8eLit5VNjM65VcUmZHlysNQeoQVQo/D14HM= Original-Received: by 10.52.115.4 with SMTP id jk4mr207663vdb.488.1316533820245; Tue, 20 Sep 2011 08:50:20 -0700 (PDT) Original-Received: by 10.52.184.229 with HTTP; Tue, 20 Sep 2011 08:50:20 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.44; 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: 04Fz3Ol8t - 57f2484bf0a5 - 20110920 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:71237 Archived-At: 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=.8\textwidth] \startframedtext[left][frame=off, width=.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? Many thanks, Felix ___________________________________________________________________________________ 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 ___________________________________________________________________________________