[XeTeX] color name in headline bleeds into pdf bookmarks

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Jan 13 19:46:25 CET 2022


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.


Yours sincerely

More information about the XeTeX mailing list.