From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43721 Path: news.gmane.org!not-for-mail From: "B. Tommy Jensen" Newsgroups: gmane.comp.tex.context Subject: Re: Verbatim with color background Date: Thu, 04 Sep 2008 11:49:02 +0200 Message-ID: References: <48BF987F.9000304@wxs.nl> 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: ger.gmane.org 1220522300 18048 80.91.229.12 (4 Sep 2008 09:58:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 09:58:20 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 04 11:59:14 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KbBbv-0007cu-5o for gctc-ntg-context-518@m.gmane.org; Thu, 04 Sep 2008 11:58:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E8461FB1F; Thu, 4 Sep 2008 11:57:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24936-01-2; Thu, 4 Sep 2008 11:56:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6673C1FE9E; Thu, 4 Sep 2008 11:56:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C85F31FE96 for ; Thu, 4 Sep 2008 11:56:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24936-01 for ; Thu, 4 Sep 2008 11:55:17 +0200 (CEST) Original-Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by ronja.ntg.nl (Postfix) with ESMTP id 74BA41FE58 for ; Thu, 4 Sep 2008 11:49:02 +0200 (CEST) Original-Received: from tommy-pc.i04.local (users.intility.com [193.71.38.142]) by smtp.bluecom.no (Postfix) with ESMTP id 189AA16FA69 for ; Thu, 4 Sep 2008 11:49:02 +0200 (CEST) In-Reply-To: <48BF987F.9000304@wxs.nl> User-Agent: Opera Mail/9.51 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43721 Archived-At: On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen wrote: >> Is there any other easy way of controlling the background >> color on verbatim areas? > > can you make a small example that shows where it goes wrong? > The example I used is shown below. Other observations are: - The code works with mkIV but not mkII - Removing the chapters in the test file also make it work with mkII - I am using the latest win32 standalone ConTeXt Best regards, Tommy Jensen % START EXAMPLE \setupcolors[state=start] % We use Palatino as the main body font \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \definetextbackground[verbatim] [background=color, backgroundcolor=yellow, backgroundoffset=0cm, offset=0.5cm, frame=on, framecolor=black, location=paragraph, color=black] % Setup verbatim \setuptyping[typing][margin=1cm,bodyfont=8.0pt, before={\starttextbackground[verbatim]}, after={\stoptextbackground}] \starttext \chapter{One} Chapter one. \chapter{Two} Chapter two. \chapter{Three} Chapter three. \starttyping This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. \stoptyping \stoptext ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________