[XeTeX] Bug with color \specials?

Akira Kakuto kakuto at fuk.kindai.ac.jp
Tue Jun 24 16:30:41 CEST 2014


Dear Ulrike,

> I can avoid the problem by redefining this two commands of a current
> pgfsys-dvipdfmx.def:

Thanks. I find it is  also ok with

\documentclass[]{article}
\usepackage{lipsum}
\usepackage{tcolorbox}
%
\tcbuselibrary{breakable}

\makeatletter
\def\pgfsys at dvipdfmx@suspendcontent{%
  \special{pdf: bcontent}%
  \special{pdf:code q -1 0 0 -1 0 0 cm q}%
  \special{pdf: econtent}%
  \special{pdf: bcontent}%
  \special{pdf:code -1 0 0 -1 0 0 cm}%
  \special{pdf:code q}% translate to original system
}

\def\pgfsys at dvipdfmx@unsuspendcontent{%
  \special{pdf:code Q Q Q}%
  \special{pdf: econtent}%
}
\makeatother


%
\begin{document}
%
\rule{0.4pt}{17cm}
%
\begin{tcolorbox}[breakable]
\lipsum[1]
\end{tcolorbox}%
\lipsum
\end{document}


though I don't understand them.

Best,
Akira




More information about the XeTeX mailing list