Ok. I was hesitant to require anything additional but I should be able to knock this out.
Thx again. Sent from my iPhone > On Feb 20, 2014, at 4:22 AM, Nicolas Goaziou <n.goaz...@gmail.com> wrote: > > Hello, > > Joe Hirn <joseph.h...@gmail.com> writes: > >> 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. > > I'm suggesting to use `format-spec', e.g., something like: > > (and org-latex-hyperref-template > (format-spec org-latex-hyperref-template > (format-spec-make > ?k (or (plist-get info :keywords) "") > ?d (or (plist-get info :description) "") > ?c (if (not (plist-get info :with-creator)) "" > (plist-get info :creator))))) > > Thus, when `org-latex-hyperref-template' is nil, no "\hyperref" command > is inserted, otherwise, it is a format string where %k is replaced with > KEYWORDS, %d with DESCRIPTION and %c with CREATOR. > > Default value for the variable would be: > > "\\hypersetup{\n pdfkeywords={%k},\n pdfsubject={%d},\n > pdfcreator={%c}}\n" > > A (require 'format-spec) will be needed in the beginning of > "ox-latex.el". > > > Regards, > > -- > Nicolas Goaziou