From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hirn Subject: Re: org-export-latex-hyperref-options-format Date: Wed, 19 Feb 2014 16:43:20 -0600 Message-ID: References: <87a9dpo0as.fsf@gmail.com> <8738jhnx1m.fsf@gmail.com> <878ut72qyo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136b9de94241004f2ca1dc2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGFrO-0001bG-Hs for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 17:43:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGFrN-0000PC-9s for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 17:43:22 -0500 Received: from mail-oa0-x232.google.com ([2607:f8b0:4003:c02::232]:34968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGFrN-0000P8-41 for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 17:43:21 -0500 Received: by mail-oa0-f50.google.com with SMTP id n16so1267227oag.9 for ; Wed, 19 Feb 2014 14:43:20 -0800 (PST) In-Reply-To: <878ut72qyo.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --001a1136b9de94241004f2ca1dc2 Content-Type: text/plain; charset=ISO-8859-1 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. Thanks On Wed, Feb 19, 2014 at 7:05 AM, Nicolas Goaziou wrote: > Hello, > > Joe Hirn 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? > > > Regards, > > -- > Nicolas Goaziou > --001a1136b9de94241004f2ca1dc2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi just sat down to code this up. I assume the keywords ar= e 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 keyword= s.

Are you suggesting we could do=A0something like:

"\\hypersetup{\n =A0pdfkeywords=3D{%kkeywords},\n =A0pdfsubjec= t=3D{%kdescription},\n =A0pdfcreator=3D{%kcreator}}\n"
<= br>
If that's the idea, is there a more powerful construct than regex match= ing for achieving this? Otherwise, can you give me an example of what you h= ad in mind for the keyword placeholders.=A0

Thanks= =A0


O= n Wed, Feb 19, 2014 at 7:05 AM, Nicolas Goaziou <n.goaziou@gmail.com= > wrote:
Hello,

Joe Hirn <joseph.hirn@gmail.com= > writes:

> So I understand, you're recommending I disab= le org-latex-with-hyperref and
> then add my own \\hypersetup. My goal would be to avoid placing a #+ e= ntry
> into every .org file I compose. Which var would be the easiest to to a= djust
> so I can emit \\hypersetup by default and still access the info map th= at is
> passed to org-latex-template. I'd like to get the keywords, subjec= t 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 do= n'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<= br> 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?


Regards,

--
Nicolas Goaziou

--001a1136b9de94241004f2ca1dc2--