Re: [O] Trivial bug in ox-latex

2018-02-03 Thread Nicolas Goaziou
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

Re: [O] Trivial bug in ox-latex

2018-02-01 Thread Akater
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

Re: [O] Trivial bug in ox-latex

2018-01-31 Thread Nicolas Goaziou
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

[O] Trivial bug in ox-latex

2018-01-31 Thread Akater
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