Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I use the tcolorbox package with the KOMA-option parskip=half, I get the error Overfull \hbox every time I use a tcolorbox. This warning appears despite the fit warning=false option of the box.

Everything looks fine, so it's not a big issue, but it's really annoying and "real" warnings get lost between these ones in long documents.

MWE:

\documentclass[parskip=half]{scrartcl}

\usepackage{tcolorbox}

\begin{document}

\begin{tcolorbox}
    foo
\end{tcolorbox}

\end{document}

(fit warning=false is set by default.)

share|improve this question
    
The easiest remedy is not using the option. ;-) –  egreg Jun 30 at 17:53

1 Answer 1

parskip=half set a non-zero \parfillskip. You could use parskip=half- instead. Or set \parfillskip to 0pt before every tcolorbox:

\documentclass[parskip=half]{scrartcl}

\usepackage{tcolorbox}
\tcbuselibrary{hooks}

\begin{document}
\tcbset{before app=\parfillskip0pt}

\begin{tcolorbox}[]
    foo
\end{tcolorbox}


\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.