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.

My document will contain a lot of equations, and as usual in that case I would like to use "punctuation" in the equations, like commas, colons, periods/full stops, semicolons, etc.

Is there a special way to correctly do that? Now I just type these characters at the end of the equations, but as it's in math mode maybe there is a better way that improve the spacing, etc.

I also read about \colon, \ldotp. What do they do that the normal "characters" don't?

share|improve this question
1  
\colon changes the spacing for use in defining a function: f \colon A \to B, it would look funny if used as a colon serving its normal text purpose. –  Seamus Feb 23 '11 at 12:16

1 Answer 1

up vote 8 down vote accepted

No, you can key in the punctuations marks as usual. As Seamus writes in his comment, macros like \colon are for punctuation marks that are being used as mathematical relations rather than punctuation.

Sentence punctuation should not appear inside of inline mathematics. For displayed mathematics, I think it's safe to say it's a matter of style. See "For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar?" I'm in the camp of no sentence punctuation in display math; it's just distracting. De gustibus non est disputandum.

So for example:

If $a$ and $b$ are the lengths of the legs of a right triangle 
and $c$ is the length of the hypotenuse, then $a^2 + b^2 = c^2$, or:
\[
   c = \sqrt{a^2 + b^2}
\]
This amazing relation is known as the \textbf{Pythagorean Theorem}.
share|improve this answer
    
I agree it is a matter of style, but I'm a bit more on the other side :p Anyway I just have to use normal punctuation marks in that case. Is there something special to do with the spacing ? Like \,; to force a larger spacing ? –  Cedric H. Feb 23 '11 at 13:14
1  
@Cedric H.: If you wouldn't put spacing after a word before a semicolon, why would you put it after an equation? Just my opinion. –  Matthew Leingang Feb 23 '11 at 13:16
    
@Matthew Leingang: Good point :p –  Cedric H. Feb 23 '11 at 13:33
1  
@Mathew Leingang: in some land (Switzerland for example) you must put a thinspace before a semicolon. So the question stays. –  Matsaya Feb 23 '11 at 16:50
1  
@Matsaya: Interesting. Then let me broaden to say I think it should be the same with (inline) equations as it is with natural language sentences. –  Matthew Leingang Feb 23 '11 at 18:27

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.