答案1
如果问题是能否让所有箱子的宽度相同,答案是可以的eqparbox
。
\documentclass{article}
\usepackage{amsmath}
\usepackage{eqparbox}
\newcommand{\Boxed}[2][A]{\fbox{\eqmakebox[#1][c]{$\mathstrut#2$}}}
\begin{document}
\[\begin{aligned}
\Boxed{\cos(30)}~x + \Boxed{-\cos(20)}~y &= \Boxed{0} \\
\Boxed{-\sin(30)}~x + \Boxed{\sin(20)}~y &= \Boxed{100} \\
\end{aligned}\]
\end{document}