From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Barros Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 11:24:15 -0200 Message-ID: <9904e5c3-cfec-458e-426b-2f69b586d570@gmail.com> 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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------473A66F56520E4DFF35EDE5E" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMIs-0008Gd-OC for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:24:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSMIn-0000gQ-QR for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:24:26 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:41912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSMIn-0000ft-Jg for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:24:21 -0500 Received: by mail-qt1-x830.google.com with SMTP id d18so1870946qto.8 for ; Thu, 29 Nov 2018 05:24:21 -0800 (PST) In-Reply-To: <87lg5cowv7.fsf@hornfels.zedat.fu-berlin.de> Content-Language: en-US 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: Loris Bennett , emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------473A66F56520E4DFF35EDE5E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. Best, Gustavo. On 29/11/2018 11:07, Loris Bennett wrote: > Eric S Fraga writes: > >> On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote: >>> Am 29.11.18 um 09:13 schrieb Julius Dittmar: >>>> Am 29.11.18 um 08:17 schrieb Loris Bennett: >>>>>> #+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother >>>>>> #+attr_latex: :height 0.75\mytextheight >>> Oh, or perhaps just a typo is involved: is it really >>> \beamer@frametexheight or rather \beamer@frametextheight you are chasing >>> after? >> Also, you may need to define your mytextheight as a length and then use \setlength instead of \let. > After correcting the typo I followed Eric's and Julius's suggestions and > I tried adding > > #+LATEX_HEADER: \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother > > to the beginning of the Org file, but in this case > > \the\mytextheight > > is 0.0pt. After that I tried adding the definition on the slide itself: > > #+BEGIN_SRC latex > \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother > #+END_SRC > > but got the error > > ! Undefined control sequence. > \beamer > > l.153 \end{frame} > > ! Missing number, treated as zero. > > @ > l.153 \end{frame} > > Any thoughts? > > Cheers, > > Loris > --------------473A66F56520E4DFF35EDE5E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.

Best,
Gustavo.


On 29/11/2018 11:07, Loris Bennett wrote:
Eric S Fraga <esflists@gmail.com> writes:

On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote:
Am 29.11.18 um 09:13 schrieb Julius Dittmar:
Am 29.11.18 um 08:17 schrieb Loris Bennett:
#+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother
#+attr_latex: :height 0.75\mytextheight
Oh, or perhaps just a typo is involved: is it really
\beamer@frametexheight or rather \beamer@frametextheight you are chasing
after?
Also, you may need to define your mytextheight as a length and then use \setlength instead of \let.
After correcting the typo I followed Eric's and Julius's suggestions and
I tried adding

  #+LATEX_HEADER: \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother

to the beginning of the Org file, but in this case

  \the\mytextheight

is 0.0pt.  After that I tried adding the definition on the slide itself:

  #+BEGIN_SRC latex
  \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother
  #+END_SRC

but got the error

  ! Undefined control sequence.
  <argument> \beamer 
                     
  l.153 \end{frame}
                   
  ! Missing number, treated as zero.
  <to be read again> 
                     @
  l.153 \end{frame}

Any thoughts?

Cheers,

Loris


--------------473A66F56520E4DFF35EDE5E--