I am attempting to set a box around multiline equations is LaTeX using the following code:
\documentclass{article}
\usepackage{empheq}
\newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}}
\begin{document}
\begin{subequations}
\begin{empheq}[box=\widefbox]{align}
z &= a + b + c + d + e + f + g + h + i + j + k \\
&\qquad\qquad + l + m + n + o + p + q + r + s \\
&\qquad\qquad + t + u + v + w + x + y
\end{empheq}
\end{subequations}
\end{document}
The problem is that the equations are automatically labelled (1a), (1b), and (1c). Since this is only one equation, how can I label the whole box simply as (1)?
align
is defined byamsmath
, which you don't mention. you can usesplit
instead ofalign
to get only one equation number. also, i'm not sure why you needsubequations
since there's only one. – barbara beeton Oct 10 '13 at 16:39subequations
(see tex.stackexchange.com/questions/109900/…). – Doubt Oct 10 '13 at 18:03empheq
package loads theamsmath
package (and itssubequations
andalign
environments). – Mico Oct 10 '13 at 18:21empheq
enough to know that. thanks. – barbara beeton Oct 10 '13 at 19:14