I want to write a 'restricted map' (a map which is equal to another map but with a smaller domain), we show it by drawing a vertical line and a subscript but I don't know if it has a specific method when we use TeX, the method I used so far is
$f|_P:A\longrightarrow B$
or
$\nu|_P:A\longrightarrow B$
Which doesn't have a very beautiful result. If anyone knows the standard method of writing restricted maps I will be thankful to hear it.
\newcommand{\restr}[1]{|_{#1}}and use$f\restr{P}\colon A\rightarrow B$, so you're free to change the realization of the restriction symbol without chasing for it in the document. Note that\rightarrowis usually better than\longrightarrow: less space and same meaning. – egreg Dec 02 '14 at 18:30:should be\colon, as in egreg's comment. – Przemysław Scherwentke Dec 02 '14 at 19:03\RestrictedToor\RestrictTo, yes more typing, but yoiu (and coauthors) will know what it means when you come back to the manuscript after a few months. – daleif Dec 02 '14 at 19:06