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

Is there any standards for when math is supposed to be upright?


The f in f(x) is in italics but cos in \cos x is upright. As I see it, both are functions?

\int f(x) \, dx OR \int f(x) \, mathrm{d}x?

P(Y=y) OR \text{P}(Y=y) OR p(Y=y) OR \text{p}(Y=y) for probabilities?

share|improve this question
Some cases are guideline-dependent, for example the 'd' in 'dx' is upright following ISO, but italic following the traditions of pure maths typography. – Joseph Wright Nov 15 '11 at 10:53
related question: tex.stackexchange.com/questions/33120/… – matth Nov 15 '11 at 12:07
up vote 8 down vote accepted

Look at the guidelines for mathematical journals for advice. For example, the AMS guidelines and APS guidelines.

In general, anything considered an abbreviation (sin for sine etc.) should be upright. In the case of differentials, it matters what kind a lot.

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.