Carsten Dominik <carsten.domi...@gmail.com> 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


_______________________________________________
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

Reply via email to