Hello,

Akater <nuclearsp...@gmail.com> writes:

> The following snippet in ox-latex.el processes negative tocdepths
> incorrectly:
>
> #+begin_src emacs-lisp
> ;; Table of contents.
> (let ((depth (plist-get info :with-toc)))
>   (when depth
>     (concat (when (wholenump depth)
>               (format "\\setcounter{tocdepth}{%d}\n" depth))
>             (plist-get info :latex-toc-command))))
> #+end_src
>
> When depth is -1, wholenump form evaluates to nil, and setcounter
> command is not exported at all.

I don't think it's a bug. Org doesn't pretend to support every LaTeX
feature. Setting `org-export-with-toc', which is where DEPTH comes from,
to -1 doesn't make much sense in an Org context, does it?

Regards,

-- 
Nicolas Goaziou

Reply via email to