From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0GEfIhh7sWI1twAAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 10:02:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +Oi7IRh7sWIx8wAAauVa8A (envelope-from ) for ; Tue, 21 Jun 2022 10:02:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4265F15708 for ; Tue, 21 Jun 2022 10:02:28 +0200 (CEST) Received: from localhost ([::1]:56572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3YqA-0004y3-Vr for larch@yhetil.org; Tue, 21 Jun 2022 04:02:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3YpF-0004vF-VU for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 04:01:31 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:49100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o3Yp5-0007jE-T6 for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 04:01:28 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4LRzV86cZ6z9sQX for ; Tue, 21 Jun 2022 10:01:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1655798464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CogcqBggHty6C6VhWX2XIYyMzP1lP9G9eiR3UyM22qU=; b=SbyLYETvjIhEYMd13fEkt2Ml28mDs300pmIpiXoTZ29ISf5AXqPouQoHW33oBk84PMcCPi fq1gMAd0pFmr05nRJdtpwoGQ2/KdZSW78ew3pC5i9GlNQnEPSULjVAb4q3baAdOEjcG7fU bz3YM0pPTcXlKzrwHkyxRqzBk/abUFALXEsvnS+P6154tis4bomdHZd8wY4pXVW9trLShC TQgDKi+BOzaAC4iRbkn2LTlMEOeCXfLBSU7mJiuitNhSyxLltKmEjvbbppAVcaTUMlE8GV s/ZrtiT2mFxYiEqn4sBa5vFDa0A6JofaY2+YFxCqqM6+chtcL4aF5RHGh0ha/g== From: M. =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= To: Org-mode Subject: Beamer export: Executing LaTeX between two frames Mail-Followup-To: Org-mode Date: Tue, 21 Jun 2022 10:01:03 +0200 Message-ID: <87mte6tphc.fsf@guelker.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4LRzV86cZ6z9sQX Received-SPF: pass client-ip=80.241.56.151; envelope-from=post+orgmodeml@guelker.eu; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655798548; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CogcqBggHty6C6VhWX2XIYyMzP1lP9G9eiR3UyM22qU=; b=nTc8pKhWql5s3jABp6VDGmJfjoFCPqLc02IuztltY7KnIiuybeuuUDWG5bi7jJHG4DhoZU o5RnYWqYXXRBuAjy+BtEiOfObFUpbfJ6Y05nrxT7veVEb/Ev8DjMssxlQCT3DbYsLwlb+B 6J8Ws7bhIDvhqQTQWh30pXXKOE0w6jbCFfz3lCLBplWq1caRXzZEu7dgJlxY/PZCfSy0BA kXeionQdfxCZ7V6zt+EjAzBNNbwbBuusQPAZqpMoj32TiLOVyDOmPR79D2tLNED8Jp7zuC naAyCtPiwZMAh+KZ3/TcJlrxZ9/oktf2rbB3qfSeayZFaYbgYLhlJKGyPLUGpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655798548; a=rsa-sha256; cv=none; b=G/hCJvmjrdrSSDC4yEkMirXNyoMjZ4670f1BCwtl1Nywcpu43g1UNY0EjP4NbS8XB0wmFj Ct/u8CGt2r0KlTMYZiOGqOIKzAmfmVfnFIBxsWNCqJxZrksQ8fy/eLireW/oAKb5B72qnR u1qrqv6Sshq03C5twdTUtfe85PESmoTjSlblcmRWPEimhqrxuCe4x8FRuVeJ7t2dMlULBC 3NRVYJGeejCiJztAEoqaMYdbzEZtgaz9QMbKQu46vtKwEcAWvddX3P6+cWBZ5Kbs5yzHkA LH877dwk0eloBszctajSgtefuX+Bo0ojin33kXkIsEQdjtNDJu0V2YbwDwfZhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=SbyLYETv; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=SbyLYETv; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4265F15708 X-Spam-Score: -3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: DCOgQ0fX9qT+ 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 . 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=3D\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=3D\paperwidth,height=3D\paperheight]{test.jp= g}} \begin{frame}[t]\frametitle{This frame should have another backgrou= nd} % ...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=3D\paperwidth,height=3D\paperheight]{test.jp= g}} #+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=C3=BClker | https://mg.guelker.eu | PGP: Siehe Webseite Passau, Deutschland | kontakt@guelker.eu | O<