From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38350 Path: news.gmane.org!not-for-mail From: "George N. White III" Newsgroups: gmane.comp.tex.context Subject: Re: migrating to ConTeXt Date: Sat, 29 Dec 2007 08:48:18 -0400 Message-ID: <22af238a0712290448p68a940b8wdae97221c601462a@mail.gmail.com> 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: multipart/mixed; boundary="===============0807316366==" X-Trace: ger.gmane.org 1198932545 14037 80.91.229.12 (29 Dec 2007 12:49:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 12:49:05 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 29 13:49:18 2007 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 1J8b7n-0007NE-HT for gctc-ntg-context-518@m.gmane.org; Sat, 29 Dec 2007 13:49:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48B0D1FC82; Sat, 29 Dec 2007 13:48:43 +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 16702-01; Sat, 29 Dec 2007 13:48:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A1F921FC36; Sat, 29 Dec 2007 13:48:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACB701FC36 for ; Sat, 29 Dec 2007 13:48:24 +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 16445-01-17 for ; Sat, 29 Dec 2007 13:48:21 +0100 (CET) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by ronja.ntg.nl (Postfix) with ESMTP id 1D6DD1FC24 for ; Sat, 29 Dec 2007 13:48:20 +0100 (CET) Original-Received: by wx-out-0506.google.com with SMTP id i27so1146407wxd.5 for ; Sat, 29 Dec 2007 04:48:19 -0800 (PST) Original-Received: by 10.150.49.15 with SMTP id w15mr2858332ybw.32.1198932498657; Sat, 29 Dec 2007 04:48:18 -0800 (PST) Original-Received: by 10.151.11.6 with HTTP; Sat, 29 Dec 2007 04:48:18 -0800 (PST) In-Reply-To: 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:38350 Archived-At: --===============0807316366== Content-Type: multipart/alternative; boundary="----=_Part_6409_4839901.1198932498644" ------=_Part_6409_4839901.1198932498644 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/24/07, Aditya Mahajan wrote: 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. This is consistent with my experience. I suggest that anyone considering such conversions creating a simple test document with one example of each construct you use. I took Lamport's sample2e.tex, added a figure and a table, and then made a context version which is part of my test suite for new tex installations. -- George N. White III Head of St. Margarets Bay, Nova Scotia ------=_Part_6409_4839901.1198932498644 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/24/07, Aditya Mahajan <adityam@umich.edu> wrote:

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.


This is consistent with my experience.   

I suggest that anyone considering such conversions creating a simple test
document with one example of each construct you use.   I took Lamport's
sample2e.tex, added a figure and a table, and then made a context version
which is part of my test suite for new  tex installations.   


--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia ------=_Part_6409_4839901.1198932498644-- --===============0807316366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0807316366==--