I want to create a frame around a piece of math notation, I'm using the \boxed{} command to do that:
$$
\boxed{
\begin{align*}
&p = \text{Intervallverhältnis von 1 Cent} \\
&2 = \text{Intervallverhältnis der reinen Oktave} \\ \\
&p^{1200} = 2 \rightarrow p = \sqrt[1200]{2}
\end{align*}
}
$$
It looks exactly how I want it to look like in the compiled pdf, but overleaf.com outputs the following error message: Package amsmath error: erroneous nesting of equation structures. Where is the problem and why does it still work? Are there other or better ways of achieving a black frame around a piece of math notation (or any kind of text) easily? I'm very much a beginner. Thanks in advance :)
$$
in LaTeX. Your problem can be solved with theempheq
package.\\[<dimen>]
can give more control. But, when usingamsmath
, be sure to not insert a space between the\\
and the option.