On Wed, 21 Jun 2017 05:42:46 -0700 (PDT)
MadYuv <
saravanan...@gmail.com> wrote:
> \texorpdfstring tag helps you to meet your requirement,
> see sample coding below:
>
> \hypersetup{pdftitle={\texorpdfstring{Test the Under\_score PDF
> Title}{Test the Under\textunderscore score PDF}}}
MadYuv,
You did give me a solution, but \texorpdfstring, which I already was
aware of, is not the key. In fact, there is no need for \texorpdfstring
within pdftitle=, because, "hey, there that's always a pdfstring". LOL.
And, surprisingly, the key isn't \textunderscore either because that
one too will fail if used in place of \_ in my original example.
So, how in the world does your example manage to work?!
Well, it is your use of \hypersetup that is the key!
If I do:
\usepackage[pdftitle={Testing the Under\_score PDF Title},
bookmarks=true]{hyperref}
The problem happens, but if I instead use:
\usepackage[bookmarks=true]{hyperref}
\hypersetup{pdftitle={Testing the Under\_score PDF Title}}
then all is well.
Is this a bug in hyperref, or is it a limitation of allowing latex to
acquire the optional argument to \usepackage rather than hyperref.sty
for the argument of \hypersetup ?
BTW, does anyone know Heiko Oberdiek's current email address? I know
he used to use the ruf.uni-
freiburg.de domain and now I think he
is at
googlemail.com (I won't show the account name prior to the @
to avoid SPAM for him), but I haven't heard back from him at
googlemail ... yet. Is there another address he is using these days?
(If so, please don't post it in clear text here as he probably
does not want his email address out in the open.)
Cheers and thanks in any case!
Mike