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 an elegant way of writing "iidN()" in LaTex, other than just writing it "iidN()"?

That is, is there a macro for "iid" and/or for normal distribution "N" symbols?

share|improve this question
Scrap that. I meant i.i.d. $X \sim \mathcal{N}(\mu,\sigma^2)$. – Jubobs May 9 '13 at 18:54
+1 Thank you again =) – jjepsuomi May 9 '13 at 19:01
up vote 5 down vote accepted

I'd recommend defining macros to reduce the number of keystrokes for i.i.d. and \mathcal N, if you use them a lot: this will.allow you to quickly type them out, and quickly change the way they're typeset if you decide to. For instance:


\iid~$X \sim \pN(\mu, \sigma^2)$

If you want to write i.i.d. without a nonbreaking space, I'd recommend \iid\ (note the space).

share|improve this answer
+1 Thank you for your answer! =) – jjepsuomi May 10 '13 at 6:26

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.