My document contains section titles that are formatted by the listings
package. (The section names are names of configure
script switches.)
\subsection{\lstinline!--enable-so-version!}\label{enable-so-version}
I am getting the following warning when processing the LaTeX source:
Package hyperref Warning: Token not allowed in a PDF string (Unicode):
(hyperref) removing `\lstinline' on input line 231.
Can I avoid it anyhow? I would be willing to duplicate the title string without the listings formatting decoration if there were a directive to set the PDF TOC entry string manually (instead of automatically).