emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Beamer export of a subtree seems wrong.
Date: Fri, 25 Nov 2011 16:29:48 +0000	[thread overview]
Message-ID: <87zkfkjhc3.fsf@ucl.ac.uk> (raw)
In-Reply-To: <CAPaq-gPYG=rrt_=icuKLTM6sO04XfOc5fQtcUi=tSU7eeDee8A@mail.gmail.com> (Torsten Wagner's message of "Fri, 11 Nov 2011 02:41:02 +0900")

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi,
> I recently started to prepare lecture notes in org mode. I used the example
> from Eric on worg as a template.
> Everything works well. I used the first headline level to define groups of
> slides, the second level are slide titels and so on. A full export to PDF
> looks like expected. However, I thought I can do something like
> * lecture 1...
> * lecture 2...
> * lecture 3...
> and exporting only the subtree, I assumed should result in a PDF file for a
> single lecture. This does not work :( A subtree export with the pointer on
> a toplevel headline ommits all slide titles (all ** levels). I tried to be
> smart and added :noexport: to all but one lecture. However, that had no
> effect at all.
> Any idea what might be wrong? Or did I misunderstood the usage of the
> grouping frames function.
>
> All the best
> Torsten

Torsten,

sorry for delay in responding to this.  I was away (down under) for a
while and am only now slowly getting caught up with emails... :(

Exporting a sub-tree does not work for beamer because of how org treats
a sub-tree.  Basically, when compared with an export of the full file,
all headings are promoted one level up with the top level heading taking
on the role of the "file" enclosing the talk.  

If for the whole file, you have using the structure that says that 1st
level headings are topics and second level are slides, then when
exporting a sub-tree, the 1st level heading becomes the title of the
talk and second level headings become the topics.  This is not what you
expect.

For general latex export (and other export targets, I guess), the
structure being exported is just an outline structure with content and
the actual heading levels have no specific semantic meaning.  This is
not true for beamer unfortunately.

I guess we need the latex exporter to handle beamer examples differently
to other latex.  In other words, a sub-tree export should not do the
/promotion/ of headlines like usual for any other type of latex
export.  Addressing this is beyond my capabilities unfortunately.

Maybe somebody else can address this?  It would indeed be useful, not
only in the context given above but also for exporting just a single
slide, which would require exporting the topic for that slide... even
more complex case to handle especially.

I hope that at least this makes sense even if it doesn't help you
directly ... :(

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.598.g4e2a)

  reply	other threads:[~2011-11-25 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 17:41 Beamer export of a subtree seems wrong Torsten Wagner
2011-11-25 16:29 ` Eric S Fraga [this message]
2011-11-27 14:52   ` Torsten Wagner
2011-11-27 20:15     ` Eric S Fraga

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=87zkfkjhc3.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=torsten.wagner@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).