\boxed{}
environment worksfine between
\begin{equation}
and \end{equation}
. But if we do something like the following, I find errors.
Code: Select all
\begin{align}
\boxed{
x&=y+z\nonumber\\
y&=p^2+q^2\nonumber\\
z&=2pq
}
\end{align}
\boxed{}
environment works\begin{equation}
and \end{equation}
. But if we do something like the following, I find errors.
Code: Select all
\begin{align}
\boxed{
x&=y+z\nonumber\\
y&=p^2+q^2\nonumber\\
z&=2pq
}
\end{align}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{empheq}
\begin{document}
\begin{empheq}[box=\fbox]{align}
x &= y+z\nonumber\\
y &= p^2+q^2\nonumber\\
z &= 2pq
\end{empheq}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\newcommand{\boxalign}[2][0.97\textwidth]{
\par\noindent\tikzstyle{mybox} = [draw=black,inner sep=6pt]
\begin{center}\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{#1}{\vspace{-5mm}#2}\end{minipage}
};
\end{tikzpicture}\end{center}
}
\begin{document}
\boxalign{\begin{align}
x &= y+z\\
y &= p^2+q^2\\
z &= 2pq
\end{align}}
\boxalign[0.6\textwidth]{\begin{align}
x &= y+z\\
y &= p^2+q^2\\
z &= 2pq
\end{align}}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.