
を使用して次の org ファイルを latex にエクスポートするとC-c C-e d
、セクションの作成方法に関して、結果の tex ファイルは期待どおりになりません。エクスポートされたサブセクションとサブサブセクションは、 ではなく itemize 環境になります\subsection{}
。 を追加しようとしました#+OPTIONS: H:3
が、H
-option は作成された 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
。