From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: ox-latex: Is \uline really right for underlining? Date: Thu, 12 Dec 2013 02:02:50 -0500 Message-ID: <87txeek156.fsf@gmail.com> References: <87bo0nzbox.fsf@gmail.com> <4b911e1e-49e6-4a80-b152-3b1910bb4a6d@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr0IQ-0007o1-OX for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 02:03:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vr0II-0004Xn-6Z for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 02:02:54 -0500 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:39820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr0II-0004Xh-2c for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 02:02:46 -0500 Received: by mail-qc0-f170.google.com with SMTP id x13so6091937qcv.15 for ; Wed, 11 Dec 2013 23:02:45 -0800 (PST) In-Reply-To: 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: jamshark70@dewdrop-world.net, Nicolas Goaziou Cc: orgmode 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=E2=80=99t 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 =E2=80=98org-latex-classes=E2=80=99. You probably wa= nt something like the following, slightly modified from the default: (("article" "\\documentclass[11pt]{article} \[DEFAULT-PACKAGES] \[PACKAGES] \hypersetup{hidelinks=3Dtrue} % <--- 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