From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Fri, 30 Nov 2018 08:13:11 +0100 Message-ID: <87h8fzvy0o.fsf@hornfels.zedat.fu-berlin.de> References: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> <87tvk1gqmh.fsf@gmail.com> <87y39cjqt7.fsf@hornfels.zedat.fu-berlin.de> <7f1382cc-70a3-7f6f-7366-a42a64fd4026@gmx.de> <02463601-9550-8a12-a24b-abfba88f1042@gmx.de> <87lg5cowv7.fsf@hornfels.zedat.fu-berlin.de> <0551ef45-6401-340f-d6ab-a6fc5549e29e@eureca.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSczS-000076-S1 for emacs-orgmode@gnu.org; Fri, 30 Nov 2018 02:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSczO-0005zv-JZ for emacs-orgmode@gnu.org; Fri, 30 Nov 2018 02:13:30 -0500 Received: from [195.159.176.226] (port=48117 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSczN-0005wO-Di for emacs-orgmode@gnu.org; Fri, 30 Nov 2018 02:13:26 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gScx9-0007Wb-NF for emacs-orgmode@gnu.org; Fri, 30 Nov 2018 08:11:07 +0100 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 Julius Müller writes: > Am 29.11.18 um 14:07 schrieb Loris Bennett: [snip (33 lines)] >> After that I tried adding the definition on the slide itself >> >> #+BEGIN_SRC latex >> \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother >> #+END_SRC > > Hm, src-block? I would have thought you should wrap that in an > export-block, so those commands get added to the exported document, not > quoted within as a source code. That would mean > > #+begin_export latex > \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother > #+end_export I tried that, but still got the error about \beamer being undefined. However, my understanding is that, if I am exporting to LaTeX, then BEGIN_SRC latex and BEGIN_EXPORT latex do the same thing. So if I have the following in my org file: #+BEGIN_EXPORT latex \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother #+END_EXPORT #+BEGIN_SRC latex \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother #+END_SRC I get \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother in my tex file. Cheers, Loris -- This signature is currently under construction.