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 Inequalities at Order →

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 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