From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16019 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Some problems with framing typed text. Date: Tue, 10 Aug 2004 21:04:50 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41191C52.1080802@wxs.nl> References: <4.3.1.2.20040810101921.00b335b8@cits1.stanford.edu> <4.3.1.2.20040810101921.00b335b8@cits1.stanford.edu> <4.3.1.2.20040810113429.02b62a68@cits1.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092164704 28123 80.91.224.253 (10 Aug 2004 19:05:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2004 19:05:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 10 21:04:58 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bubve-0004UL-00 for ; Tue, 10 Aug 2004 21:04:58 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF9E41279A; Tue, 10 Aug 2004 21:04:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05336-07-4; Tue, 10 Aug 2004 21:04:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8A1A12789; Tue, 10 Aug 2004 21:04:54 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B816312789 for ; Tue, 10 Aug 2004 21:04:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05336-07-3 for ; Tue, 10 Aug 2004 21:04:53 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3ADCA12771 for ; Tue, 10 Aug 2004 21:04:53 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i7AJ4m3L017013 for ; Tue, 10 Aug 2004 21:04:48 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D03112EB6E; Tue, 10 Aug 2004 21:04:51 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 9DEC71A7AB for ; Tue, 10 Aug 2004 19:04:50 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4.3.1.2.20040810113429.02b62a68@cits1.stanford.edu> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16019 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16019 Brooks Moses wrote: > At 11:00 AM 8/10/2004, you wrote: > >> Am 10.08.2004 um 19:30 schrieb Brooks Moses: >> >>> In the document I'm working on, I'd like to put some typed code bits >>> in frames, to get an appearance sort of like the code excerpts on >>> the ConTeXtWiki. However, I've found myself needing to do a couple >>> of rather ugly hacks to get that to work right, and I'm hoping for >>> some suggestions on how to avoid that. >> >> >> Did you try something like: >> >> \setupbackground[background=screen, frame=on, color=blue] >> \setuptyping[before=\startbackground, after=\stopbackground] >> >> \starttyping >> bla bla >> \stoptyping > > > I hadn't, but I have now. (I assume the color=blue was meant to be > framecolor=blue?) That does seem to work well and avoid most of the > problems; thanks! > > It still doesn't give me a \parskip before the typed text, though -- > try putting a \setupspacing[big] with the above code to see what I > mean. (That's an easy fix, though; a \vskip\parskip in the before= > command fixes it.) That seems like a bug somewhere, though -- if I > comment out the \setuptyping command, the spacing is fine. The startbackground is not the most robust one (otr based); the \definetextbackgound one is better. The framed solution (earlier post) is probably what you're looking for. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------