Please disregard this. \hypersetup works as it is. I had a +text+ title which put a \sout{} in the pdftitle. That caused a error message about too many }'s from the pdflatex. This I mistook to mean the closing brace of \hypersetup.
Sorry about the fuss. Best regards, Robert On Thu, 29 Jun 2017 14:28:26 +0200 Robert Klein <robert.kl...@mpip-mainz.mpg.de> wrote: > Hi, > > The Latex \hypersetup options like to be on their own line and hate > when the closing } intrudes on them. > > Patch which puts the closing brace in its place below. > > Best regards > Robert > > > > > diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el > index ec4b49585f8..474f9b6e9c4 100644 > --- a/lisp/ox-latex.el > +++ b/lisp/ox-latex.el > @@ -596,7 +596,7 @@ the toc:nil option, not to those generated with > #+TOC keyword." > (defcustom org-latex-hyperref-template > "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n > pdfkeywords={%k}, > - pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n" > + pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}\n}\n" > "Template for hyperref package options. > > This format string may contain these elements: >