I use align a lot and have about a dozen equations in one begin/end align set. I'd like to put a single box around three consecutive equations of the dozen. How is that possible? I've found some solutions that come close, but they either have a single box around ALL equations or only one. I know I could break them up into multiple begin/end sequences so I could box an entire sequence, but then I'd lose the nice alignment among all of the equations.
https://tex.stackexchange.com/questions ... -equations
https://latex.org/forum/viewtopic.php?t=892
https://latex.org/forum/viewtopic.php?f ... box#p18671
Math & Science ⇒ single box multiple equations using align
NEW: TikZ book now 40% off at Amazon.com for a short time.
single box multiple equations using align
Here is a minimal example. I'd like a single box around the numbered equations (i.e. last four) but I don't want the comments in the box. Is there any way to do this?
Code: Select all
\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
L &= k_1 (\theta_B-\sin \theta_B) && \textsl{$x\!=\!L$; $\theta_B$ unknown} \nonumber \\
-h &= k_1 (1-\cos \theta_B) && \textsl{$y\!=\!-h$; $\theta_B$ unknown} \nonumber \\
\frac{-h}{L} &= \frac{1-\cos \theta_B}{\theta_B-\sin \theta_B} && \textsl{solve for $\theta_B$} \\
k_1 &= \frac{L}{\theta_B-\sin \theta_B} && \textsl{compute $k_1$} \\
x &= k_1 (\theta-\sin \theta) && \textsl{} \\
y &= k_1 (1-\cos \theta) && \textsl{}
\end{align}
\end{document}