From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Near real-time preview of PDF/ODT export? Date: Fri, 22 Nov 2013 15:30:18 +0100 Message-ID: <87eh68h5l1.fsf@gmx.us> References: <87wqk0o7uj.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjrkk-0000Ed-Ho for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 09:30:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjrke-0001NS-Mf for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 09:30:38 -0500 Received: from plane.gmane.org ([80.91.229.3]:34187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjrke-0001NL-7I for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 09:30:32 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vjrkd-0006qN-B2 for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 15:30:31 +0100 Received: from ip-pool-130.iue.it ([192.167.90.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Nov 2013 15:30:31 +0100 Received: from rasmus by ip-pool-130.iue.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Nov 2013 15:30:31 +0100 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: emacs-orgmode@gnu.org Bastien writes: > Dear all, > > Richard Stallman started a thread on emacs-devel on how to let Emacs > do WYSIWG word processing: > > https://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00515.html > > "25 years ago I hoped we would extend Emacs to do WYSIWG word > processing. That is why we added text properties and variable width > fonts. However, more features are still needed to achieve this. > > Could people please start working on the features that are needed?" > > This hit the news: https://news.ycombinator.com/item?id=6773529 > > I don't want to fork the thread and import the discussion here, > instead I'd like to discuss a feature for Org that I think would be > useful*. > > How far are we from allowing users to preview an exported Org buffer > into a separate window, and displaying either a PDF or an ODT document > through DocView? > > Since Org can already perform export asynchronously, maybe all what we > need is to create a function for `write-file-hooks' that exports in the > background and display the document in another window. So with LaTeX it should be pretty easy using latexmk. Latexmk can watch for changes in the .tex file and recompile the pdf intelligently. For windows there's a program called LaTeXDaemon. Thus, what would be needed would be to write the tex file when stuff changes and it wasn't exported in the last t seconds. Perhaps it would require some caching, e.g. with heavy babel blocks. Personally, I'd want to use Evince and not Docview. Does Docview notice changes in the pdf? –Rasmus -- ⠠⠵