emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX Export Packages
@ 2011-07-29 20:55 Scott Randby
  2011-07-29 20:59 ` Ista Zahn
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Randby @ 2011-07-29 20:55 UTC (permalink / raw)
  To: [Orgmode]

The package hyperref is one of the default packages listed in
org-export-latex-default-packages-alist. I want to add some options to
this package for some files but not for others.

I have tried adding the following to my file:

#+LATEX_HEADER:
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue]{hyperref}

When I export, I get an error because hyperref appears twice in the TEX
file.

1. I don't want to edit the exported LaTeX file to add the hyperref
options.

2. I don't want to customize org-export-latex-default-packages-alist to
include the options for hyperref because I don't always want those options.

3. I don't want to delete hyperref from
org-export-latex-default-packages-alist because I might forget to add it
in some file that will be exported to LaTeX.

4. I'd rather not customize my .emacs because the options I want for
hyperref vary from file to file.

I would like some way to add options in an org-mode file to the packages
that appear in org-export-latex-default-packages-alist. Maybe something
similar to #+LaTeX_CLASS_OPTIONS: will be possible. But this doesn't
look easy to me. Should I learn how to do publishing?

Scott Randby

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LaTeX Export Packages
  2011-07-29 20:55 LaTeX Export Packages Scott Randby
@ 2011-07-29 20:59 ` Ista Zahn
  2011-07-30 23:10   ` Scott Randby
  0 siblings, 1 reply; 3+ messages in thread
From: Ista Zahn @ 2011-07-29 20:59 UTC (permalink / raw)
  To: Scott Randby; +Cc: [Orgmode]

Hi Scott,
Untested, but I think you can use
#+LATEX_HEADER: \hypersetup{colorlinks=true,urlcolor=blue,linkcolor=blue}

Best,
Ista

On Fri, Jul 29, 2011 at 4:55 PM, Scott Randby <srandby@gmail.com> wrote:
> The package hyperref is one of the default packages listed in
> org-export-latex-default-packages-alist. I want to add some options to
> this package for some files but not for others.
>
> I have tried adding the following to my file:
>
> #+LATEX_HEADER:
> \usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue]{hyperref}
>
> When I export, I get an error because hyperref appears twice in the TEX
> file.
>
> 1. I don't want to edit the exported LaTeX file to add the hyperref
> options.
>
> 2. I don't want to customize org-export-latex-default-packages-alist to
> include the options for hyperref because I don't always want those options.
>
> 3. I don't want to delete hyperref from
> org-export-latex-default-packages-alist because I might forget to add it
> in some file that will be exported to LaTeX.
>
> 4. I'd rather not customize my .emacs because the options I want for
> hyperref vary from file to file.
>
> I would like some way to add options in an org-mode file to the packages
> that appear in org-export-latex-default-packages-alist. Maybe something
> similar to #+LaTeX_CLASS_OPTIONS: will be possible. But this doesn't
> look easy to me. Should I learn how to do publishing?
>
> Scott Randby
>
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LaTeX Export Packages
  2011-07-29 20:59 ` Ista Zahn
@ 2011-07-30 23:10   ` Scott Randby
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Randby @ 2011-07-30 23:10 UTC (permalink / raw)
  To: [Orgmode]

On 07/29/2011 04:59 PM, Ista Zahn wrote:
> Hi Scott,
> Untested, but I think you can use
> #+LATEX_HEADER: \hypersetup{colorlinks=true,urlcolor=blue,linkcolor=blue}

That worked. Thanks.

Scott

> 
> Best,
> Ista
> 
> On Fri, Jul 29, 2011 at 4:55 PM, Scott Randby <srandby@gmail.com> wrote:
>> The package hyperref is one of the default packages listed in
>> org-export-latex-default-packages-alist. I want to add some options to
>> this package for some files but not for others.
>>
>> I have tried adding the following to my file:
>>
>> #+LATEX_HEADER:
>> \usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue]{hyperref}
>>
>> When I export, I get an error because hyperref appears twice in the TEX
>> file.
>>
>> 1. I don't want to edit the exported LaTeX file to add the hyperref
>> options.
>>
>> 2. I don't want to customize org-export-latex-default-packages-alist to
>> include the options for hyperref because I don't always want those options.
>>
>> 3. I don't want to delete hyperref from
>> org-export-latex-default-packages-alist because I might forget to add it
>> in some file that will be exported to LaTeX.
>>
>> 4. I'd rather not customize my .emacs because the options I want for
>> hyperref vary from file to file.
>>
>> I would like some way to add options in an org-mode file to the packages
>> that appear in org-export-latex-default-packages-alist. Maybe something
>> similar to #+LaTeX_CLASS_OPTIONS: will be possible. But this doesn't
>> look easy to me. Should I learn how to do publishing?
>>
>> Scott Randby
>>
>>
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-30 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 20:55 LaTeX Export Packages Scott Randby
2011-07-29 20:59 ` Ista Zahn
2011-07-30 23:10   ` Scott Randby

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).