Andrei Popov wrote:
I'm loading the hyperrref package to generate clickable bookmarks from Lyx TOC in the final PDF file.
I noticed that a number of characters are NOT displayed correctly in PDF bookmarks.
The problem is the different encoding in pdf-bookmarks. It cannot handle sub- and superscripts and some special characters.
To avoid a bad output, hyperref provides the command
\texorpdfstring{text}{pdf-bookmark text}See the attached example and have a look at the hyperref manual.
regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass scrartcl \begin_preamble \usepackage[colorlinks=true, urlcolor=blue, linkcolor=black, pdftitle={Your Title}, pdfauthor={Your Name}, bookmarksnumbered=true, pdfnewwindow=true, pdfstartview=XYZ, pdfpagelayout=OneColumn, bookmarksopen]{hyperref} \end_preamble \options fleqn,tablecaptionabove \language ngerman \inputencoding auto \fontscheme ae \graphics default \paperfontsize 12 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet
\layout Standard
\begin_inset LatexCommand \tableofcontents{}
\end_inset
\layout Section
LyX
\layout Standard
hello
\layout Section
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
texorpdfstring{
\end_inset
LyX
\begin_inset ERT
status Collapsed
\layout Standard
}{LyX}
\end_inset
\layout Standard
hello
\the_end
newfile1.pdf
Description: Adobe PDF document
