emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [org-e-beamer-export-to-latex] howto put intra-frame latex?


From: Myles English
Subject: [O] [org-e-beamer-export-to-latex] howto put intra-frame latex?
Date: Tue, 25 Sep 2012 14:59:55 +0100
User-agent: mu4e 0.9.9-dev6; emacs 24.1.50.2

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:     address@hidden
#+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 via email to

[Prev in Thread] Current Thread [Next in Thread]