From: Nick Dokos <nicholas.dokos@hp.com>
To: SW <sabrewolfy@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Disable links in Latex export
Date: Wed, 11 Apr 2012 14:01:33 -0400 [thread overview]
Message-ID: <7114.1334167293@alphaville> (raw)
In-Reply-To: Message from SW <sabrewolfy@gmail.com> of "Wed, 11 Apr 2012 17:08:22 -0000." <loom.20120411T190523-966@post.gmane.org>
SW <sabrewolfy@gmail.com> wrote:
> I'm exporting a structured document to Latex/PDF. The table of contents contains
> hyperlinks for each section which I would like to disable. I tried setting
> "org-export-latex-href" and "org-export-latex-hyperref" to empty strings, but
> this did not help. Thanks.
>
>
There are no such variables. There are variables
org-export-latex-href-format and org-export-latex-hyperref-format but
they are used for links in the document body. The TOC is under the
control of latex and hyperref, so you cannot use either of these to
influence it.
The only way I know of to disable links completely is to not use
hyperref at all. You can redefine the package list appropriately.
Unfortunately, I think there is an unconditional \hypersetup
inserted by the latex exporter that would then break things -
there is even a FIXME: note:
,----
| ;; add some hyperref options
| ;; FIXME: let's have a defcustom for this?
| (format "\\hypersetup{\n pdfkeywords={%s},\n pdfsubject={%s},\n pdfcreator={%s}}\n"
| (org-export-latex-fontify-headline keywords)
| (org-export-latex-fontify-headline description)
| (concat "Emacs Org-mode version " org-version))
`----
Given that the new latex exporter is where all the action is right now,
I don't foresee that this is going to be fixed.
If all you care about is the *appearance*, rather than the existence of
links, however, you can use hyperref package options to influence
that. For example
\usepackage[pdfborder={0,0,0}]{hyperref}
will get rid of the red boxes around the links in the TOC: they are
still links, they are just not that obvious any more. You can do that
by customizing the org-export-latex-default-packages-alist variable:
just add the above option (without the square brackets) to the hyperref
package entry.
Nick
next prev parent reply other threads:[~2012-04-11 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 17:08 Disable links in Latex export SW
2012-04-11 18:01 ` Nick Dokos [this message]
2012-04-26 8:51 ` Eric Fraga
2012-04-26 11:47 ` John Hendy
2012-05-29 12:17 ` SW
2012-05-29 12:12 ` SW
2012-05-29 12:08 ` SW
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7114.1334167293@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=sabrewolfy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.