emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: subtitle in export?
Date: Mon, 19 Apr 2010 17:34:23 +0200	[thread overview]
Message-ID: <5F21B0B4-ED53-43F1-BCCE-66C6D255A58E@gmail.com> (raw)
In-Reply-To: <87wrw3mtk4.fsf@stats.ox.ac.uk>


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

  reply	other threads:[~2010-04-19 15:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 11:29 subtitle in export? Matt Price
2010-04-19 13:59 ` Dan Davison
2010-04-19 15:34   ` Carsten Dominik [this message]
2010-04-19 15:52     ` Dan Davison
2010-04-19 15:54       ` Carsten Dominik
2010-04-19 16:27         ` Dan Davison
2010-04-20 13:44           ` Carsten Dominik
2010-04-20  9:29 ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F21B0B4-ED53-43F1-BCCE-66C6D255A58E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).