[Tex/LaTex] How to control the vertical height of boxes

boxesframedminipage

I would like to create boxes where I can control the height of the boxes. Right now I have used the command.

\colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}}

This gives me a box that stretches vertically how I want. Depending on the content of the box however the box vertical size is adjusted accordingly. Fractions for example will automatically make the box vertical height larger (as it needs to contain a fraction), while linear equations makes the height smaller

How can I solve this problem?

Best Answer

You can use the {minipage}[<vertical alignment>][<height>]{<width>} environment to specify the width of the content. Here <vertical alignment> should be top, bottom or centered. Just give a constant <height> for all your framed equations.

If you instead want to set the height or depth you can use \raisebox{0pt}[<height>][<depth>]{...}