emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] subtitle in export?


From: Dan Davison
Subject: Re: [Orgmode] subtitle in export?
Date: Mon, 19 Apr 2010 11:52:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Carsten Dominik <address@hidden> 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.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]