emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Trivial bug in ox-latex


From: Nicolas Goaziou
Subject: Re: [O] Trivial bug in ox-latex
Date: Wed, 31 Jan 2018 21:22:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Akater <address@hidden> 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

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