emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Myles English" <mylesenglish@gmail.com>
To: Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: [org-e-beamer-export-to-latex] howto put intra-frame latex?
Date: Tue, 25 Sep 2012 14:59:55 +0100	[thread overview]
Message-ID: <87obkufbj8.fsf@ed.ac.uk> (raw)


Hello again,

Does anyone have a solution to this?  I am attempting to give one slide
only a background image.

I can set the background image but can't unset it because the latex
directive needs to come after the \end{frame} of the slide with the
background and before the \begin{frame} of the slide without the
background.  Like so (this works):

#+begin_latex
\section{Start the slides}
\label{sec-1}
\setbeamertemplate{background canvas}%
                  {\ThisULCornerWallPaper{1}%
                    {/home/myles/me_on_a_horse.jpg}}


\begin{frame}[label=sec-1-1]{A slide}
first slide content
\end{frame}

\setbeamertemplate{background canvas}{\ClearWallPaper}

\begin{frame}[label=sec-1-2]{Another slide}
more content here

\end{frame}
#+end_latex


However when the org example at the end of this mail is exported, I get
this (i.e. the \ClearWallPaper is before the \end{frame}, and it needs
to be after):


#+begin_latex
%[snip]
\begin{frame}[label=sec-1-2]{Another slide}
more content here

\setbeamertemplate{background canvas}{\ClearWallPaper}
\end{frame}
%[snip]
#+end_latex


And finally, the example:

--------------------------------// BEGIN tests.org //--------

#+STARTUP: indent
#+TITLE:     Tests
#+AUTHOR:    Me
#+EMAIL:     me@here.com
#+DATE:      Wednesday September 26^th 2012
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+latex_header: \usepackage{wallpaper}
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) %8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:t tasks:nil pri:nil tags:t
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* Start the slides
#+begin_latex
  \setbeamertemplate{background canvas}%
                    {\ThisULCornerWallPaper{1}%
                      {/home/myles/me_on_a_horse.jpg}}
#+end_latex


** A slide

first slide content


** Another slide

more content here

#+begin_latex
\setbeamertemplate{background canvas}{\ClearWallPaper}
#+end_latex

** Last slide

Content on the last slide


--------------------------------// END tests.org //--------


Freestyling a bit: I am wondering if the use case is a bit like that for
inline tasks; for something that doesn't fully belong in the tree structure,
that is more file-local in scope, but still needs to know it's position in the
file.

Thanks,

Myles

             reply	other threads:[~2012-09-25 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25 13:59 Myles English [this message]
2012-09-25 14:07 ` [org-e-beamer-export-to-latex] howto put intra-frame latex? Suvayu Ali
2012-09-25 14:25   ` Myles English
2012-09-25 14:19 ` Myles English

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=87obkufbj8.fsf@ed.ac.uk \
    --to=mylesenglish@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).