emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Torsten Wagner <torsten.wagner@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Near real-time preview of PDF/ODT export?
Date: Mon, 25 Nov 2013 14:25:04 +0100	[thread overview]
Message-ID: <CAPaq-gPqs+2zyzDJxpcoaEQ9K7dao=Le3PYpms7X47Wur8EHCQ@mail.gmail.com> (raw)
In-Reply-To: <m2y54cydka.fsf@polytechnique.org>

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émy 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 <alan.schmitt@polytechnique.org> wrote:
> 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émy (the author of WhizzyTex). If there are
> changes needed in WhizzyTex to make this happen, I could try to contact
> him.
>
> Alan

  reply	other threads:[~2013-11-25 13:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22 13:59 Near real-time preview of PDF/ODT export? Bastien
2013-11-22 14:30 ` Rasmus
2013-11-22 14:51   ` Suvayu Ali
2013-11-25  8:54     ` Torsten Wagner
2013-11-25 10:35       ` Alan Schmitt
2013-11-25 13:25         ` Torsten Wagner [this message]
2013-11-25 14:20           ` Alan Schmitt
2013-11-25 17:58             ` Jambunathan K
2013-11-26  8:59               ` Alan Schmitt
2013-11-25 19:24             ` Achim Gratz
2013-11-22 14:32 ` Thorsten Jolitz
2013-11-25 12:25 ` Yagnesh Raghava Yakkala
2013-11-26  4:06   ` Feng Shu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPaq-gPqs+2zyzDJxpcoaEQ9K7dao=Le3PYpms7X47Wur8EHCQ@mail.gmail.com' \
    --to=torsten.wagner@gmail.com \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).