emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Beamer export: Executing LaTeX between two frames
Date: Sun, 26 Jun 2022 12:17:58 +0800	[thread overview]
Message-ID: <878rpk3vnt.fsf@localhost> (raw)
In-Reply-To: <878rppniqx.fsf@ucl.ac.uk>

"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:

> On Tuesday, 21 Jun 2022 at 10:01, M. ‘quintus’ Gülker wrote:
>> 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
>
> This is a bit hacky but see attached file.  The trick is to end the
> previous frame explicitly, create the frame with the desired background,
> and then start explicitly a new frame but which is not shown in
> presentation mode.

This is too hacky as for my taste.

I'd rather use :ignore: tag from ox-extra:

* This is frame 1
* This is background wrapper, heading title ignored :ignore:
#+begin_export beamer
{\usebackgroundtemplate{\includegraphics[width=\paperwidth]{kitten.jpg}}%
#+end_export
* This is frame 2
* This is background ending :ignore:
#+begin_export beamer
}
#+end_export

The above exports to

\begin{document}

\begin{frame}{Outline}
\tableofcontents
\end{frame}

\begin{frame}[label={sec:orgea52eac}]{This is frame 1}
\end{frame}
{\usebackgroundtemplate{\includegraphics[width=\paperwidth]{kitten.jpg}}%
\begin{frame}[label={sec:org39b6485}]{This is frame 2}
\end{frame}
}
\end{document}

Best,
Ihor


  reply	other threads:[~2022-06-26  4:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-06-26 19:26     ` Fraga, Eric
2023-01-07 17:43     ` M. ‘quintus’ Gülker

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=878rpk3vnt.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).