Hello,

On 2022-01-12 16:41, Niemann, Hartmut wrote:
Hello!

I observed a strange thing when experimenting with colored text.

\usepackage{bookmark}

\section{\color{red}Two}

There is a pdf bookmark for each section, but the second one is “redTwo” instead of “Two”.

Is there a way to avoid that?

Yes, use \textcolor instead of \color. The former macro is disabled
in bookmarks, the latter is not supported.

\section{\textcolor{red}{Two}}

Yours sincerely
  Heiko

Reply via email to