[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] export-latex-final-hook
From: |
Matt Price |
Subject: |
Re: [Orgmode] export-latex-final-hook |
Date: |
Mon, 19 Apr 2010 22:28:45 -0400 |
Thanks to Dan and Carsten,
I now have this:
(defun mwp/push-latex-to-odt ()
"takes the exported tex file from org-mode and converts it to odt,
then launches openoffice"
(shell-command
(format "mk4ht oolatex %s.tex"
(file-name-sans-extension (buffer-name))))
(shell-command
(format "ooffice %s.odt &"
(file-name-sans-extension (buffer-name)))))
(add-hook 'org-export-latex-final-hook
'mwp/push-latex-to-odt)
which works fine. The only issue is that the first shell command,
mk4ht oolatex, sometimes takes a while to finish processing & would be
nice to have running in the background. Should just write a shell
script that runs the two commands, and then fork that process? Or is
there a slightly more elegant way that keeps all of the programming
contained in a lisp file?
Thanks again,
matt
- Re: [Orgmode] export-latex-final-hook,
Matt Price <=