From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: Near real-time preview of PDF/ODT export? Date: Mon, 25 Nov 2013 14:25:04 +0100 Message-ID: References: <87wqk0o7uj.fsf@bzg.ath.cx> <87eh68h5l1.fsf@gmx.us> <20131122145105.GE32060@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkwA2-00005B-Pi for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 08:25:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkw9x-0005Bb-UI for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 08:25:10 -0500 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:38507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkw9x-0005AD-OF for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 08:25:05 -0500 Received: by mail-ea0-f169.google.com with SMTP id l9so2422276eaj.0 for ; Mon, 25 Nov 2013 05:25:05 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: Org Mode Mailing List Hi Alan, nice, you might can start easily asking him to solve the installer problem and provide an package for a ELPA repository. That alone would allow much more people to use it. I think the main problem for org-mode would be the fact that org-mode->PDF is a two step approach. Org-mode exports converts the org-mode syntax into a TeX file which then gets compiled into PDF by a LaTeX system. To preserve the cursor position, the org-mode exporter would have to add the necessary code already within the Tex-file. That means whatever whizzytex.el is doing to the final latex code, parts of it would need to move to org-mode export for PDF. After that, I believe one could use whizzytex as it is. However, I guess the author Didier R=E9my can forsee already very clearly what kind of feature would be needed in the org-mode exporter to make it working with whizzytex. Since we have now a modular exporting system, we could have a ox-whizzytex which mainly base on ox-latex and only adds the additional requirements for whizzytex. this requirements as far as I can see would be: 1. Cursor position 2. Automatic definition of an export region (in the same way, Whizzytex works on a subset of the TeX-buffer to allow fast compilation). 3. Create a function outside the exporter which calls ox-whizzytex exporter for each change in the org-file. Point 2 would be necessary within org-export to avoid long processing times of org-export on large documents. All in all, it would require to implement the functions defined in whizzytex.el to org-mode resp. the org-exporter. Alternatively, one could make whizzytex aware of org-mode and calling the org-exporter for an region first before processing the generated TeX file. This would lead to the decision whether to have a org-mode exporter for whizzytex or to make whizzytex aware of org-mode All the best Torsten On 25 November 2013 11:35, Alan Schmitt wr= ote: > Hello, > > torsten.wagner@gmail.com writes: > >> Would it be an option to implement something like WhizzyTex for org-mode= ? >> Thus you would have the easiness of org-mode syntax (which is enough >> for many cases) with an realtime update of the export to PDF. > > This would be wonderful. > > I happen to know Didier R=E9my (the author of WhizzyTex). If there are > changes needed in WhizzyTex to make this happen, I could try to contact > him. > > Alan