Restriction in LaTeX (f|_A)

f∣Af|_A
LaTeX command
f|_A
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Restriction of f to a subset A, keeping the rule but shrinking the domain.

The restriction f|_A keeps the rule but shrinks the domain, so f|_A\colon A \to B. A plain bar is short and the subscript can look detached from it; many authors write f\big|_A for a taller bar, or use the \restriction arrow, which looks like a half-harpoon. Do not confuse this with an evaluation bar, F(x)\big|_a^b, which uses the same shape for a different purpose. Restrictions are common in topology, where continuity of f|_U on open sets is checked, and in sheaf theory, where s|_U restricts a section to a smaller open set.

Minimal compilable example

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

f∣A ⁣:A→Bf|_A\colon A \to B
\documentclass{article}
\begin{document}
Restriction: $f|_A$

\[ f|_A\colon A \to B \]
\end{document}

Related symbols

All Functies & Afbeeldingen →

Frequently asked questions

How do I write Restriction in LaTeX?
Type f|_A in math mode, for example $f|_A\colon A \to B$. It works in plain LaTeX without loading any package.
Which package do I need for f|_A?
None. f|_A is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use f|_A in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $f|_A$ in running text.
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