Version 1 (extras):
The maybe shortest solution is to take advantage of the new extras
options from tcolorbox 3.70 (2015/07/16)
or newer. These allow to place options for different parts of a break sequence. Here, we need extras unbroken or last
:
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{mwe}
\tcbuselibrary{breakable,skins}
\begin{document}
\begin{tcolorbox}[breakable,
extras unbroken and last={drop lifted shadow},
skin=enhancedlast ]
\lipsum[1-5]
\end{tcolorbox}
\end{document}
Version 2 (skins):
Here's another alternative. In any case, a change of the skin is the way to a solution. If the main skin is enhancedlast
, the break sequence will be enhancedmiddle
(first), enhancedmiddle
(middle), enhancedlast
(last).
Using the subskin feature, I take this standard sequence and add the appropriate shadow options. This gives:
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{mwe}
\tcbuselibrary{breakable,skins}
\begin{document}
\begin{tcolorbox}[breakable,drop lifted shadow,
skin=enhancedlast,
skin first is subskin of={enhancedmiddle}{no shadow},
skin middle is subskin of={enhancedmiddle}{no shadow},
skin last is subskin of={enhancedlast}{drop lifted shadow} ]
\lipsum[1-5]
\end{tcolorbox}
\end{document}
