TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is in connection with How to typeset function restrictions

There, egreg gives a satisfactory answer (at least for me)

The problem is that I'd like to do the same thing with \restriction as delimiter instead of |, but somehow I can't figure out how to do that.

share|improve this question
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – adn Feb 9 '12 at 12:17
The problem is that the \restriction symbol doesn't come with larger variants. – egreg Feb 9 '12 at 12:49
I see. I actually don't care about the size (since usually it's the right size), but the spacing of restriction is just very bad - what could I do to change that? – ftonti Feb 9 '12 at 13:28
up vote 3 down vote accepted

You can say (requires amssymb, of course)


and the result will be as in the second line in the following picture, while the first line represents what you get now

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.