3

At the end of a solution involving a mathematical equation, I like to place \blacksquare at the right hand side corner of the equation. I don't know how to do it. I enclose the code.. Kindly help me on this - thank you!

Thus, the system transfer function is given by
 $$
 G(s) = {X(s) \over U(s)} = {5 \over s^2 + 2 s + 3}   \blacksquare
 $$

2 Answers2

3

There are several possible packages. For example ntheorem.

\documentclass{article}
\usepackage{amsfonts,amsmath,amssymb}
\usepackage[thmmarks]{ntheorem}
{%
\theorembodyfont{\small}
\theoremsymbol{$\square$}
\newtheorem*{Proof}{A label you want}
}
\begin{document}
\begin{Proof}

$G(s) = {X(s) \over U(s)} = {5 \over s^2 + 2 s + 3}$ \end{Proof} \end{document}

enter image description here

pascal974
  • 4,652
2

There is now atendofenv package for this.

\documentclass{article}
\usepackage{atendofenv}
\usepackage{amssymb}
\AtEndOfEnv{equation}{$\square$}

\begin{document}

\begin{equation} G(s) = {X(s) \over U(s)} = {5 \over s^2 + 2 s + 3} \end{equation}

\end{document}

enter image description here

JeT
  • 3,020
  • 1
    Please be so kind and provide a MWE which use this package and show result of compilation. – Zarko Mar 10 '22 at 22:07