emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ox-texinfo: Support numeric values of `toc' in `#+OPTIONS'


From: Ihor Radchenko
Subject: Re: [PATCH] ox-texinfo: Support numeric values of `toc' in `#+OPTIONS'
Date: Mon, 09 Sep 2024 17:57:27 +0000

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

>> Also, what about `org-export-collect-headlines'. It also ignores
>> numeric value of :with-toc.
>
> Fixed.  Thank you for letting me know!  I am exporting only to HTML,
> where Org-generated top-level menus do not appear.  So, I missed it.
>
> P.S. I also fixed the incorrect test.

Thanks!

> -      (equal "notoc" (org-export-get-node-property :UNNUMBERED headline t))))
> +      (equal "notoc" (org-export-get-node-property :UNNUMBERED headline t))
> +      (let ((toc-depth (plist-get info :with-toc)))
> +        (and (wholenump toc-depth)
> +             (> (org-element-property :level headline)
> +                toc-depth)))))

Should be relative level, I think.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]