Bläddra i källkod

ox-latex: Allow negative tocdepth

* lisp/ox-latex.el (org-latex-template): Allow negative tocdepth.

Reported-by: Akater <nuclearspace@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-01/msg00528.html>
Nicolas Goaziou 7 år sedan
förälder
incheckning
d0c4d9ba23
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
lisp/ox-latex.el

@@ -1719,7 +1719,7 @@ holding export options."
      ;; Table of contents.
      (let ((depth (plist-get info :with-toc)))
        (when depth
-	 (concat (when (wholenump depth)
+	 (concat (when (integerp depth)
 		   (format "\\setcounter{tocdepth}{%d}\n" depth))
 		 (plist-get info :latex-toc-command))))
      ;; Document's body.