Periods and commas in mathematical writing - MathOverflow most recent 30 from http://mathoverflow.net2013-05-18T18:10:04Zhttp://mathoverflow.net/feeds/question/6675http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writingPeriods and commas in mathematical writingJose Capco2009-11-24T11:00:37Z2013-04-29T18:33:13Z
<p>I just realized that I am a barbarian when it comes to writing. But I am not entirely sure, so this might be the right place to ask. When typing display-mode formulae do you guys add a period after the formula ends a sentence? </p>
<p>Like:</p>
<blockquote>
<p>This is the formula for a circle <code>$$x^2 + y^2 = r^2.$$</code><br />
Therefore blabla...</p>
</blockquote>
<p>or </p>
<blockquote>
<p>This is the formula for a circle <code>$$x^2 + y^2 = r^2$$</code><br />
Therefore blabla...</p>
</blockquote>
<p>My supervisor has been complaining a lot that I don't use period and commas in my display-mode formulae. But I get uneasy doing that because it doesn't feel natural to me, I took a look at two books at random and both of them so far do the punctuation in their display formulae.. I know this is stupid of me and its amazing I have never noticed that.</p>
<p><strong>Edit:</strong> This would be a fantastic opportunity to see what people <em>actually</em> like as opposed to what they think they like. Everyone who has an opinion on what the punctuation should be should provide an illustrative example of such so that by the voting it can be seen what is actually preferred. If you do this, make your answer just the example (so provide any general homilies in another answer) so that the voting truly reflects the community view of the example.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6677#6677Answer by Aaron Bergman for Periods and commas in mathematical writingAaron Bergman2009-11-24T11:32:56Z2009-11-24T11:32:56Z<p>Yes, but I always use "\ ." or "\ ," to separate the punctuation from the formula.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6680#6680Answer by Andrew Stacey for Periods and commas in mathematical writingAndrew Stacey2009-11-24T12:21:06Z2009-11-24T12:21:06Z<p>The rule is: there is no rule.</p>
<p>Punctuation is intended to add clarity to a body of text. If punctuation after a formula does so, put it in. If it does not, leave it out. My <em>default</em> is to put it in on the principle that the mathematics expressions are part of the text and therefore subject to its rules. However, this can conflict with comprehension particularly where the punctuation can be mistaken for a part of the formula.</p>
<p>As a guideline, I would say that for short formulae, put it in (for example, in your example in your question) since the reader can read those quickly enough that they don't lose the thread of the text. However, the average reader cannot parse larger formulae so quickly and so will effectively stop reading in order to understand the mathematics, then start reading again afterwards. Thus the formula <em>itself</em> acts as a sort of punctuation mark and so does not need any further adornment.</p>
<p>Of course, there are always grey areas (even gray ones) and that's where you'll find the most vociferous eraser fights. But the zeroth law (or, if you prefer, Rule 42) is: the one that makes it clearest is the right choice.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6681#6681Answer by Jon Awbrey for Periods and commas in mathematical writingJon Awbrey2009-11-24T13:04:50Z2009-11-24T13:04:50Z<p>The problem is compounded by the following facts:</p>
<ul>
<li><p>There are different style sheets for different disciplines and even subdisciplines that use mathematics. For example, do you put a punctuation mark that happens to follow a quoted item inside or outside the quotation marks? Once upon a time, it was a universal rule, so far as I know, to put the punctuation inside, but computer folk began to depart from this convention due to the importance of exact quotation in formal languages and full-text searching.</p></li>
<li><p>Different implementations of TeX and its kin, by design or oversight, force different choices with respect to: $\operatorname{Blah}, \operatorname{Blah},$ on the one hand, and $\operatorname{Blah}, \operatorname{Blah}$, on the other hand, at least, if you want to avoid the risk of having a punctuation badly split to the next line every now and then.</p></li>
</ul>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6683#6683Answer by Mariano Suárez-Alvarez for Periods and commas in mathematical writingMariano Suárez-Alvarez2009-11-24T13:18:59Z2009-11-24T22:47:23Z<p>My meta-guide with respect to that is </p>
<blockquote>
<p><strong>Tautology 2.3.1</strong> — A mathematical text is, before everything else, a text.</p>
</blockquote>
<p>from Michèle Audin's <em>Conseils aux auteurs de textes mathématiques</em>, which you can get from her webpage.</p>
<p>A corollary is that when one writes a mathematical text one is writing <em>sentences</em>, to which all rules which apply to sentences of course apply. And, say, sentences end in a period.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6684#6684Answer by Richard Kent for Periods and commas in mathematical writingRichard Kent2009-11-24T13:27:11Z2009-11-24T13:27:11Z<p>Whichever rule you follow, the journal you send it to will want the opposite.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6699#6699Answer by Jason Polak for Periods and commas in mathematical writingJason Polak2009-11-24T15:38:10Z2009-11-24T15:38:10Z<p>This is something I've never paid attention to until graduate school, but virtually every book uses the convention that formulae in display mode are part of the text. Every Springer text for instance uses these conventions.</p>
<p>If we define the function $f:\mathbb{R}\rightarrow\mathbb{R}$ by</p>
<p>$$
f(x) = e^x,
$$</p>
<p>then we can place a comma after the definition to indicate a pause one might take if speaking such a sentence. We could also have defined the function by</p>
<p>$$
f(x) = \sin(x).
$$</p>
<p>As this last definition was the end of a sentence, it ought to have a period. Finally we could also have</p>
<p>$$
|f(x) - f(x_0)| < \varepsilon
$$</p>
<p>whenever $|x - x_0| < \delta$. Here, no punctuation was needed.</p>
<p>There are exceptions: Spanier's Algebraic Topology doesn't follow these conventions, but Hardy does, and all modern books that I've read do. Unless I pay attention, I don't even notice the punctuation.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6703#6703Answer by Simon for Periods and commas in mathematical writingSimon2009-11-24T16:42:49Z2009-11-25T17:09:53Z<p>A math paper should follow all the usual rules of grammar, so in particular there should be subjects and verbs and the sort of punctuation you'd expect to find in a piece of nontechnical writing. I would prefer to write the following:</p>
<p>The formula for a circle is $$ x^2+y^2=r^2. $$</p>
<p>If I had to use the wording in the original question, I would write</p>
<p>This is the formula for a circle: $$ x^2+y^2=r^2. $$</p>
<p>Occasionally, the aesthetics of the page make punctuation look awkward. For example, one might write:</p>
<p>Therefore, the following diagram commutes: </p>
<pre>
M×N -> M⊗<sub>R</sub>N
\ |
\ |
\ |
v v
A
</pre>
<p>with no punctuation after the diagram. There isn't any sensible location for a period at the end of a sentence, so I'd leave it out.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6739#6739Answer by Dan Piponi for Periods and commas in mathematical writingDan Piponi2009-11-24T22:17:26Z2009-11-24T22:17:26Z<p>Mathematics embeds in natural language inheriting the grammatical structure of its 'host'. So mathematical constructions (eg. sets) are nouns, relations (like $\le$, $\in$ and $=$) are verbs, properties are adjectives and quantifications like $\forall x$ are adverbial phrases. The usual rules of grammar of the host natural language, including punctuation rules, now extend naturally.</p>
<p>So, for example, the sentence after this one is a perfectly good self-contained sentence so it should end with a period. $(x+1)^2>x^2+2x$.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6756#6756Answer by Jonathan Wise for Periods and commas in mathematical writingJonathan Wise2009-11-25T02:55:56Z2009-11-25T07:21:26Z<p>Displayed formulas can serve two roles in a math paper: as abbreviations for text that would otherwise be unreadable, and as figures (or illustrations) that are referred to by the text but are not part of it grammatically. My opinion is that in the former case they should be punctuated, but in the latter they should not.</p>
<p>Here are some examples.</p>
<p>1) If $x$ and $y$ are points on a circle of radius $r$ then</p>
<p>$x^2 + y^2 = r^2$.</p>
<p>2) The points of a circle of radius $r$ satisfy the following equation.</p>
<p>$x^2 + y^2 = r^2$</p>
<p>3) The following diagram commutes.</p>
<p>(diagram without any punctuation)</p>
<p>I think these examples demonstrate the necessity of distinguishing the two roles a displayed equation can play. As Simon already pointed out above, there is no reasonable place to put a punctuation mark in a commutative diagram, presumably because a commutative diagram can't be read aloud. On the other hand, it's difficult to view the sentence in the first example as complete without a period at the end of the equation.</p>
<p>I suggest the following rule of thumb: if the formula can be removed from the text without breaking the flow of a sentence, then it does not need to punctuated. Otherwise, it should be punctuated as it would be if the symbols were expanded into words.</p>
<p><hr /></p>
<p>Many authors use a colon where I used a period in the second example and follow the equation with a period.</p>
<p>2') The points of a circle of radius $r$ satisfy the following equation:</p>
<p>$x^2 + y^2 = r^2$.</p>
<p>I don't consider this incorrect, but I do consider it a completely different sentence from 2).</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/6825#6825Answer by Allen Hatcher for Periods and commas in mathematical writingAllen Hatcher2009-11-25T16:24:17Z2009-11-25T16:24:17Z<p>My view on this seems to be contrary to most of the other opinions expressed here. I think periods and commas in display mode are so ugly that they should never be used. Display mode is something removed from text mode, in another dimension as it were, so vestiges of text mode like punctuation should never appear in display mode. </p>
<p>Granted this aesthetic judgment, what should one do instead? For a start, one can choose not to display things that don't really have to be displayed. As I see it, there are only two reasons for displaying something: Either it is too large and unwieldy to put in text mode, or it is a short formula that is so important that one wants to make it stand out on the page by displaying it. The latter situation should only occur rarely, otherwise the author seems to be constantly shouting, like writing half of one's message in ALL CAPS. Historically there may have been typographical reasons for displaying all math longer than a couple characters, but I don't think that's the case any more. As an illustration of this principle of avoiding unnecessary displays, I think the equation for a circle in the original post is something that could easily be put in text mode within the paragraph rather than in display mode. (Unless the equation for a circle was the main new result in your paper that you wanted to highlight, of course!)</p>
<p>So if one only displays things that really have to be displayed, the problem is somewhat ameliorated. For the large displays that remain, one can argue that their sheer size alone provides enough of a separation for the reader that putting punctuation after them is unnecessary. Certainly this is the case for commas in most situations. For periods a solution that might placate the purists is the following: If the sentence does not continue after the display, then warn the reader that this is happening by putting a colon right before the display. This might involve a slight rephrasing to make a colon fit in gracefully. In my own writing I have often ended a sentence with an unpunctuated display, with a clear conscience, but I may try using this colon rule more systematically in the future.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/11533#11533Answer by Charles Stewart for Periods and commas in mathematical writingCharles Stewart2010-01-12T13:18:45Z2010-01-12T13:18:45Z<p>Mathematics is part of a text in the same way that poetry might be part of a literary essay. When citing poetry, a set off (i.e., displayed as a quote) part of a verse almost universally keeps exactly the punctuation from the original and nothing more, with the exception of putting in ellipses to mark elided text <em>within</em> (i.e., not at the beginning or at the end) the excerpt.</p>
<p>Poetry is not exactly analogous to mathematics in this respect, since if punctuation was added, it would not be clear whether the additional punctuation were part of the original, and this is pretty crucial to the metre of the poem. But I think the analogy does show that it does not follow from "A mathematical text is, before everything else, a text." that we should add punctuation to mathematics that is set off.</p>
<p>There's a reasonable issue of taste here that is not settled by dogma. Publisher style nearly always trumps other considerations; if you have the luxury to choose, balance issues of consistency with your closer colleagues with practical issues of layout and your own sense of style.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/14900#14900Answer by Olivier for Periods and commas in mathematical writingOlivier2010-02-10T13:33:13Z2010-02-10T13:33:13Z<p>On a technical side, if you want to avoid cluttering your display formulas with punctuation in the LaTeX code, but still be able to show it inside the formula, take a look at this <a href="http://stackoverflow.com/questions/2235497/punctuation-in-latex-formulas/2235734#2235734" rel="nofollow">brilliant answer</a> by Alexey on stackoverflow.</p>
<p>You may even later disable the display of that punctuation if you think that it gets in the way (which is my point of view), look at the comments to the answer linked above.</p>
<p>For me this is the perfect solution: I can send a paper with punctuation for publishing, or compile it without punctuation for me, and I can always copy-paste the display formulas without having to remove that pesky punctuation.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/106461#106461Answer by Mustafa for Periods and commas in mathematical writingMustafa2012-09-05T22:06:34Z2012-09-05T22:06:34Z<p>I disagree with the convention to punctuate formulas. What does it bring to the reader, besides confusion? (one time, I confused a comma and a prime, and I wasted a lot of time). </p>
<p>The reader does not need punctuation after a formula anyway, because usually, he stops to understand it.</p>
<p>Math formulas already harbor a lot of indexes and signs, so adding punctuation does not help.</p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/106465#106465Answer by Gerry Myerson for Periods and commas in mathematical writingGerry Myerson2012-09-05T23:13:16Z2012-09-05T23:13:16Z<p>N. David Mermin wrote an article, What's wrong with these equations, Physics Today, October 1989, p.9, reprinted in his book, Boojums all the Way Through, in which he gave three rules concerning displayed equations in papers. </p>
<p>$\it Rule\ 3$ (Math is Prose Rule). The Math is Prose Rule simply says: $\it End\ A\ Displayed\ Equation\ with\ a\ Punctuation\ Mark$. </p>
<p>Mermin goes on to discuss this at some length. </p>
<p>If anyone is curious, Rule 1 is $\it Number\ All\ Displayed\ Equations$, and Rule 2 is $\it When\ Referring\ to\ an\ Equation\ Identify\ It\ by\ a\ Phrase\ as\ Well\ as\ a\ Number$. </p>
http://mathoverflow.net/questions/6675/periods-and-commas-in-mathematical-writing/129141#129141Answer by Rhett Butler for Periods and commas in mathematical writingRhett Butler2013-04-29T18:33:13Z2013-04-29T18:33:13Z<p>Plain text needs some punctuation. Otherwise it can easily appear confusing. But a displayed formula should be burnt into the brain of the reader as it is. Every additional punctuation is disturbing this aim. I think that the new paragraph starting below the formula is sufficient to mark an interruption if there is any.</p>