如何才能實現以下目標:
我希望能夠在部分答案的最後插入一個符號。上圖中所有三個方塊都是我加的。 (它們並不完全對齊。)
微量元素:
\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);}}
如果您正在使用對齊環境