Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
2  
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
add comment

1 Answer

up vote 4 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:

\newcommand\iid{i.i.d.}
\newcommand\pN{\mathcal{N}}

\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
add comment

Your Answer

 
discard

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.