emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Beamer presantation, Abstract and Article in same document - how to structure and how to export?
Date: Wed, 27 Apr 2016 14:38:34 +0200	[thread overview]
Message-ID: <877ffjns51.fsf@gmx.us> (raw)
In-Reply-To: m2mvof74cc.fsf@krugs.de

Hi,

Rainer M Krug <Rainer@krugs.de> writes:

> I would like to have one document containing
>
> 1) abstract for
> 2) a presentation and 
> 3) a resulting paper
>
> My question is: how can I structure this an how can I handle the export?
>
> Obviously under different top level headers:
>
> * Abstract
> #+begin_abstract
> Needs top be written
> #+end_abstract
>
> * Presentation
> ** Title
> *** first slide
> ...
> * Paper
> ** Abstract
> How can I refer to the abstract above?
> ** ...

While you may not necessarily *need* beamerarticle, you might still find
it enlightening.  See section 21.2 in the beamer manual.

Example:

#+title: beamer example with text not shown
#+options: h:2
#+latex_class_options: [ignorenonframetext]
* h1
text that is not part of any slide 
** my first slide
- a
- b

Another companion is #+include which you can use to extract named element
from one file to the other, e.g. to share tables.

> But what about the specific settings? Can I set them per subtree?
>
> #+LaTeX_CLASS: beamer
> #+LaTeX_CLASS_OPTIONS: [bigger]

Isn't the latex class guess correctly?

> I could than export each subtree separate?

Should be easy to do with a bit of lisp.

> Can I define the name for the exported document per subtree?

  http://orgmode.org/org.html#index-property_002c-EXPORT_005fFILE_005fNAME-1651

> How can I switch easily between different settings?

For #+LaTeX_CLASS_OPTIONS I'd maybe use a macro.
I'd also use this for setting export tags, e.g. 

#+MACRO: exclude-tags (eval (mapconcat 'identity (list "#+EXCLUDE_TAGS:" "noexport" (concat "no" (symbol-name org-export-current-backend))) " "))

You might also find the if clause in this macro interesting:

#+MACRO: abbr (eval (if (org-export-derived-backend-p org-export-current-backend 'html) "@@html:<abbr title=\"$2\">@@$1@@html:</abbr>@@" "$1"))

Hope it helps,
Rasmus

-- 
If you can mix business and politics wonderful things can happen!

  reply	other threads:[~2016-04-27 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 10:06 Beamer presantation, Abstract and Article in same document - how to structure and how to export? Rainer M Krug
2016-04-27 12:38 ` Rasmus [this message]
2016-04-27 13:27   ` Rainer M Krug

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=877ffjns51.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).