Rudolf Adamkovič <rud...@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>