summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-02-03 14:52:20 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-02-03 14:52:20 +0100
commitd0c4d9ba23598c86dc69c79706f1bb8373fab1c5 (patch)
treef5a76dc2af963658701007a01a7c5beea63ce1e8
parent98422471c994fab2e6186998a8bb5cc9283686a8 (diff)
downloadorg-mode-d0c4d9ba23598c86dc69c79706f1bb8373fab1c5.tar.gz
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>
-rw-r--r--lisp/ox-latex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 105ac0b..b3fbf8e 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.