From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julius Dittmar Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 09:13:59 +0100 Message-ID: <7f1382cc-70a3-7f6f-7366-a42a64fd4026@gmx.de> References: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> <87tvk1gqmh.fsf@gmail.com> <87y39cjqt7.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSHSg-0002V4-Cy for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 03:14:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSHSa-0006JS-Ed for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 03:14:14 -0500 Received: from mout.gmx.net ([212.227.15.18]:46077) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSHSW-00069D-UW for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 03:14:08 -0500 Received: from [192.168.175.209] ([87.139.53.30]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LxPNC-1fLTKU3k5a-016wiU for ; Thu, 29 Nov 2018 09:14:00 +0100 In-Reply-To: <87y39cjqt7.fsf@hornfels.zedat.fu-berlin.de> Content-Language: de-DE 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" To: emacs-orgmode@gnu.org Hi Loris, I don't know beamer enough to propose an elegant solution. Nonetheless I have ideas what might go wrong here. Am 29.11.18 um 08:17 schrieb Loris Bennett: >> #+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother >> #+attr_latex: :height 0.75\mytextheight First, \let copies the at-the-moment-of-definition version of \beamer@frametexheight to \mytextheight. This happens in the preamble. I expect beamer to set up things like frame height at the begin of the document (exactly the \begin{document} line), not earlier. Thus at the point of that \let, that length isn't what you want yet. Solution to this: #+begin_export latex \makeatletter... #+end_export Second, \let creates a macro whereas it then is used as a length for the figure. I doubt that is possible. If that's the reason, you might try #+begin_export latex \newlength\mytextheight \makeatletter \setlength\mytextheight{\beamer@frametexheight} \makeatother #+end_export Perhaps this gives you a starting point to further play with it. HTH, Julius