emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] LaTeX export TOC decorations : how to


From: FAb
Subject: Re: [O] LaTeX export TOC decorations : how to
Date: Sun, 09 Mar 2014 11:58:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 03/08/2014 04:24 PM, Nick Dokos wrote:
FAb <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]