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 함수 및 사상 →

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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기