From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Myles English" Subject: [org-e-beamer-export-to-latex] howto put intra-frame latex? Date: Tue, 25 Sep 2012 14:59:55 +0100 Message-ID: <87obkufbj8.fsf@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGVYm-0002Hf-GB for Emacs-orgmode@gnu.org; Tue, 25 Sep 2012 09:52:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGVYh-0005r1-K4 for Emacs-orgmode@gnu.org; Tue, 25 Sep 2012 09:52:24 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:62639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGVYh-0005ql-Ct for Emacs-orgmode@gnu.org; Tue, 25 Sep 2012 09:52:19 -0400 Received: by eaak11 with SMTP id k11so883890eaa.0 for ; Tue, 25 Sep 2012 06:52:18 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode 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