[Top][All Lists]

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

Re: [O] org-export-latex-hyperref-options-format

From: Joe Hirn
Subject: Re: [O] org-export-latex-hyperref-options-format
Date: Wed, 19 Feb 2014 16:43:20 -0600

Hi just sat down to code this up. I assume the keywords are so we can use data within the plist argument (info) passed to `org-latex-template'. But I'm not exactly sure what you mean by %k for keywords.

Are you suggesting we could do something like:

"\\hypersetup{\n  pdfkeywords={%kkeywords},\n  pdfsubject={%kdescription},\n  pdfcreator={%kcreator}}\n"

If that's the idea, is there a more powerful construct than regex matching for achieving this? Otherwise, can you give me an example of what you had in mind for the keyword placeholders. 


On Wed, Feb 19, 2014 at 7:05 AM, Nicolas Goaziou <address@hidden> wrote:

Joe Hirn <address@hidden> writes:

> So I understand, you're recommending I disable org-latex-with-hyperref and
> then add my own \\hypersetup. My goal would be to avoid placing a #+ entry
> into every .org file I compose. Which var would be the easiest to to adjust
> so I can emit \\hypersetup by default and still access the info map that is
> passed to org-latex-template. I'd like to get the keywords, subject and
> creator variables that are emitted right now.

On a personal level, if you only need to add keyword-value pairs,
I think the simplest solution is to add a class in `org-latex-classes',
where you insert an additional "\hypersetup{...}" command. You don't
need to change `org-latex-with-hyperref' in this case.

You can also use a (final) filter to install this command if you don't
want to bother creating a new class.

On a more general level, I'll welcome a solution replacing
`org-latex-with-hyperref' with `org-latex-hyperref-template', which
could be either nil (no hyperref command) or a string with some
placeholders (e.g. %k for keywords).

What do you think?


Nicolas Goaziou

reply via email to

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