Hmmm. Reading this again…
This may be a bug in the exporter… 
Now let’s find where…
Because the LaTeX looks ‘nice’…

PA
Enviado desde mi iPad

> El 3 sept 2025, a las 20:06, David Masterson <dsmaster...@icloud.com> 
> escribió:
> 
> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:
> 
>> The problem seems to be in the way PDFLATEX interpretes the generated
>> LaTeX:
> 
> Hmm.  I'll have to try this with the ASCII backend and compare. You
> think this apply to other LaTeX engines?
> 
>> It is never a good idea to go beyond the subsubsection level in the
>> article class.
> 
> Hmm.  That will require some rethinking of how I set things up.
> 
>> 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.
> 
> That changes things in that Visibility Off works as expected producing
> the whole document (as previously with article).  However, if I (C-c C-e
> C-v l p) with (C-u 4 S-Tab) (as previous), I still get the large amount
> of blank lines (or blank page) after H4.3.1.2 and the PDF seems to be
> produced only up to H16.1 (previously H15.1).
> 
>> But once again: going so deep is never a nice approach ;-)
> 
> I was trying to take advantage of Org's outlining.  I'll have to rethink
> the organization of my original files.
> 
> The issue here seems to be how the export backend and ox-latex.el
> handles visibility as Visibility Off produces a good PDF.  Even setting
> visibility to 3 levels instead of 4 produces a strange PDF file that is
> cutoff early (even earlier than 4 levels).
> 
> Thanks for your help.
> 
>>> 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
> 
> --
> David Masterson

Reply via email to