emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: jamshark70@dewdrop-world.net, Nicolas Goaziou <n.goaziou@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: ox-latex: Is \uline really right for underlining?
Date: Thu, 12 Dec 2013 02:02:50 -0500	[thread overview]
Message-ID: <87txeek156.fsf@gmail.com> (raw)
In-Reply-To: <CAFniQ7WqZNqfZx0vS-3NZDqcBSGSEVvSr=GnGy9085kf3_58xQ@mail.gmail.com>

Hi James,

2013ko abenudak 12an, James Harkins-ek idatzi zuen:

> What's the best way to handle that? I really want the "hidelinks"
> option for hyperref to be used globally. But, customizing
> org-latex-default-packages-alist means that I will miss updates to
> that variable in future org versions.
>
> Should I leave org-latex-default-packages-alist alone, and add my own
> entry for hyperref into org-latex-packages-alist? (Would there be any
> ill effect from having two \usepackage{hyperref} lines in the
> preamble, with different options?)

I don’t know for certain if having two \usepackages would have bad
effects, but my vague feeling is that you will be fussed at by the
LaTeX compiler and/or the options specified in the two instances will
not compose in the desired way.

You probably want the \hypersetup command (q.v. in the hyperref manual).
You can add it to the ‘org-latex-classes’.  You probably want something
like the following, slightly modified from the default:

(("article"
  "\\documentclass[11pt]{article}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\hypersetup{hidelinks=true} % <--- the important bit
\[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

HTH,

--
Aaron Ecay

      reply	other threads:[~2013-12-12  7:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11 14:21 ox-latex: Is \uline really right for underlining? James Harkins
2013-12-11 14:47 ` Nicolas Goaziou
2013-12-12  2:40   ` James Harkins
2013-12-12  6:47     ` James Harkins
2013-12-12  7:02       ` Aaron Ecay [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txeek156.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@dewdrop-world.net \
    --cc=n.goaziou@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).