Org:Latex 匯出建立清單而不是小節

Org:Latex 匯出建立清單而不是小節

當我使用 將以下 org 檔案匯出到 Latex 時C-c C-e d,產生的 tex 檔案與我對建立節的方式的期望不符。導出的小節和子小節最終出現在 itemize 環境中而不是\subsection{}'s 中。我嘗試添加#+OPTIONS: H:3,但H- 選項不會以任何方式影響創建的 tex 文件。我該怎麼做才能讓 org 依照我的意圖匯出文件?

.org:

#+TITLE: export
#+OPTIONS: H:3

* section 1
** subsection 1
** subsection 2
*** subsubsection 1
* Section 2

結果為 .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}

答案1

#+OPTIONS: H:3

* section
** subsection
*** subsubsection

在 下為我工作Org-mode version 8.2.5h (8.2.5h-30-gdd810b-elpa @ /…/org-20140303/)。確保在第一行應用該選項C-c C-c

相關內容