Imperative assignment (:=) symbol in LaTeX
In this tutorial, you will learn how to use the Imperative assignment symbol correctly in LaTeX.
In order to get the Imperative assignment symbol in LaTeX you can directly use the :=
in the source code, but in this case, the colon (:) will not be vertically centered with the equal symbol.
To overcome this problem you can use the \coloneqq
command provided by the mathtools
package. This command will give you a perfect output of this symbol.
\documentclass{article} \usepackage{mathtools} \begin{document} $$ := \text{vs} \coloneqq $$ \end{document}
Output:
Leave a Reply