Defined As in LaTeX (:=)

:=:=
LaTeX command
:=
Package
No package needed: built into LaTeX
Mode
Text and math mode

Where it is used

Colon-equals, the definition assignment: the left side is defined to equal the right side.

Writing f(x) := x^2 + 1 marks a definition rather than a claim of equality, and the colon sits on the side of the thing being defined (=: reverses the direction). Typed directly, the colon and equals sign are both relations, so TeX sets them without space between them, but the colon is not vertically centered on the equals sign, which bothers some typographers. The \coloneqq command from a math tools package fixes that alignment. In pseudocode it also denotes assignment, x := x + 1. Alternatives include \triangleq and \stackrel{\text{def}}{=}.

Also listed under: Computer Science

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∥f∥∞:=sup⁡x∈X∣f(x)∣\|f\|_{\infty} := \sup_{x \in X} |f(x)|
\documentclass{article}
\begin{document}
Defined As: $:=$

\[ \|f\|_{\infty} := \sup_{x \in X} |f(x)| \]
\end{document}

Related symbols

All Relations at Comparisons →

Frequently asked questions

How do I write Defined As in LaTeX?
Type := in math mode, for example $\|f\|_{\infty} := \sup_{x \in X} |f(x)|$. It works in plain LaTeX without loading any package.
Which package do I need for :=?
None. := is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use := in text mode, or only in math mode?
Both. := compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers