[Tex/LaTex] Quotation marks in section titles

bookmarkshyperrefpdfpunctuationsectioning

I have a question similar to that in Cite in the caption of a graphic but not in \listoffigures?

I'm using this to create bookmarks in my generated PDFs:

\usepackage[pdftex,bookmarks=true]{hyperref}

My problem, is that I'm using inverted commas (quotation marks) in my section/subsection titles. However, my PDF bookmarks come out with backticks and two apostrophes (“` text… ''`), instead of a proper pair of inverted commas. Is there a way around this?

In the question I linked to above, I see that I can specify an optional title for places like this, and if worse comes to worse, I could leave out the quotation marks. I'd really prefer to keep them, though.

Best Answer

If, instead of the ligatures (which, I believe, is how the "double backping and double apostrophe become proper qoutation marks"-mechanism works), you use unicode characters, it seems to work as expected. Alternatively, you can use \texorpdfstring{for TeX typesetting}{for bookmarks} in your \section command.

This illustrates the two options.

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[bookmarks,pdftex]{hyperref}

\begin{document}

\tableofcontents

\section{The phrases ``nudge nudge'' and “wink wink”  }

\section{The \texorpdfstring{``larch''}{"larch"}}

\end{document}