5

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

8

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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