From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: subtitle in export? Date: Mon, 19 Apr 2010 17:34:23 +0200 Message-ID: <5F21B0B4-ED53-43F1-BCCE-66C6D255A58E@gmail.com> References: <87wrw3mtk4.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3t7O-0008QF-O1 for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:42:38 -0400 Received: from [140.186.70.92] (port=41751 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3t7N-0008Oa-CC for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:42:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3t7L-000370-4d for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:42:37 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:30274) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3t7K-00036d-U2 for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 11:42:35 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1956524fga.12 for ; Mon, 19 Apr 2010 08:42:33 -0700 (PDT) In-Reply-To: <87wrw3mtk4.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs-orgmode@gnu.org 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. 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