emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [org-e-beamer-export-to-latex] howto put intra-frame latex?
@ 2012-09-25 13:59 Myles English
  2012-09-25 14:07 ` Suvayu Ali
  2012-09-25 14:19 ` Myles English
  0 siblings, 2 replies; 4+ messages in thread
From: Myles English @ 2012-09-25 13:59 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [org-e-beamer-export-to-latex] howto put intra-frame latex?
  2012-09-25 13:59 [org-e-beamer-export-to-latex] howto put intra-frame latex? Myles English
@ 2012-09-25 14:07 ` Suvayu Ali
  2012-09-25 14:25   ` Myles English
  2012-09-25 14:19 ` Myles English
  1 sibling, 1 reply; 4+ messages in thread
From: Suvayu Ali @ 2012-09-25 14:07 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Sep 25, 2012 at 02:59:55PM +0100, Myles English wrote:
> 
> 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):

Doesn't ignoreheading work?

** dummy frame                     :B_ignoreheading:
   :PROPERTIES:
   :BEAMER_env: ignoreheading
   :END:

\LaTeX command outside frame

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [org-e-beamer-export-to-latex] howto put intra-frame latex?
  2012-09-25 13:59 [org-e-beamer-export-to-latex] howto put intra-frame latex? Myles English
  2012-09-25 14:07 ` Suvayu Ali
@ 2012-09-25 14:19 ` Myles English
  1 sibling, 0 replies; 4+ messages in thread
From: Myles English @ 2012-09-25 14:19 UTC (permalink / raw)
  To: Emacs-orgmode


Well reading the manual/src helped, of course, and I have altered the
example below if any one else is wondering.

Because I have H:2 in the #+OPTIONS line, a level 1 heading does not
make a frame and can be used sneak in some latex.


Myles English writes:

> 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.

[snip]

> --------------------------------// 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

* Ignored                                                   :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:
#+begin_latex
\setbeamertemplate{background canvas}{\ClearWallPaper}
#+end_latex


* Resume                                                    :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:

>
> ** Another slide
>
> more content here
>
> #+begin_latex
> \setbeamertemplate{background canvas}{\ClearWallPaper}
> #+end_latex
>
> ** Last slide
>
> Content on the last slide
>
>
> --------------------------------// END tests.org //--------


Myles

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [org-e-beamer-export-to-latex] howto put intra-frame latex?
  2012-09-25 14:07 ` Suvayu Ali
@ 2012-09-25 14:25   ` Myles English
  0 siblings, 0 replies; 4+ messages in thread
From: Myles English @ 2012-09-25 14:25 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: emacs-orgmode



Hi Suvayu,

Suvayu Ali writes:

> On Tue, Sep 25, 2012 at 02:59:55PM +0100, Myles English wrote:
>> 
>> 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):
>
> Doesn't ignoreheading work?
>
> ** dummy frame                     :B_ignoreheading:
>    :PROPERTIES:
>    :BEAMER_env: ignoreheading
>    :END:
>
> \LaTeX command outside frame

Ah yes it does that is much tidier than my answer.

Thanks,

Myles

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-25 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-25 13:59 [org-e-beamer-export-to-latex] howto put intra-frame latex? Myles English
2012-09-25 14:07 ` Suvayu Ali
2012-09-25 14:25   ` Myles English
2012-09-25 14:19 ` Myles English

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).