I want to export an Org file into PDF, with any depth titles showed in TOC; however, cannot works. Even though adding \setcounter{tocdepth}{5}
, TOC still only contains the title of 3rd depth (\subsubsection
).
I check the TeX file it exported: org-export seemed to ignore my setting for org-latex-classes
, and just convert ****
into '\item
instead of \paragraph
. But I cannot find some worked solution for this...
Following is my org-latex-classes
:
(setq org-latex-classes
'(("article" "
\\documentclass[10pt,a4paper]{article}
\\usepackage[margin=2cm]{geometry}
\\usepackage{fontspec}
\\XeTeXlinebreakskip = 0pt plus 1pt
\\linespread{1.36}
\\setcounter{tocdepth}{5}
\\usepackage{multicol}
\\usepackage{hyperref}
\\hypersetup{
colorlinks=true,
linkcolor=[rgb]{0,0.37,0.53},
citecolor=[rgb]{0,0.47,0.68},
filecolor=[rgb]{0,0.37,0.53},
urlcolor=[rgb]{0,0.37,0.53},
pagebackref=true,
linktoc=all,}
"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
)
)