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 Ketaksamaan & Tertib →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan