From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: subtitle in export? Date: Mon, 19 Apr 2010 11:52:19 -0400 Message-ID: <87fx2rxwwc.fsf@stats.ox.ac.uk> References: <87wrw3mtk4.fsf@stats.ox.ac.uk> <5F21B0B4-ED53-43F1-BCCE-66C6D255A58E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3tGw-0006vZ-GI for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:52:30 -0400 Received: from [140.186.70.92] (port=56285 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3tGt-0006tW-6S for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3tGq-0005si-Dz for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:52:26 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:46052) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3tGp-0005s4-Pw for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:52:24 -0400 In-Reply-To: <5F21B0B4-ED53-43F1-BCCE-66C6D255A58E@gmail.com> (Carsten Dominik's message of "Mon, 19 Apr 2010 17:34:23 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Apr 19, 2010, at 3:59 PM, Dan Davison wrote: > >> [...] >>> If it makes any difference, I am currently exporting to latex, then >>> converting to odt using mk4ht oolatex. (aside: is there a really >>> easy >>> way to define a new export option that automates the seond step? >>> right now I'm switching to a shell to do the final step, would love >>> to >>> stop having to do that.) >> >> Org has org-export-html-final-hook but no latex equivalent, nor a >> general after-export hook? Is that right? (I feel like I must be >> missing >> something there.) > > All backends have a "final" hook - org-export-latex-final-hook in this > case. Ah, I see, Emacs doesn't know about it until I cause (require 'org-latex) to happen. As I said, I felt that I was missing something... Dan > > Cheers > > - Carsten > >> >> But anyway, if there's no hook, a function to do it could be as simple >> as >> >> (defun my-budget-latex-export-with-post-processing () >> (interactive) >> (if (org-export-as-latex 3) >> (shell-command >> (format "mk4ht oolatex %s.tex" >> (file-name-sans-extension (buffer-name)))))) >> >> You could add minibuffer messages with the `message' function. >> (3 is the number of levels to use in the export, see C-h f org- >> export-as-latex) >> If there's a hook, then make a function with just the shell command >> bit >> and add it to the the hook. >> >> Dan >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten