From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44462 Path: news.gmane.org!not-for-mail From: "Chen Shen" Newsgroups: gmane.comp.tex.context Subject: Re: Listings (was: Experience on writing a thesis with MKIV) Date: Wed, 1 Oct 2008 00:37:39 +0800 Message-ID: <48af9a710809300937g728b8a7aib8b88f0c1e144750@mail.gmail.com> References: <55EB992D-5348-422A-8105-11A2B2726AF7@gmail.com> 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 1222794334 21921 80.91.229.12 (30 Sep 2008 17:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 17:05:34 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 30 19:06:31 2008 connect(): Connection refused 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 1Kkif4-0003Ya-Rj for gctc-ntg-context-518@m.gmane.org; Tue, 30 Sep 2008 19:05:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D6F21FE49; Tue, 30 Sep 2008 19:04:18 +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 05714-02-2; Tue, 30 Sep 2008 19:03:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6088E1FB6B; Tue, 30 Sep 2008 19:03:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DEA91FB57 for ; Tue, 30 Sep 2008 19:03:25 +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 04454-04 for ; Tue, 30 Sep 2008 19:02:44 +0200 (CEST) Original-Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.147]) by ronja.ntg.nl (Postfix) with ESMTP id 6A9BC1FC57 for ; Tue, 30 Sep 2008 18:37:40 +0200 (CEST) Original-Received: by ey-out-1920.google.com with SMTP id 21so36232eyc.38 for ; Tue, 30 Sep 2008 09:37:40 -0700 (PDT) Original-Received: by 10.210.12.18 with SMTP id 18mr8201926ebl.83.1222792659978; Tue, 30 Sep 2008 09:37:39 -0700 (PDT) Original-Received: by 10.210.67.1 with HTTP; Tue, 30 Sep 2008 09:37:39 -0700 (PDT) In-Reply-To: <55EB992D-5348-422A-8105-11A2B2726AF7@gmail.com> Content-Disposition: inline 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:44462 Archived-At: Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. regards, shenchen On Mon, Sep 29, 2008 at 2:16 AM, Wolfgang Schuster wrote: > > \setupcolors[state=start] > > \definetyping[JAVA][option=JV] > > \setuptyping > [JAVA] > [numbering=line] > > \starttext > > \startJAVA > ... > \stopJAVA > > \stoptext > > or > > same preamble as above plus > > \definefloat[listing][listings] > > \starttext > > \placelisting > [split] > [lst:freeformlogfile] > {Log File} > {\startJAVA > ... > \stopJAVA} > > \stoptext > > Wolfgang > > ______________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________