如何才能实现以下:
我希望能够在部分答案的末尾插入一个符号。上图中的三个方块都是我添加的。(它们没有完全对齐。)
梅威瑟:
\documentclass[12pt,oneside]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{eqnarray}
v = v_0 + a \Delta t\\
\Delta s = \frac{1}{2}(v_0 + v_1)t
\end{eqnarray}
Substituting (1) in (2) gives:
\[\Delta s = v_0 + \frac{1}{2}a (\Delta t)^2\]
Eliminating $v_0$ gives:
\[\Delta s = v_1 - \frac{1}{2}a (\Delta t)^2\]
Finally, eliminating $t$ from (1) and (2) gives:
\[v_{1}^{2} - v_{0}^{2} = 2a\Delta s\]
\end{document}
答案1
\usepackage{amsmath}
\begin{align}
....\tag*{$\square$}\\
...\notag\\
....\tag*{$\square$}
\end{align}
答案2
要画正方形,请参考此答案:如何在 LaTeX 中绘制一个边长为 1cm 的正方形并填充颜色?
要将其与最后一行对齐,请将正方形作为标签添加到该行,即\tag{\tikz{\path[draw=red,fill=blue] (0,0) rectangle (1cm,1cm);}}
如果您使用对齐环境