emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo Butler <Leo.Butler@umanitoba.ca>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: setting export_file_name during export
Date: Fri, 6 Jan 2023 21:38:56 +0000	[thread overview]
Message-ID: <87bknbs5qn.fsf@t14.reltub.ca> (raw)

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Hello,

I am trying something new this semester: all my lecture notes are
organized into a single org file. A minor problem: I want to export each
lecture (see below) as a separate pdf file. I would like to know if
anyone has ``solved'' this problem or has a suggestion on how to do it.

Ideally, I would like to have a single function that retains only the
current subtree that contains point, sets EXPORT_FILE_NAME based on the
top heading, and exports it as a complete beamer pdf.

TIA,
Leo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example.org --]
[-- Type: text/x-org; name="lectures.org", Size: 376 bytes --]

#+AUTHOR: Leo Butler
#+TITLE: Lectures in Math
#+OPTIONS: H:2 toc:t num:t
#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: [presentation]
#+STARTUP: beamer
#+EXPORT_FILE_NAME: lectures

* Lecture 1
** Lecture 1
In the beginning...This subtree should be exported to =lecture-1.pdf=.
* Lecture 2
** Lecture 2
Next...This subtree should be exported to =lecture-2.pdf=.

             reply	other threads:[~2023-01-06 21:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 21:38 Leo Butler [this message]
2023-01-06 22:15 ` setting export_file_name during export Alain.Cochard
2023-01-06 22:52   ` Leo Butler
2023-01-06 23:03     ` Alain.Cochard
2023-01-10 16:46     ` Nick Dokos
2023-01-10 20:01       ` Leo Butler

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=87bknbs5qn.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --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).