From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: noninteractive use of org-export
Date: Wed, 16 Apr 2014 17:06:10 +0200 [thread overview]
Message-ID: <87vbu9iaal.fsf@gmail.com> (raw)
In-Reply-To: 87y4z5xsxw.fsf@free.fr
Julien Cubizolles <j.cubizolles@free.fr> writes:
> How can I use org-beamer-export-to-pdf for example for an org file that
> the current buffer isn't visiting?
>
> My setup is the following : I have two org files cours-beamer.org and
> cours-notes.org each containing different +LATEX_CLASS and
> +LATEX_CLASS_OPTIONS choices and the same +#INCLUDE "cours.org"
> file. I'd like to be able to run the export to beamer-pdf for both
> cours-beamer.org and cours-notes.org from cours.org, or even from a bash
> script but the documentation for org-beamer-export-to-pdf doesn't show
> how.
This is untested! But maybe ...
#+begin_src emacs-lisp
(defvar my-beamer-files '("/path/to/file1" "/path/to/file2"))
(defun my-beamer-exp-fun ()
(interactive)
(when (consp my-beamer-files)
(mapc
(lambda (--file)
(with-current-buffer (find-file --file)
(org-mode)
(org-beamer-export-to-pdf)
(kill-buffer)))
my-beamer-files)))
#+end_src
#+results:
: my-beamer-exp-fun
--
cheers,
Thorsten
next prev parent reply other threads:[~2014-04-16 15:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 14:14 noninteractive use of org-export Julien Cubizolles
2014-04-16 15:06 ` Thorsten Jolitz [this message]
2014-04-17 7:39 ` Bastien
2014-04-17 9:33 ` Julien Cubizolles
2014-04-17 9:44 ` Bastien
2014-04-17 10:19 ` Julien Cubizolles
2014-04-17 10:38 ` Bastien
2014-04-17 13:09 ` Julien Cubizolles
2014-04-17 13:40 ` Bastien
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=87vbu9iaal.fsf@gmail.com \
--to=tjolitz@gmail.com \
--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).