From 6f731554541b105b5e79722226ad1708e0f36557 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 4 Aug 2014 01:12:45 +0200 Subject: [PATCH] ox-texinfo: Check options before inserting TOC * lisp/ox-texinfo.el (org-texinfo-template): Make sure table of contents are allowed before inserting them. --- lisp/ox-texinfo.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index cd8fc112d..c7e0ea46e 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -783,9 +783,8 @@ holding export options." (replace-regexp-in-string "^" "@author " subauthor)))))) (and copying "@page\n@vskip 0pt plus 1filll\n@insertcopying\n") "@end titlepage\n\n" - "@c Output the table of contents at the beginning.\n" - "@contents\n\n" - + ;; Table of contents. + (and (plist-get info :with-toc) "@contents\n\n") ;; Configure Top Node when not for Tex "@ifnottex\n" "@node Top\n" -- 2.11.4.GIT