From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46549 Path: news.gmane.org!not-for-mail From: Brecht Machiels Newsgroups: gmane.comp.tex.context Subject: specific document layout with ConTeXt Date: Sun, 28 Dec 2008 02:36:23 +0100 Message-ID: <4956D817.5050806@mos6581.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230450910 27832 80.91.229.12 (28 Dec 2008 07:55:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 07:55:10 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 28 08:56:17 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 1LGqVU-0000b5-9p for gctc-ntg-context-518@m.gmane.org; Sun, 28 Dec 2008 08:56:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCADC1FBD0; Sun, 28 Dec 2008 08:55:00 +0100 (CET) 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 23950-01; Sun, 28 Dec 2008 08:54:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B87031FBB5; Sun, 28 Dec 2008 08:48:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 555631FB7F for ; Sun, 28 Dec 2008 02:36:59 +0100 (CET) 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 03049-02-2 for ; Sun, 28 Dec 2008 02:36:24 +0100 (CET) Original-Received: from tuur.schedom-europe.net (tuur.schedom-europe.net [193.109.184.94]) by ronja.ntg.nl (Postfix) with ESMTP id 9D2111FB7E for ; Sun, 28 Dec 2008 02:36:24 +0100 (CET) Original-Received: (qmail 14367 invoked by uid 507); 28 Dec 2008 03:10:19 +0100 Original-Received: from ip79.16kes0-1.cityconnect.schedom-europe.net (HELO ?192.168.2.240?) (83.101.57.79) by tuur.schedom-europe.net with SMTP; 28 Dec 2008 03:10:19 +0100 User-Agent: Thunderbird 2.0.0.18 (X11/20081125) X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sun, 28 Dec 2008 08:48:35 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46549 Archived-At: Hello, I have some experience using LaTeX as I have used it to typeset two master theses. Having started a PhD a year ago, the need to write some publications arises. However, while IEEE conferences/journals used to offer LaTeX templates in the past (as far as I know), it seems that recently LaTeX support is being dropped and only MS Word templates are offered. Take for example the RFIC 2009 conference: http://www.rfic2009.org/rfic2009/authorguide.html Considering my more-or-less good experiences with LaTeX in the past, I still prefer to write a publication using LaTeX, and not Word. This would require me to copy the MS Word template in LaTeX. However, I do remember that fine-tuning things to look just the way I want in LaTeX can result in quite the headache. That's why I started looking for alternatives. Initially discarding TeX and all it's descendents because they are 'not very modern', I ended up with Lout (http://lout.wiki.sourceforge.net/). This looked quite promising, as I managed to closely approximate the Word template by means of adjusting the options to the "report" document class Lout offers (not considering images and tabled for the moment): http://homes.esat.kuleuven.be/~bmachiel/rfic/rfic2009f By extending the reportf class definition, I also managed to add an "index terms" section: http://homes.esat.kuleuven.be/~bmachiel/rfic/rfic2009f This was all surprisingly painless. The document lout source and pdf are at: http://homes.esat.kuleuven.be/~bmachiel/rfic/template.lout http://homes.esat.kuleuven.be/~bmachiel/rfic/template_lout.pdf However, trying to learn more about Lout -- for example to change subsection numbering -- it seems that the programming language that Lout offers confuses me almost as much as TeX macros do. Perhaps my mind is accustomed too much to nice object-oriented languages like Python and I simply cannot be bothered by this complex stuff anymore. (a Python-based typesetting system; now that would be heaven... maybe) Some other things bother me about Lout: * Much smaller userbase than (La)TeX. Will I find the help I need? * No means of "inheriting" the report class and changing it. I have to physically copy the class definition and change the code. I recall it is possible to do some kind of redefinition in TeX, right? In looking for an alternative to this alternative, I found that the TeX community is very much alive. Even though TeX's 'not very modern'-ness, these new developments might offer something interesting. I remembered that ConTeXt, unlike LaTeX, allows much finer control over the layout of a document. Hence, it would probably be the next candidate for this little typesetting adventure of mine. Today, I finally got my hands dirty and tried to recreate the RFIC2009 template using ConTeXt. Unfortunately, due to a lack of a good document class to start with, it is proving to be much more difficult to create something that resembles the Word template. As I have also read on this mailing list, the documentation, while there is plently to be found, is a bit messy. Appareantly the documentation is not up to date with ConTeXt? Perhaps it would be good to remove outdated documentation and clearly present only one reference manual (the most up to date) to the new user. I did find some samples on the wiki, but the first two that I tried to compile apparently required some extra packages. Also, while I always thought it was a good idea to seperate content and layout, some of the examples on the wiki seem to suggest to mix them. Or is this the philosophy behind ConTeXt? May I suggest some work is put into creating some basic (plain) document templates (well-commented) which can be used by ConTeXt newbies, but can also be used as starting points for creating new templates? On to the template then. http://homes.esat.kuleuven.be/~bmachiel/rfic/rfic2009.tex This is a first attempt at creating an environment to describe the layout of the template. As you can see, I have not yet gotten far. I copied the title code from the contextgarden wiki. The TeX code makes me shiver however. I will have to catch up on that. http://homes.esat.kuleuven.be/~bmachiel/rfic/template.tex This is the template itself. I basically want this file to contain as little layout stuff as possible. I would like to define the title, author, abstract and index terms before \starttext. If possible, the environment should place those parts automatically without having to specify \placetitle after \starttext. I was hoping that the friendly people on this mailing list might help me get started in creating this template. Let's start with the following: * title, author, abstract and index terms as explained above * the fact that there are 2 columns should be specified in the environment * define title, author, abstract and index terms fonts clearly, similar as in the Lout rfic2009 file and use this information to format the title stuff. Looking at the countless documents that show off ConTeXt, it is obvious that it is very much possible of creating custom layouts. However, I wonder, how much TeX hacking is required? Kind regards, Brecht ___________________________________________________________________________________ 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 ___________________________________________________________________________________