From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: subtitle in export? Date: Mon, 19 Apr 2010 09:59:55 -0400 Message-ID: <87wrw3mtk4.fsf@stats.ox.ac.uk> References: 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 1O3rWA-0000Hg-0a for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 10:00:06 -0400 Received: from [140.186.70.92] (port=44773 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3rW7-0000FQ-3p for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 10:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3rW5-0007yb-9D for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 10:00:02 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:47409) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3rW4-0007y6-KZ for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 10:00:01 -0400 In-Reply-To: (Matt Price's message of "Mon, 19 Apr 2010 07:29:56 -0400") 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: Matt Price Cc: emacs-orgmode@gnu.org [...] > 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.) 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