[Tex/LaTex] How to adjust the box around the equation

boxesequations

I currently use the \boxed{} command to place boxes around my equations. However, I would like to have more control of the style of the box. Is there a way to do this?

To take a specific example, the figure below shows both the standard \boxed{} out put (a) and the desired mock-up (b), where I have increased the box size and increased the border thickness slightly.

enter image description here

Best Answer

Someone is going to suggest a tikz box with multicoloured translucent rounded corners, but before they do I'll observe that \boxed is a thin wrapper around \fbox so you can use

\setlength\fboxsep{...}

to set the padding inside the box and

\setlength\fboxrule{...}

to set the line thickness.