I currently am using the hyperref
package and I'm currently getting a lot of error messages. Currently all of the chapter and section titles give this same error. I decided to try make a minimum example and currently:
\documentclass{amsbook}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[dvipsnames,usenames]{color}
\begin{document}
\pagenumbering{roman}
\chapter{Preface}
\mainmatter
\pagenumbering{arabic}
\part{The}
\end{document}
Is giving me the following warnings:
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) \kern 5.0pt
(hyperref) replaced by space on input line 18.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing '\noindent' on input line 18.
Is this a bug with the hyperref
package or is this just a result of me not setting up things properly? How do I go about either fixing this or silencing the warning messages?
\part{The}
wouldn't produce those warnings. Please prepare a minimal working example (MWE) that reproduces the messages.\documentclass
and ends with\end{document}
. This doesn't produce said warnings:\documentclass{article} \usepackage{hyperref} \begin{document} \tableofcontents \part{The} \end{document}
amsbook
, as discussed in this link. You may want to ignore the warning, if it is not affecting the desired output.