Hello,
Akater writes:
> I can't answer this as I do not deal with org-export-with-toc
> directly. I was setting tocdepth via
> org-export-filter-options-functions, specialized explicitly to latex
> backend:
I didn't thought about filters, indeed. Fair enough, then. I changed
`wholenump' to `int
Nicolas Goaziou writes:
>> 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
Hello,
Akater 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{tocd
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-ge