When I export the following org file to latex using C-c C-e d
, the resulting tex file does not match my expectations in regards to the way the sections are being created. The exported subsections and subsubsections end up in itemize environments instead of \subsection{}
's. I tried to add #+OPTIONS: H:3
, but the H
-option does not affect the created tex file in any way. What can I do in order to get org to export the file as I intend?
.org:
#+TITLE: export
#+OPTIONS: H:3
* section 1
** subsection 1
** subsection 2
*** subsubsection 1
* Section 2
results in .tex
% Created 2014-03-16 Sun 17:46
\documentclass{article}
\title{export}
\date{16 March 2014}
\begin{document}
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Section 1}
\label{sec-1}
\begin{itemize}
\item subsection 1\\
\label{sec-1.1}
\item subsection 2\\
\label{sec-1.2}
\begin{itemize}
\item subsubsection 1\\
\label{sec-1.2.1}
\end{itemize} % ends low level
\end{itemize} % ends low level
\section{Section 2}
\label{sec-2}
\end{document}
C-c C-c
theH:3
line. (You may also want to update—it would seem you are running Org 7 where the current version is Org 8, which introduces an entirely new exporter.)