[XeTeX] color name in headline bleeds into pdf bookmarks

Niemann, Hartmut hartmut.niemann at siemens.com
Wed Jan 12 16:41:54 CET 2022


Hello!

I observed a strange thing when experimenting with colored text.

---8<----
\documentclass{article}
\usepackage{xcolor}
\usepackage{bookmark}
\begin{document}
\tableofcontents
\newpage
\section{One}
\section{\color{red}Two}
\section{Three}
\end{document}
--8<------
I ran this through xelatex (texlive 2018 on windows 10-64) three times to get the toc right.

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

Is there a way to avoid that?


Regards

Hartmut

--
Siemens Mobility GmbH
SMO RS LMC EN LM CCI2 CCU DIAG
Siemenspromenade 5
91058 Erlangen, Germany
Phone: +49 (9131) 17-50518
Mobile: +49 (173) 5342327
mailto:hartmut.niemann at siemens.com
www.siemens.com
[Logo]
Siemens Mobility GmbH; Chairman of the Supervisory Board: Roland Busch; Management Board: Karl Blaim, Michael Peter; Registered office: Munich, Germany; Commercial registry Munich, HRB 237219; WEEE-Reg.-No. DE 92917817


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20220112/e5fba3f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2730 bytes
Desc: image001.gif
URL: <https://tug.org/pipermail/xetex/attachments/20220112/e5fba3f2/attachment.gif>


More information about the XeTeX mailing list.