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 10:21:31 -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=001a11c20c541e4e6904f2c4c8b8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG9tt-00047v-KY for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 11:21:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG9ts-0000Sf-Oy for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 11:21:33 -0500 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:53153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG9ts-0000SU-ID for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 11:21:32 -0500 Received: by mail-ob0-f179.google.com with SMTP id wo20so651639obc.38 for ; Wed, 19 Feb 2014 08:21:31 -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 --001a11c20c541e4e6904f2c4c8b8 Content-Type: text/plain; charset=ISO-8859-1 I think that's a great idea. Thanks for helping me workaround my individual problem and advice on what type of patch you're welcoming. I just happen to have the free time today so I'll try to get a patch to you. 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 > --001a11c20c541e4e6904f2c4c8b8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I think that's a great idea.=A0

Tha= nks for helping me workaround my individual problem and advice on what type= of patch you're welcoming.

I just happen to h= ave the free time today so I'll try to get a patch to you.=A0


On 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

--001a11c20c541e4e6904f2c4c8b8--