From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38257 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: migrating to ConTeXt Date: Mon, 24 Dec 2007 14:40:06 -0500 (EST) Message-ID: References: <20071222075555.23365b3c@gaura-nitai.dyndns.org> <20071222110122.48a3408f@gaura-nitai.dyndns.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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198525405 25378 80.91.229.12 (24 Dec 2007 19:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 19:43:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 24 20:43:32 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from mail-forward.uio.no ([129.240.10.42]) by lo.gmane.org with esmtp (Exim 4.50) id 1J6tD2-0004l8-Ds for gctc-ntg-context-518@m.gmane.org; Mon, 24 Dec 2007 20:43:32 +0100 Original-Received: from mail-mx9.uio.no ([129.240.10.39]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1J6tCi-0004kf-Fj for gctc-ntg-context-518@m.gmane.org; Mon, 24 Dec 2007 20:43:12 +0100 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by mail-mx9.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1J6tCc-0004O3-Bw for gctc-ntg-context-518@m.gmane.org; Mon, 24 Dec 2007 20:43:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5A4B1FC78; Mon, 24 Dec 2007 20:41:30 +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 00481-02-3; Mon, 24 Dec 2007 20:40:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0F8C1FC7C; Mon, 24 Dec 2007 20:40:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F1F891FC7C for ; Mon, 24 Dec 2007 20:40:44 +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 00474-02-4 for ; Mon, 24 Dec 2007 20:40:09 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id 6F35D1FC78 for ; Mon, 24 Dec 2007 20:40:08 +0100 (CET) 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 47700B16.96B77.9078 ; 24 Dec 2007 14:40:07 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: <20071222110122.48a3408f@gaura-nitai.dyndns.org> 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 X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=5.0, autolearn=disabled, AWL=0.018) X-UiO-Scanned: 86899241B750876BB256BD98C734EF194639EE48 X-UiO-SPAM-Test: remote_host: 131.211.172.88 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 2 total 4861 max/h 11 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.comp.tex.context:38257 Archived-At: On Sat, 22 Dec 2007, Gour wrote: > 5) I read LaTeX in proper ConTeXt pdf, but I'm interested is there some > helper to convert classical LaTeX book (book class) to ConTeXt? I've two > books which I'm considering to publish as one (~1000p) in the future, so > any help in conversion would be nice. I do this quite often (ConTeXt -> LaTeX), so I am just writing my thoughts about this. A general purpose translator from ConTeXt to LaTeX is VERY difficult, because of the nature of both macro languages. However, it is relatively simple to convert a subset of one to the other. Currently, I write most of my papers in ConTeXt. For the final version of the paper, most journals want LaTeX. I know my style of writing ConTeXt, and can easily convert 95% percent of it to LaTeX using regular expressions (and have been thinking of exploring gema in more detail: http://gema.sourceforge.net/). It is easier to do the rest by hand rather than writing a script that takes care of all the corner cases. Usually it takes me around 2 hours to convert a (30-40 page) paper from ConTeXt to LaTeX. Since this needs to be done only once every six months or so, I have not spent too much time trying to optimize my approach. I think that the same will be true for conversion from LaTeX to ConTeXt. However, I would suggest that you start by writing some ConTeXt documents by hand, before you automate the conversion. This way, you will know what you want to achieve from a conversion script. Another option is to write a ConTeXt module that will allow you to understand LaTeX. For most environments, this is simple. There are a few examples on the wiki about this. > 6) the most important issue - by looking at luaTeX docs & archives I > noticed that it was mentioned there is some book on ConTeXt in > preparation - I gave up on ConTeXt in the past due to this reason - > lack of up-to-date documentation - didn't have enough time to try to > sovle the puzzle by inspecting different 'magazines' etc. cause I was > able to do the kob with LaTeX for which I've documentation in the form > of paper books. Actually, from a user's point of view, most things are included in the ConTeXt manuals. They are not exhaustive or up-to-date, but do convey the essential information. For most tasks you do not need to know the current state of affairs in ConTeXt. 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 ___________________________________________________________________________________