5

I have met warning:"Package hyperref Warning: Composite letter `\textdotbelow+u'" when i use this code to create a bookmark

\pdfbookmark{\contentsname}{Contents}

I don't know the reason for this warning, how to avoid and fix the warning.

3
  • 2
    What language are you using?
    – egreg
    Dec 20, 2012 at 13:52
  • @egreg :Sorry, i don't understand the meaning of your question.
    – phuong
    Dec 21, 2012 at 7:05
  • I can only conjecture that you're writing your document in Vietnamese. Please, add the first lines of your document, where you declare the language used (something like in my example code below).
    – egreg
    Dec 21, 2012 at 7:35

2 Answers 2

11

Pass the unicode option to hyperref:

\documentclass{article}
\usepackage[utf8]{vietnam}
\usepackage[unicode]{hyperref}
\begin{document}
\pdfbookmark{\contentsname}{Contents}
\tableofcontents

\section{a}
\end{document}

Without the option I indeed get the warning

Package hyperref Warning: Composite letter `\textdotbelow+u'
(hyperref)                not defined in PD1 encoding,
(hyperref)                removing `\textdotbelow' on input line 5.

The warning disappears with that option. This should be independent of the input encoding chosen; I've tried with viscii, tcvn, vps, and utf8x

2

use

\pdfbookmark{\texorpdfstring{Contents}{\contentsname}}{Contents}

For Contents In \textorpdfstring you can use any translation without special characters which are not possible in the bookmarks of a pdf file, like your u with a underdot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.