From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Slee Subject: Re: Org-Mode 8.07 LaTeX Beamer export does not parse headings to frames during export Date: Fri, 9 Aug 2013 14:10:06 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1cece68aea804e387b005 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7r8y-0002PA-6D for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7r8t-00085t-HL for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:10:32 -0400 Received: from mail-oa0-x236.google.com ([2607:f8b0:4003:c02::236]:61190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7r8t-00085m-Ao for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:10:27 -0400 Received: by mail-oa0-f54.google.com with SMTP id o6so5358860oag.13 for ; Fri, 09 Aug 2013 11:10:26 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --e89a8ff1cece68aea804e387b005 Content-Type: text/plain; charset=ISO-8859-1 I have struggled with this myself. The answer is that the following line will give what you want: #+OPTIONS: H:2 I'm not sure why the BEAMER_FRAME_LEVEL instruction doesn't handle that, but the OPTIONS seems needed. Tom On Fri, Aug 9, 2013 at 6:05 AM, Ronert Obst wrote: > Hi, > > I am trying to move my beamer export settings to the new exporter, but I > cannot even get a minimal example from the documentation to work properly. > Specifically, Org-Mode headings do not get parsed to frames during export > to LaTeX Beamer. > > I added the minimal beamer export setup from > http://orgmode.org/worg/exporters/beamer/ox-beamer.html to my .emacs: > > (require 'ox-latex) > (add-to-list 'org-latex-classes > '("beamer" > "\\documentclass\[presentation\]\{beamer\}" > ("\\section\{%s\}" . "\\section*\{%s\}") > ("\\subsection\{%s\}" . "\\subsection*\{%s\}") > ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) > > > Using the minimal example from the documentation > http://orgmode.org/manual/Beamer-class-export.html > > #+LaTeX_CLASS: beamer > #+TITLE: Example Presentation > #+AUTHOR: Carsten Dominik > #+LaTeX_CLASS_OPTIONS: [presentation] > #+BEAMER_FRAME_LEVEL: 2 > #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} > #+COLUMNS: %35ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Args) > %4BEAMER_col(Col) %8BEAMER_extra(Ex) > > * This is the first structural section > > ** Frame 1 \\ with a subtitle > *** Thanks to Eric Fraga > :BMCOL:B_block: > :PROPERTIES: > :BEAMER_env: block > :BEAMER_envargs: C[t] > :BEAMER_col: 0.5 > :END: > for the first viable beamer setup in Org > *** Thanks to everyone else > :BMCOL:B_block: > :PROPERTIES: > :BEAMER_col: 0.5 > :BEAMER_env: block > :BEAMER_envargs: <2-> > :END: > for contributing to the discussion > **** This will be formatted as a beamer note :B_note: > ** Frame 2 \\ where we will not use columns > *** Request > :B_block: > Please test this stuff! > :PROPERTIES: > :BEAMER_env: block > :END: > > the headings do not parse to beamer frames. This is the LaTeX output I get: > > % Created 2013-08-09 Fri 12:04 > \documentclass[presentation]{beamer} > \author{Carsten Dominik} > \date{\today} > \title{Example Presentation} > \hypersetup{ > pdfkeywords={}, > pdfsubject={}, > pdfcreator={Emacs 24.3.1 (Org mode 8.0.7)}} > \begin{document} > > \maketitle > \tableofcontents > > \section{This is the first structural section} > \label{sec-1} > \subsection{Frame 1} > \label{sec-1-1} > \begin{enumerate} > \item Thanks to Eric Fraga\hfill{}\textsc{B_block:BMCOL} > \label{sec-1-1-1} > for the first viable Beamer setup in Org > > \item Thanks to everyone else\hfill{}\textsc{B_block:BMCOL} > \label{sec-1-1-2} > for contributing to the discussion > \begin{enumerate} > \item This will be formatted as a beamer note\hfill{}\textsc{B_note} > \label{sec-1-1-2-1} > \end{enumerate} > \end{enumerate} > > \subsection{Frame 2 (where we will not use columns)} > \label{sec-1-2} > \begin{enumerate} > \item Request > \label{sec-1-2-1} > Please test this stuff! > \end{enumerate} > % Emacs 24.3.1 (Org mode 8.0.7) > \end{document} > > Help would be greatly appreciated. > > Best regards > Ronert > --e89a8ff1cece68aea804e387b005 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I have struggled with this myself. The answer is that the = following line will give what you want:

#+OPTIONS: H:2

I'm not sure why the BEAMER_FRAME_LEVEL instruc= tion doesn't handle that, but the OPTIONS seems needed.

Tom


On Fri, Aug 9, 2013 at 6:05 AM, Ronert Obst <ron= ert.obst@gmail.com> wrote:
Hi,

I am trying to move m= y beamer export settings to the new exporter, but I cannot even get a minim= al example from the documentation to work properly. Specifically, Org-Mode = headings do not get parsed to frames during export to LaTeX Beamer.

I added the minimal beamer export setup from=A0http://orgmode.org/worg/exporters/beamer/ox-beamer.html to my .emac= s:

(require 'ox-latex)
(add-to-list 'org-latex-cla= sses
=A0 =A0 =A0 =A0 =A0 =A0 =A0'("beamer"
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"\\documentclass\[presentation\]\{bea= mer\}"
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("\\section\{%s\}= " . "\\section*\{%s\}")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("\\subsection\{%s\}" . "= ;\\subsection*\{%s\}")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("= ;\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
<= /div>


Using the minimal example from the documentation http://or= gmode.org/manual/Beamer-class-export.html

=A0 =A0 =A0#+LaTeX_CLASS: beamer
=A0 =A0 =A0#+TITLE: Example Presentation
=A0 =A0 =A0#+AUTHOR= : Carsten Dominik
=A0 =A0 =A0#+LaTeX_CLASS_OPTIONS: [presentation= ]
=A0 =A0 =A0#+BEAMER_FRAME_LEVEL: 2
=A0 =A0 =A0#+BEAME= R_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
=A0 =A0 =A0#+COLUMNS: %35ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Arg= s) %4BEAMER_col(Col) %8BEAMER_extra(Ex)
=A0 =A0 =A0
=A0= =A0 =A0* This is the first structural section
=A0 =A0 =A0
<= div>=A0 =A0 =A0** Frame 1 \\ with a subtitle
=A0 =A0 =A0*** Thanks to Eric Fraga =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:BMCOL:B_block:
=A0 = =A0 =A0 =A0 =A0:PROPERTIES:
=A0 =A0 =A0 =A0 =A0:BEAMER_env: block=
=A0 =A0 =A0 =A0 =A0:BEAMER_envargs: C[t]
=A0 =A0 =A0 = =A0 =A0:BEAMER_col: 0.5
=A0 =A0 =A0 =A0 =A0:END:
=A0 =A0 =A0 =A0 =A0for the first vi= able beamer setup in Org
=A0 =A0 =A0*** Thanks to everyone else = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :BMCOL:= B_block:
=A0 =A0 =A0 =A0 =A0:PROPERTIES:
=A0 =A0 =A0 = =A0 =A0:BEAMER_col: 0.5
=A0 =A0 =A0 =A0 =A0:BEAMER_env: block
=A0 =A0 =A0 =A0 =A0:BE= AMER_envargs: <2->
=A0 =A0 =A0 =A0 =A0:END:
=A0 = =A0 =A0 =A0 =A0for contributing to the discussion
=A0 =A0 =A0****= This will be formatted as a beamer note =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0:B_note:
=A0 =A0 =A0** Frame 2 \\ where we will not use columns
=A0 = =A0 =A0*** Request =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :B_block:
=A0 =A0 =A0= =A0 =A0Please test this stuff!
=A0 =A0 =A0 =A0 =A0:PROPERTIES:
=A0 =A0 =A0 =A0 =A0:BEAMER_env: block
=A0 =A0 =A0 =A0 =A0:EN= D:

the headings do not parse to beamer frame= s. This is the LaTeX output I get:

% Created = 2013-08-09 Fri 12:04
\documentclass[presentation]{beamer}
\author{Carsten Dominik= }
\date{\today}
\title{Example Presentation}
= \hypersetup{
=A0 pdfkeywords=3D{},
=A0 pdfsubject=3D{},=
=A0 pdfcreator=3D{Emacs 24.3.1 (Org mode 8.0.7)}}
\begin{doc= ument}

\maketitle
\tableofcontents
=

\section{This is the first structural section}
\label{sec-1}
\subsection{Frame 1}
\label{sec-1-1}
\begin{enumerate}
\item Thanks to Eric Fraga\hfill{}\textsc= {B_block:BMCOL}
\label{sec-1-1-1}
for the first viable = Beamer setup in Org

\item Thanks to everyone else\hfill{}\textsc{B_block:BM= COL}
\label{sec-1-1-2}
for contributing to the discussi= on
\begin{enumerate}
\item This will be formatted as a = beamer note\hfill{}\textsc{B_note}
\label{sec-1-1-2-1}
\end{enumerate}
\end{enumerate= }

\subsection{Frame 2 (where we will not use colum= ns)}
\label{sec-1-2}
\begin{enumerate}
\item = Request
\label{sec-1-2-1}
Please test this stuff!
\end{enu= merate}
% Emacs 24.3.1 (Org mode 8.0.7)
\end{document}<= /div>

Help would be greatly appreciated.

Best regards
Ronert

--e89a8ff1cece68aea804e387b005--