Hi Eric,

On 2017-12-15 at 12:12, Eric S Fraga <esfli...@gmail.com> wrote:
> On Thursday, 14 Dec 2017 at 18:05, Ken Mankoff wrote:
>> Is there an easy way to specify #+LATEX_HEADER options that will not
>> be used when exporting to Beamer?
>
> #+latex_header: \ifx\frametitle\undefined\usepackage{somepackage}\fi
>
> which seems to work.  \usepackage{somepackage} is what you actually want
> when not using beamer.  Replace with your own stuff.  You can make it
> more readable by doing:
>
> # only for LaTeX and not beamer
> #+latex_header: \ifx\frametitle\undefined
> #+latex_header: \usepackage{somepackage}
> #+latex_header: \usepackage{another}
> #+latex_header: \fi

Thanks for this solution. Unless there is a more formal solution, or until 
someone implements #+LATEX_ONLY_HEADER, this works well. Thank you!

  -k.

Reply via email to