From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Table of contents for just one section? Date: Tue, 13 Jan 2015 02:23:49 +0100 Message-ID: <87vbkbiica.fsf@pank.eu> References: <87wq7uzwmm.fsf@nicolasgoaziou.fr> <871tpvmekr.fsf@nicolasgoaziou.fr> <87mw8joylh.fsf@gmx.us> <8761f7dlxd.fsf@nicolasgoaziou.fr> <87egtuq3ih.fsf@gmx.us> <87y4p9dm2r.fsf@nicolasgoaziou.fr> <87387h9c5g.fsf@gmx.us> <87ppake6mr.fsf@nicolasgoaziou.fr> <87sifgi8fe.fsf@gmx.us> <877fwregpu.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAqD7-0005Mr-Lb for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 20:23:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAqD4-0001pE-7Y for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 20:23:57 -0500 Received: from mout.gmx.net ([212.227.15.18]:62814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAqD3-0001p8-Tz for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 20:23:54 -0500 Received: from W530 ([109.201.154.210]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MMjgF-1Y8MJ60BnL-008dig for ; Tue, 13 Jan 2015 02:23:51 +0100 In-Reply-To: <877fwregpu.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 13 Jan 2015 00:12:29 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Nicolas Goaziou writes: > AFAIU, this is the only solution since we do not support titletoc in > core. As said, I'd prefer load hyperref via org-latex-hyperref-template, but it's probably too big a change too late. Though, it would resolve the "issue" that if I do (setq org-latex-default-packages-alist (delete '("" "hyperref" nil) org-latex-default-packages-alist)) Hypersetup is still inserted. > The modification is pretty trivial, too. Of course, but isn't it contradicting the docstring of org-latex-default-packages-alist? > Therefore you should not modify this variable unless you know what you > are doing. Unless I've managed to convenience you otherwise I will add a footnote explaining and recommending the following snippet (with-eval-after-load 'ox-latex (require 'cl) (let* ((packages (mapcar (lambda (elt) (and (listp elt) (nth 1 elt))) org-latex-default-packages-alist)) (pos (position "hyperref" packages :test 'equal)) (titletocp (member "titletoc" packages))) (when (and pos (not titletocp)) (push '("" "titletoc" nil) (nthcdr pos org-latex-default-packages-alist))))) Cheers, Rasmus -- . . . The proofs are technical in nature and provides no real understanding