From d0c4d9ba23598c86dc69c79706f1bb8373fab1c5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 3 Feb 2018 14:52:20 +0100 Subject: [PATCH] ox-latex: Allow negative tocdepth * lisp/ox-latex.el (org-latex-template): Allow negative tocdepth. Reported-by: Akater --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 105ac0b0c..b3fbf8e95 100644 --- a/lisp/ox-latex.el +++ b/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.