1

Here I faced the challenge to fix the drop shadow size. Default it comes into smaller shadow. But I want more shadow thickness. Please provide better solution to solve this.

MWE:

enter image description here

\documentclass{book}

\usepackage{lipsum}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{breakable}
\tcbuselibrary{hooks}%YOU MUST USE THIS FOR <extras last pre> KEY

\begin{document}

\newenvironment{shadowbox}{\par
\begin{tcolorbox}[drop shadow southeast,
enhanced,colback=red!5!white,colframe=red!75!black]
}{\end{tcolorbox}}

\begin{shadowbox}
Economic feasibility cost is oftentimes the determining factor if the organization will move forward with the proposed solution. Differentiating the cost-effectiveness of the proposed solution as it relates with short- and long-term business goals can best facilitate the negotiation. Can the solution be implemented in phases allowing the organization to allocate funding incrementally?

\end{shadowbox}

\end{document}
2

Shadows are configurable with the shadow option (see page 188 of the version 4.15 manual). By example:

shadow={4mm}{-3mm}{0mm}{black!50!white}

Code:

\documentclass{book}

\usepackage{lipsum}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{breakable}
\tcbuselibrary{hooks}%YOU MUST USE THIS FOR <extras last pre> KEY

\begin{document}

\newenvironment{shadowbox}{\par
\begin{tcolorbox}[shadow={4mm}{-3mm}{0mm}{black!50!white},
enhanced,colback=red!5!white,colframe=red!75!black]
}{\end{tcolorbox}}

\begin{shadowbox}
Economic feasibility cost is oftentimes the determining factor if the organization will move forward with the proposed solution. Differentiating the cost-effectiveness of the proposed solution as it relates with short- and long-term business goals can best facilitate the negotiation. Can the solution be implemented in phases allowing the organization to allocate funding incrementally?

\end{shadowbox}

\end{document}

capture

  • 1
    Thank you very much Andre, it's really fulfill my requirement! Happy new year :) – Rajesh Kumar Jan 2 at 13:17
  • Thank you very much, happy new year to you too :-) – AndréC Jan 2 at 14:38

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.