6

How to rotate a tcolorbox with shadow? I tried tikz={rotate=15} but as you can see on the bottom of the image, this gives not the desired result.

\documentclass{beamer}

\usepackage{tcolorbox}
\tcbuselibrary{skins}

\begin{document}

    \begin{frame}

        \begin{tcolorbox}[enhanced,width=16.6cm,drop large lifted shadow, width=5cm,tikz={rotate=15}]%
            test
        \end{tcolorbox}

    \end{frame}

\end{document}

enter image description here

1 Answer 1

9

Use transform shape:

\documentclass{beamer}

\usepackage{tcolorbox}
\tcbuselibrary{skins}

\begin{document}

    \begin{frame}

        \begin{tcolorbox}[enhanced,width=16.6cm,drop large lifted shadow, width=5cm,tikz={rotate=15,transform shape}]%
            test
        \end{tcolorbox}

    \end{frame}

\end{document}

The output:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .