From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43710 Path: news.gmane.org!not-for-mail From: "B. Tommy Jensen" Newsgroups: gmane.comp.tex.context Subject: Verbatim with color background Date: Wed, 03 Sep 2008 23:50:17 +0200 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: ger.gmane.org 1220485110 15769 80.91.229.12 (3 Sep 2008 23:38:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 23:38:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 04 01:39:24 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 1Kb1wY-0005bJ-CU for gctc-ntg-context-518@m.gmane.org; Thu, 04 Sep 2008 01:39:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A4C931FEEB; Thu, 4 Sep 2008 01:38: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 31786-01-19; Thu, 4 Sep 2008 01:37:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6C5F1FE62; Thu, 4 Sep 2008 01:18:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8804A1FC67 for ; Thu, 4 Sep 2008 01:17:59 +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 30521-09-4 for ; Thu, 4 Sep 2008 01:17:06 +0200 (CEST) Original-Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by ronja.ntg.nl (Postfix) with ESMTP id 9CBCF1FF31 for ; Wed, 3 Sep 2008 23:50:18 +0200 (CEST) Original-Received: from tommy-pc.i04.local (users.intility.com [193.71.38.142]) by smtp.bluecom.no (Postfix) with ESMTP id 970DC10D7379 for ; Wed, 3 Sep 2008 23:47:32 +0200 (CEST) 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:43710 Archived-At: Hi, I have a short question about verbatim areas (\starttyping): I have been trying to define a background color to verbatim areas in a document. My method so far is to define a textbackground named "verbatim" and refer to this in the setuptyping method: \setuptyping[typing][margin=0.5cm,bodyfont=8.0pt, before={\starttextbackground[verbatim]}, after={\stoptextbackground}] This works only partly. For example, when using long verbatim texts that spans over more than one page, the background color disappears on the last page. Is there any other easy way of controlling the background color on verbatim areas? Best regards, Tommy Jensen ___________________________________________________________________________________ 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 ___________________________________________________________________________________