From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 14:41:20 +0100 Message-ID: <87ftvkf1bz.fsf@fastmail.fm> 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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMZM-0007Nv-QN for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:41:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSMZI-00014S-R9 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:41:28 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:60017) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSMZI-00011U-Fh for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:41:24 -0500 In-reply-to: <9904e5c3-cfec-458e-426b-2f69b586d570@gmail.com> 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: Loris Bennett 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? -- Joost Kremers Life has its moments