Hi, The problem seems to be in the way PDFLATEX interpretes the generated LaTeX: ``` latex \subsubsection{H4.3.1} \label{sec:org5db1e3d} \begin{enumerate} \item H4.3.1.1 \label{sec:org82c0321} \item H4.3.1.2 \label{sec:org7ecaeea} \end{enumerate} \subsubsection{H4.3.2} ``` It is never a good Idea to go beyond the subsubsection level in the article class. Maybe you should try to create your own org-latex-class. Could you try to see if adding this to your startup code helps?
``` emacs-lisp (add-to-list 'org-latex-classes '("scrartcl" "\\documentclass[oneside]{scrartcl}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ``` and changing the class to scratrl. But once again: going so deep is never a nice approach ;-) Best, /PA On Wed, 3 Sept 2025 at 06:29, David Masterson <dsmaster...@icloud.com> wrote: > > Can someone tell me if they see the same problem that I do? > > The attached Org file is just a bunch of headlines of the form > "H#.#.#.#.#.#" down to 6 levels each having a "test" paragraph. When > exporting this to PDF form (via LaTeX), it seemed to look proper with > visibility off (C-c C-e l p) when viewed in xpdf. When I cycled to 4 > levels of visibility (C-u 4 S-tab), a couple of strange things happened > when exporting with visibility on (C-c C-e C-v l p) when viewed with > xpdf: > > 1. A large gap comes up between H4.3.1.2 and H4.3.2. > 2. The PDF seems to stop after H15.1 although XPDF TOC goes to H28. > > Is this a bug? If so, where? > > -- > David Masterson -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Sagen's Paradeiser, write BE! Year 1 of the New Koprocracy