When centering bold text in a tcolorbox
using [halign upper=center]
, additional horizontal spacing occurs when the package ragged2e
is loaded additionally.
I guess this is unintended behavior. – Is it possible to easily circumvent it?
\documentclass{scrartcl}
\usepackage{ragged2e}% <- comment this for normal functioning
\usepackage{tcolorbox}
\begin{document}
\begin{center}
\bfseries centered bold text
\end{center}
\begin{tcolorbox}
\bfseries centered bold text
\end{tcolorbox}
\begin{tcolorbox}[halign upper=center]
\bfseries centered bold text
\end{tcolorbox}
\end{document}
\@raggedtwoe@spaceskipfalse\@raggedtwoe@everyselectfont
as suggested there does not seem to help here.