all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Beamer export: Executing LaTeX between two frames
@ 2022-06-21  8:01 M. ‘quintus’ Gülker
  2022-06-22  9:35 ` Fraga, Eric
  0 siblings, 1 reply; 5+ messages in thread
From: M. ‘quintus’ Gülker @ 2022-06-21  8:01 UTC (permalink / raw)
  To: Org-mode

Dear list,

I am working on a presentation for a conference (using org-mode and its
beamer export) and want to exchange the entire background for a specific
frame with an image. This is possible with Beamer, see
<https://tex.stackexchange.com/a/7919>. It works by issueing
\usebackgroundtemplate /between/ the frame environments. The frame
environment needs to be placed inside an extra group of {}, resulting in
a LaTeX construct like this (example taken from the StackExchange link):

    % Local background must be enclosed by curly braces for grouping.
    {
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{kitten.jpg}}%
    \begin{frame}{Kitten}
    \begin{itemize}
    \item 1
    \item 2
    \item 3
    \end{itemize}
    \end{frame}
    }

I tried to use a #+begin_export beamer construct to achieve this from
within org:

    * Normal Frame

    #+begin_export beamer
    {\usebackgroundtemplate{%
        \includegraphics[width=\paperwidth,height=\paperheight]{test.jpg}}
        \begin{frame}[t]\frametitle{This frame should have another background}
        % ...frame content...
        \end{frame}
    }
    #+end_export

    * Normal frame again

But that results in a LaTeX compilation error, because the command is
not issued between to frames, but within the frame created for the
"Normal Frame" heading. Breaking the construct up in two #+begin_export
beamer constructs like this therefore also does not work, because the
second heading causes an \end{frame} to be inserted after the
\usebackgroundtemplate group has been opened:

    * Normal Frame

    #+begin_export beamer
    {\usebackgroundtemplate{%
        \includegraphics[width=\paperwidth,height=\paperheight]{test.jpg}}
    #+end_export

    * This frame should have another background

    #+begin_export beamer
    }
    #+end_export

    * Normal frame again

So, how do I wrap the \begin{frame}...\end{frame} construct within the
\usebackgroundtemplate group?

  -quintus

--
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland  | kontakt@guelker.eu    | O<


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

end of thread, other threads:[~2023-01-07 17:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-21  8:01 Beamer export: Executing LaTeX between two frames M. ‘quintus’ Gülker
2022-06-22  9:35 ` Fraga, Eric
2022-06-26  4:17   ` Ihor Radchenko
2022-06-26 19:26     ` Fraga, Eric
2023-01-07 17:43     ` M. ‘quintus’ Gülker

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.