Least Upper Bound in LaTeX (\text{lub})

lub\text{lub}
LaTeX command
\text{lub}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Abbreviation 'lub' for least upper bound, an older synonym of supremum common in order theory and lattices.

Textbooks on posets and lattices sometimes write \text{lub}\, S instead of \sup S, and the join a \vee b is the lub of a pair. Typesetting it with \text works, but it has two drawbacks: \text copies the surrounding font, so inside an italic theorem it turns italic, and it gives no operator spacing before the argument. The cleaner approach is \operatorname{lub} or a preamble line \DeclareMathOperator{\lub}{lub}, which keeps it upright and spaced like \sup. Use the starred declaration if you want subscripts placed underneath in displays.

Minimal compilable example

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

lub {x∈Q:x2<2}=2\text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2}
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Least Upper Bound: $\text{lub}$

\[ \text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2} \]
\end{document}

Related symbols

All Ongelijkheden & Ordening →

Frequently asked questions

How do I write Least Upper Bound in LaTeX?
Type \text{lub} in math mode, for example $\text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{lub}?
\text{lub} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{lub} in text mode, or only in math mode?
Both. \text{lub} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen