From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38245 Path: news.gmane.org!not-for-mail From: Gour Newsgroups: gmane.comp.tex.context Subject: Re: preview-context Date: Mon, 24 Dec 2007 07:52:11 +0100 Message-ID: <20071224075211.74a99370@gaura-nitai.dyndns.org> References: <20071223124839.7d40a8a7@gaura-nitai.dyndns.org> <476E995C.7060201@wxs.nl> 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 1198504802 6116 80.91.229.12 (24 Dec 2007 14:00:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 14:00:02 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 24 15:00:14 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 1J6nqh-0005Tc-Ar for gctc-ntg-context-518@m.gmane.org; Mon, 24 Dec 2007 15:00:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0C49E1FE29; Mon, 24 Dec 2007 14:59:47 +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 05142-01-19; Mon, 24 Dec 2007 14:59:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4D141FC78; Mon, 24 Dec 2007 07:52:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1EBD81FC6B for ; Mon, 24 Dec 2007 07:52:31 +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 22095-01-3 for ; Mon, 24 Dec 2007 07:52:22 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with ESMTP id 9C3601FC43 for ; Mon, 24 Dec 2007 07:52:16 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1011137uge.50 for ; Sun, 23 Dec 2007 22:52:15 -0800 (PST) Original-Received: by 10.67.106.13 with SMTP id i13mr3181144ugm.49.1198479135080; Sun, 23 Dec 2007 22:52:15 -0800 (PST) Original-Received: from gaura-nitai.dyndns.org ( [89.164.187.17]) by mx.google.com with ESMTPS id p32sm6359825ugc.26.2007.12.23.22.52.12 (version=SSLv3 cipher=OTHER); Sun, 23 Dec 2007 22:52:13 -0800 (PST) In-Reply-To: X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; x86_64-unknown-linux-gnu) X-Face: ),xf-z6dDO\:>YSZI_e=P@?[K_CG; $szx>/iL$UW8e7>n0'$Sg[7U[bx%iw6&z1}%vLroT$ kAJU2B{DVpGqvk$$0lgE6?1""q!+({Gra9j$}y}0VqM+K_d8>[sZf1]_Y`YV 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:38245 Archived-At: On Sun, 23 Dec 2007 19:29:00 -0500 (EST) Aditya Mahajan wrote: > 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. Besides the above use-cases (I do not need math), I'm thinking about the tables - having some visual help can, imho, help a lot. > 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? Thank you for your insight... Let me become more familiar with the emacs and Context first, then we can take a closer look at elisp & preview-latex... Sincerely, Gour ___________________________________________________________________________________ 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 ___________________________________________________________________________________