From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38240 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: preview-context Date: Sun, 23 Dec 2007 19:29:00 -0500 (EST) Message-ID: References: <20071223124839.7d40a8a7@gaura-nitai.dyndns.org> <476E995C.7060201@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198456407 3864 80.91.229.10 (24 Dec 2007 00:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 00:33:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 24 01:41:30 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 dough.gmane.org with esmtp (Exim 4.50) id 1J6bNp-0006Ez-MM for gctc-ntg-context-518@m.gmane.org; Mon, 24 Dec 2007 01:41:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A1DC51FB5E; Mon, 24 Dec 2007 01:31:17 +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 27790-04-6; Mon, 24 Dec 2007 01:30:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11E161FB47; Mon, 24 Dec 2007 01:30:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA75D1FB31 for ; Mon, 24 Dec 2007 01:29:36 +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 27790-04-5 for ; Mon, 24 Dec 2007 01:29:07 +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 E0BC51FB47 for ; Mon, 24 Dec 2007 01:29:03 +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 476EFD4D.62C72.17495 ; 23 Dec 2007 19:29:01 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: <476E995C.7060201@wxs.nl> 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:38240 Archived-At: On Sun, 23 Dec 2007, Hans Hagen wrote: > Gour wrote: >> Hi! >> >> I've asked on auctex ml about the prospects of getting preview-context, similar >> to preview-latex and here is the reply: >> >> "There are no ConTeXt users among the active developers (actually, there >> is not even much activity in the LaTeX area, but the status quo is >> rather more advanced). As long as that does not change, I don't see >> much of a point to talk vapour." >> >> (see http://article.gmane.org/gmane.emacs.auctex.general/2387) >> >> Since I plan to move to ConTeXt using AUCTeX, I'm interested to hear if >> there is some interest here (amongst emacs users) to have preview-context >> withing AUCTeX package? >> >> otoh, I'm interested if there is newer version of etexshow >> (Browser for ConTeXt commands) ? > > in my opinion previewing contradicts symbolic markup (apart maybe from > special subconstructs); anyhow, because context sometimes relies on > multipass info, previewing is no option unless on fast machines I disagree. I was grately impressed by preview-latex when I tried it (around 2 years ago), so much so that I even considered moving to emacs from vim. It is extremely useful for mathematics and images: you can see the typeset result rather than a bunch of code. This means that you can proofread in the editor rather than a pdf (or dvi) reader. What is needed for an improved support of preview-latex in context? Last time I looked into preview.sty, I could not understand how it works. If I were to do the same thing, this is how I would do it. Run context with a custom module, which writes the content of each \startformula \stopformula into a temporary file as \startTEXpage \startformula \stopformula \stopTEXpage. Lilypond and gnuplot modules already do something similar. Then process the temporary tex file. You will get a pdf file with one formula on each page. Convert each page into png, and use some lisp magic to insert the image at appropriate places in the buffer. Obviously I am missing a lot of things. But, am I correct in assuming that from the context end, the problem is simple? 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 ___________________________________________________________________________________