I would like to change the default color of a shadowbox to grey. How to do that with no problem of equation "style"/"management" inside the shadowbox ?

Thank you very much


1 Answer 1


Here's one possibility defining commands \Cshadowbox and \@Cshadowbox analogously to \shadowbox and \@shadowbox as implemented in fancybox.sty; the color can be changed using ShadowColor:



    \advance\dimen@ .5\fboxrule
      \color{ShadowColor}\vrule \@height\ht\@fancybox \@depth\dp\@fancybox \@width\dimen@}}%
      \color{ShadowColor}\hrule \@width\wd\@fancybox \@height\dimen@}}}









enter image description here

  • Is this possible to change the rule color for \ovalbox? Please suggest...
    – MadyYuvi
    Commented Jan 31, 2021 at 15:05

You must log in to answer this question.

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