From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 16:12:03 +0100 Message-ID: <87h8fzq5oc.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> <9904e5c3-cfec-458e-426b-2f69b586d570@gmail.com> <87ftvkf1bz.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSNzD-0004D9-JP for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 10:12:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSNz8-0001RI-1w for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 10:12:14 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:42777) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSNz6-0001Pi-NM for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 10:12:09 -0500 In-Reply-To: <87ftvkf1bz.fsf@fastmail.fm> (Joost Kremers's message of "Thu, 29 Nov 2018 14:41:20 +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 Cc: Joost Kremers Joost Kremers writes: > On Thu, Nov 29 2018, Gustavo Barros wrote: >> Louis, >> >> a hunch, which might work. >> It seems that, if you try to set the length in your preamble, >> `\beamer@frametextheight` is not yet defined. >> So, you might try the hook `\AtBeginDocument` to see if the definition comes >> at >> a better timing. >> >> #+LATEX_HEADER: >> \newlength\mytextheight\AtBeginDocument{\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother} >> >> As I said, it's a hunch, for I haven't tested. But I think it may be it. > > Why not put the entire thing inside \AtBeginDocument? > > To the OP: \paperheight does seem to be available in Beamer. Couldn't you use > that? Using #+LATEX_HEADER: \newlength\mytextheight\AtBeginDocument{\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother} also leads to the error ! Undefined control sequence. \beamer So I went with \paperheight instead, which works fine. Regards Loris -- This signature is currently under construction.