From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42244 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Fedora 9 (Linux) Installation Date: Tue, 8 Jul 2008 19:04:44 -0400 (EDT) Message-ID: References: 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 1215558307 8182 80.91.229.12 (8 Jul 2008 23:05:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 23:05:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 09 01:05:53 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 1KGMFJ-0004au-Ur for gctc-ntg-context-518@m.gmane.org; Wed, 09 Jul 2008 01:05:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECA7C1FE02; Wed, 9 Jul 2008 01:04:23 +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 18624-02-4; Wed, 9 Jul 2008 01:03:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 227C21FD5E; Wed, 9 Jul 2008 01:02:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0DDED1FE17 for ; Wed, 9 Jul 2008 01:02:24 +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 17746-02-6 for ; Wed, 9 Jul 2008 01:01:27 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id D8F661FE00 for ; Wed, 9 Jul 2008 01:01:18 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY tombraider.mr.itd.umich.edu ID 4873F1B9.ECF50.32483 ; 8 Jul 2008 19:01:14 -0400 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:42244 Archived-At: On Sat, 5 Jul 2008, abbg770@city.ac.uk wrote: > Ok now that's out of the way i've got a few questions regarding ConTeXt > itself. These got ignored in the heap on installation hints. > 1. Is there an equivalent of the listing package? No, but read on ... > Take a look at > listing-sample.pdf. It's also highly customizable, allowing me to change > the colour etc. For instance here is my setup. > > \lstset{breaklines=true, showlines=true, % showing line numbers > numbers=left, % where to show line numbers > numberstyle=\scriptsize\sffamily\color{gray}, % numbersep=10pt, % > stepnumber=1, % how often to show the line number on the left > language=Java, % specifiy the language basicstyle=\scriptsize\ttfamily, % > print whole listing small keywordstyle=\bfseries\color{eclipsekeyword}, % > underlined bold black keywords identifierstyle=, % nothing happens > commentstyle=\color{eclipsecomment}, % white comments, if you use > commentstyle=\color{white}, it doesn't display the PRODID for the VCALENDAR > stringstyle=\ttfamily, % typewriter type for strings > showstringspaces=false, % no special string spaces frame=single, % bottom > of listing gets a rule, use frame=single if you want awhole frame around it > backgroundcolor=\color{white}, use frame=b for line a the bottom only > backgroundcolor=\color{white}, tabsize=4, showspaces=false, > showstringspaces=false} > > \lstset{morecomment=[s][\color{eclipsejavadoc}]{/**}{*/}}%, > % morecomment=[s][\color{red}]{/*-}{*/}} > > And including the source code. > > \lstinputlisting[ > > caption={CalendarExtractor.java}, > > label=lst:CalendarExtractor.java] > > {source/CalendarExtractor.java} Context does have a pretty printer, which comes for support for C, Java, Javascript, pascal, eiffel, metapost and tex. It is not as configurable as listings, but has most of the features. In MKII, writing a module for pretty printing files was a pain. Now, with luatex, things are much easier. The new tex and mp pretty printers are written in lua, and are much easier to read (and write). Part of the interface is documented here: http://wiki.contextgarden.net/Verbatim_text > 2. Can someone please tell me if a book is being planned, I'd hate to print > out the documentation and then come to realize that, say, two months down > the line a book is available. Don't worry. Print out the doucumentation and get it bound so that it lasts :) A book is planned, but the effort is still in the planning stage. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________