[Tex/LaTex] Greek pdf bookmarks

bookmarksgreekhyperrefpdfunicode

I am puzzled with sections titled with Greek characters. They do appear in the pdf's Content list, though not correctly.

For example, in my thesis–written in English with LyX, based on the KOMA-script–I choose to include a translation of the summary in Greek (=Περίληψη). The "raw" code for the (unnumbered) chapter title reads: \addchap{\textgreek{Per\char208lhyh}}. In the final .pdf file (using pdflatex) the respective entry appears as Per208lhyh. Using the unicode option for the hyperref package does not fix the problem.

Update detail: the document (should) not only contain Chapter or Section titles in Greek, but normal text as well.

I have found some relevant references within tex.stackexchange and elsewhere (e.g., https://tex.stackexchange.com/a/21675/8272, the manual of the textgreek package, http://www.latex-community.org/forum/viewtopic.php?f=5&t=6059, http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2005-12/msg00944.html). However, I cannot extract a concrete answer.

How can Greek characters appear correctly as bookmarks in the .pdf's Content list?

Note, the information of this Q&A applies to/under LyX as well.

Best Answer

The following works: one has to pass the unicode option to hyperref and also a correct Unicode string for the bookmark:

\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[greek,english]{babel}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}
\begin{document}
\mainmatter
\chapter{Introduction}
An introduction.

\cleardoublepage
\begin{otherlanguage}{greek}
\addchap{\texorpdfstring{Per'ilhyh}{Περίληψη}}
Per'ilhyh
\end{otherlanguage}

\end{document}

Unfortunately, the utf8x option to inputenc that would allow to use the Greek alphabet for the language is not compatible with the bookmark system of hyperref.