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

It is possible to write \frac 2 4 or \frac \pi 4 to get 2/4 and \pi/4, respectively.

However, it is not possible to write \frac \sqrt{2} 2 to get \sqrt{2}/2.

Are there consistent rules on how to write shorthand \frac?

share|improve this question
Note that this is nothing to do with \frac per se: you will see the same with almost any commands where you provide single tokens as mandatory arguments. – Joseph Wright Aug 8 '12 at 18:45
Enclose the \sqrt{2} with {} to make it a single token. – kiss my armpit Aug 8 '12 at 18:45
up vote 6 down vote accepted

The command \frac has two mandatory arguments. So you can they the first two tokens are the arguments (or simple the first two groups).

\frac \sqrt{2} 2 fails because \sqrt is the first token, {2} the second one.

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.