From mboxrd@z Thu Jan 1 00:00:00 1970 From: FAb <0xfab@free.fr> Subject: Re: LaTeX export TOC decorations : how to Date: Sun, 09 Mar 2014 11:58:44 +0100 Message-ID: <531C4964.9070106@free.fr> References: <531B1460.70206@free.fr> <87ha78d883.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <0xfab@free.fr>) id 1WMbRa-0001Wu-5Y for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 06:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0xfab@free.fr>) id 1WMbRY-0002Jk-T8 for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 06:58:58 -0400 Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]:55494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <0xfab@free.fr>) id 1WMbRY-0002JY-6h for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 06:58:56 -0400 In-Reply-To: <87ha78d883.fsf@gmail.com> 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: Nick Dokos , emacs-orgmode@gnu.org On 03/08/2014 04:24 PM, Nick Dokos wrote: > FAb <0xfab@free.fr> writes: > >> Hi, >> When I org-export in pdf the items in TOC have red box around them >> like "decoration" for link in css. >> How can I get ride of them ? >> Or how to customize this stuff ? >> > Assuming you are going to PDF through latex, this is done by hyperref, so > you'll need to familiarize yourself with hyperref options and then > customize org-latex-hyperref-template. The default value of that > variable is > > "\\hypersetup{\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}}\n" > > You need to modify it to something like this: > > "\\hypersetup{\n linkbordercolor={0 0 1}\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}}\n" > > If you want to use color names rather than RGB values, you can > add > > #+LATEX_HEADER: \usepackage{xcolor} > > to your org file (or do a more permanent modification if so desired). > You can then use > > "\\hypersetup{\n linkbordercolor=blue\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}}\n" > > as the value of org-latex-hyperref-template. > > The hyperref manual can be found at > > https://www.tug.org/applications/hyperref/ftp/doc/manual.html > Ok thanks, When I use that "\hypersetup" in #+LATEX_HEADER the job is perfectly done. But I don't find the "org-latex-hyperref-template" and if I delcare it in my .emacs, nothing changes. Are you sure about this name ? Now as I know the keyword "hyperref" I find a lot of documentation on the web, but clue for that variable. Closest variables : org-export-latex-hyperref-format org-export-latex-hyperref-options-format org-latex-with-hyperref I imagine that I could hack latex template to have the good '#+LaTeX_HEADER' but if there is a nice way to do it, I'd rather learn it. Regards, FAb PS : thank you Tim