emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Matt Price <moptop99@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: subtitle in export?
Date: Mon, 19 Apr 2010 09:59:55 -0400	[thread overview]
Message-ID: <87wrw3mtk4.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <m2uf22f52181004190429y6fc5c988p7df7b7ae5f27d2f8@mail.gmail.com> (Matt Price's message of "Mon, 19 Apr 2010 07:29:56 -0400")

[...]
> 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

  reply	other threads:[~2010-04-19 14:00 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 [this message]
2010-04-19 15:34   ` Carsten Dominik
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=87wrw3mtk4.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    /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).