129
$\begingroup$

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?

Like:

This is the formula for a circle $$x^2 + y^2 = r^2.$$
Therefore blabla...

or

This is the formula for a circle $$x^2 + y^2 = r^2$$
Therefore blabla...

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.

Edit: This would be a fantastic opportunity to see what people actually 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.

$\endgroup$
9
  • 81
    $\begingroup$ I would object to both variants :) Notice that if you read either one aloud (imagine yourself reading the text to someone on the phone, so that you cannot point to the equation), you do not find a sentence: IMO both should start with «The formula for the circle is». $\endgroup$ Commented Nov 24, 2009 at 13:29
  • 44
    $\begingroup$ @Mariano: or, since the focus is on punctuation, "This is the formula for a circle:". $\endgroup$ Commented Nov 24, 2009 at 13:34
  • 3
    $\begingroup$ Would anybody mind if this gets closed due to having aquired enough responses? $\endgroup$
    – user9072
    Commented Sep 5, 2012 at 22:23
  • 1
    $\begingroup$ When in doubt I usually look at a book by Steenrod or at Dunford and Schwartz who were very careful expositors. However, in this case I usually follow the following rule: read the formula aloud and think that it's written in words. Then it is just a "plain case" of English usage (Chicago Manual of Style). $\endgroup$ Commented Nov 19, 2013 at 12:06
  • 4
    $\begingroup$ I protected the question; if somebody disagrees please ping me. $\endgroup$
    – user9072
    Commented Sep 13, 2014 at 10:47

19 Answers 19

157
$\begingroup$

My meta-guide with respect to that is

Tautology 2.3.1 — A mathematical text is, before everything else, a text.

from Michèle Audin's Conseils aux auteurs de textes mathématiques, which you can get from her webpage.

A corollary is that when one writes a mathematical text one is writing sentences, to which all rules which apply to sentences of course apply. And, say, sentences end in a period.

$\endgroup$
8
  • 10
    $\begingroup$ -1: Good quote, bad argument. There are plenty of cases where it is justified to end full sentences without punctuation. $\endgroup$ Commented Jan 14, 2010 at 13:28
  • 41
    $\begingroup$ Charles, I certainly agree that there are sentences that end without periods. (Can you find one?) However, I am hard pressed to think of a case where we don't need any punctuation. Could you give an example? $\endgroup$
    – LSpice
    Commented Feb 25, 2010 at 16:57
  • 6
    $\begingroup$ @L Spice, I can think of at least one good reason for not ending this full sentence with any punctuation $\endgroup$ Commented Apr 29, 2013 at 19:15
  • 5
    $\begingroup$ @LSpice (missed your reply, so over 3ys later...) - The most important example: set-off or vertical lists (e.g., bullet points) - if you turn "There were three things in the basket: an old newspaper, a loaf of bread, and a rusty knife." into a Chicago-style vertical list (per CMoS 16th, 6.124), the only punctuation mark you will keep is the colon. I should not have downvoted Mariano's answer - the reasoning might be unsound, but it is commonly given and deserves to be documented. $\endgroup$ Commented Jan 16, 2014 at 10:12
  • 1
    $\begingroup$ @LSpice, @ did not work at that time :-) $\endgroup$ Commented Feb 4, 2014 at 21:26
85
$\begingroup$

Whichever rule you follow, the journal you send it to will want the opposite.

$\endgroup$
5
  • 17
    $\begingroup$ So the real answer is to define a LaTeX macro which will allow you to add or remove the punctuation according to the journal's house rules. $\endgroup$ Commented Nov 24, 2009 at 13:33
  • 14
    $\begingroup$ The journal's copy-editors will put it into house style. There's generally no need to try to approximate it yourself. It's just annoying when they take things like punctuation out after you fight with your coauthors to put it in... $\endgroup$ Commented Nov 24, 2009 at 13:46
  • 2
    $\begingroup$ I have never seen that, actually. I did once publish in a UK journal, and they changed my decimal points to commas. $\endgroup$ Commented Nov 25, 2009 at 18:01
  • 9
    $\begingroup$ I had a journal insert commas at every displayed equation that was not at the end of a sentence. Surely that is a bad rule! $\endgroup$ Commented Nov 25, 2009 at 18:31
  • $\begingroup$ @Gerald maybe they compiled the TeX with a language package that did that. $\endgroup$
    – Jose Capco
    Commented Nov 26, 2009 at 18:22
78
$\begingroup$

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.

If we define the function $f:\mathbb{R}\rightarrow\mathbb{R}$ by

$$ f(x) = e^x, $$

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

$$ f(x) = \sin(x). $$

As this last definition was the end of a sentence, it ought to have a period. Finally we could also have

$$ |f(x) - f(x_0)| < \varepsilon $$

whenever $|x - x_0| < \delta$. Here, no punctuation was needed.

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.

$\endgroup$
8
  • 7
    $\begingroup$ Commas don't indicate pauses. $\endgroup$ Commented Nov 24, 2009 at 16:07
  • 78
    $\begingroup$ Sometimes they do. There are times when there can be no argument - a comma is either right or wrong - and there are times when it's a stylistic choice. Here is a story (taken from Lynne Truss's "Eats, shoots and leaves") about a long battle between a New Yorker journalist, Thurber, and his editor, Ross, over the editor's insistence on commas. Thurber was asked by a correspondent: "Why did you have a comma in the sentence, `After dinner, the men went into the living room'?" His response: "This particular comma was Ross's way of giving the men time to push back their chairs and stand up." $\endgroup$
    – Joel Fine
    Commented Nov 24, 2009 at 23:01
  • 11
    $\begingroup$ I was never taught punctuation in english, but, in french, the comma following "After dinner" is there because you have used an inverted form of the sentence. The simple form of the sentence is "The men went into the living room after dinner." (no comma). Placing the complement at the beginning of the sentence is an inversion requiring a comma. English is rather unpunctuated compared to french (or at least in its usage). All I mean to point out is that in french (at least) most of the punctuation is not a matter of style, but rather a matter of rules. $\endgroup$
    – Rob Harron
    Commented Nov 24, 2009 at 23:24
  • 5
    $\begingroup$ There are, of course, many differences between punctuation in French and English, some of which I have been slowly learning since moving to Belgium! In English, however, there are certain situations when the decision to place a comma is up to the author or, more likely, the journal's house rules. Incidentally, if you want to learn more about punctuation in English I can recommend Lynne Truss's book. It's short and you'll pick up a lot (although her style becomes a bit annoying after a while). $\endgroup$
    – Joel Fine
    Commented Nov 24, 2009 at 23:42
  • 6
    $\begingroup$ In any case, (in English at least) a commas is always used to separate the clauses in an "if-then" sentence. $\endgroup$
    – mdeland
    Commented Jan 13, 2010 at 22:08
75
$\begingroup$

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.

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!)

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.

$\endgroup$
10
  • 17
    $\begingroup$ Agreed. I also don't like to use punctuation at the end of displayed formulas. Indeed LaTeX to me suggests that such a period or comma does not belong. The punctuation is certainly not part of the formula to be displayed and so doesn't belong inside the double dollar signs, and if you place it outside, then it goes to the next line! $\endgroup$ Commented Nov 26, 2009 at 2:13
  • 11
    $\begingroup$ Upvoted and concur: I do not use commas, semi-colons, or periods in displays. They are noise. I do make sure to begin the next line with a capitalized English word, so that it is clear that a new sentence has begun. $\endgroup$ Commented Sep 6, 2012 at 0:21
  • 20
    $\begingroup$ @Allan: But Knuth himself punctuates displayed formulas in his books. $\endgroup$
    – Algernon
    Commented Sep 6, 2012 at 6:39
  • 7
    $\begingroup$ This answer describes my feelings exactly. $\endgroup$
    – Olivier
    Commented Sep 6, 2012 at 12:10
  • 6
    $\begingroup$ Finally, someone who agrees with me! I've had this debate endlessly with many people. Periods, commas, and other punctuation in displayed formulas are distracting. It's not about whether we are writing something grammatically correct or not, because if it takes away from the clarity of the mathematics, it should be avoided. In my own field, most equations are so long and horrible that they need to be in display mode. Alas, to appease to publishers I have started putting in punctuation, but I hate doing so. I wish journals (in mathematics) were more lax on this. $\endgroup$ Commented Sep 6, 2012 at 13:42
24
$\begingroup$

Yes, but I always use "\ ." or "\ ," to separate the punctuation from the formula.

$\endgroup$
3
  • $\begingroup$ I use \qquad. Of course this is a matter of taste. $\endgroup$
    – user21349
    Commented Nov 25, 2013 at 16:19
  • 13
    $\begingroup$ No, if you put the punctuation there, never use spacing larger than \, (thinspace), otherwise the punctuation just "stands out". When it's nicely fit with the formula, you basically don't notice it's there. Which is goo, because: The good typography is such one that you don't notice it! $\endgroup$
    – yo'
    Commented Nov 27, 2013 at 19:31
  • 7
    $\begingroup$ I actually use "\,\text{.}" etc and made myself a macro for this. It actually looks different then "\,.". $\endgroup$ Commented Nov 29, 2013 at 7:45
24
$\begingroup$

The rule is: there is no rule.

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 default 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.

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 itself acts as a sort of punctuation mark and so does not need any further adornment.

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.

$\endgroup$
10
  • 8
    $\begingroup$ I'm wondering in what situations the punctuation could be mistaken for part of the formula. The only one I can think of is mistaking the factorial for an exclamation point at the end of a sentence. I'll admit I don't write factorials at the end of sentences for this reason. $\endgroup$ Commented Nov 24, 2009 at 13:55
  • 4
    $\begingroup$ Maybe I phrased it badly. It's not that the punctuation could reasonably be mistaken for part of the formula in that the formula would make sense if the punctuation were part of it, but rather that one has to do a double-take to realise that the punctuation is not part of the formula. If you've switched to "math mode" when parsing, then the punctuation doesn't parse and so jars, and so should not be there. If you haven't switched to "math mode" then the punctuation parses properly and isn't conciously noticed. $\endgroup$ Commented Nov 24, 2009 at 14:43
  • 13
    $\begingroup$ A sentence without a full stop always jars. $\endgroup$
    – HJRW
    Commented Nov 24, 2009 at 16:53
  • 6
    $\begingroup$ My point is that you've forgotten that it was a sentence because you've had to take so long to figure out the mathematics. Therefore it jars to be taken back into the flow before you are ready for it. $\endgroup$ Commented Nov 24, 2009 at 18:56
  • 11
    $\begingroup$ And my point is that if I'm reading a sentence and I don't eventually encounter a full stop then I get confused, regardless of the mathematics. If the mathematics is so complicated that it interrupts the flow of your sentence, then you shouldn't include it in the sentence. $\endgroup$
    – HJRW
    Commented Nov 24, 2009 at 20:44
23
$\begingroup$

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.

Here are some examples.

1) If $x$ and $y$ are the coordinates of a point on a circle of radius $r$ then

$x^2 + y^2 = r^2$.

2) The coordinates of a point of a circle of radius $r$ satisfy the following equation.

$x^2 + y^2 = r^2$

3) The following diagram commutes.

(diagram without any punctuation)

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.

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.


Many authors use a colon where I used a period in the second example and follow the equation with a period.

2') The coordinates of a point on circle of radius $r$ satisfy the following equation:

$x^2 + y^2 = r^2$.

I don't consider this incorrect, but I do consider it a completely different sentence from 2).

$\endgroup$
5
  • 5
    $\begingroup$ The problem with your situtation 2) is that it is completely wrong, in all senses. $\endgroup$
    – yo'
    Commented Nov 27, 2013 at 19:32
  • 1
    $\begingroup$ I assume you meant to indicate the truly egregious error in 1) (since corrected). I don't think it was relevant to the point I was trying to make. $\endgroup$ Commented Nov 28, 2013 at 23:16
  • 3
    $\begingroup$ No, nothing like that. Number two is simply wrong. Imagine someone says this: The president of the USA is. Barrack Obama (no full stop here) $\endgroup$
    – yo'
    Commented Nov 29, 2013 at 11:07
  • 14
    $\begingroup$ I disagree. Your example certainly is wrong, but it is also not parallel to mine. The following construction is. "The following is the name of the president of the USA." The distinction is whether the president's name (or the formula) functions as part of the sentence or not. $\endgroup$ Commented Nov 29, 2013 at 17:47
  • $\begingroup$ @JonathanWise But then, the second sentence with only "Barrack Obama." is an incomplete sentence. Probably fine if you want to have style as a writer but maybe problematic when it comes to articles where the goal is to convey ideas in a simple way. Some students tend to treat equations as floating objects like figures and tables, which does not facilitate the reading. $\endgroup$
    – pluton
    Commented Nov 10, 2023 at 18:37
10
$\begingroup$

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:

The formula for a circle is $$ x^2+y^2=r^2. $$

If I had to use the wording in the original question, I would write

This is the formula for a circle: $$ x^2+y^2=r^2. $$

Occasionally, the aesthetics of the page make punctuation look awkward. For example, one might write:

Therefore, the following diagram commutes:

M×N -> M⊗RN
   \    |
    \   |
     \  | 
      v v
       A

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.

$\endgroup$
8
  • 7
    $\begingroup$ In the latter situation, I'd follow Kingsley Amis's maxim: "Recast your sentence!" If there's no sensible place for the correct punctuation, then you have written a bad sentence. $\endgroup$
    – HJRW
    Commented Nov 24, 2009 at 16:57
  • 17
    $\begingroup$ @Henry: Usually that's good advice. But trying to work a commutative diagram, of all things, into the "flow" of a sentence is sort of ridiculous. Simply the amount of time it takes to parse even a simple commutative triangle or square, let alone "read it aloud" if such a thing is possible, indicates that diagrams don't work like ordinary sentence components. $\endgroup$ Commented Nov 24, 2009 at 17:04
  • 2
    $\begingroup$ @Sam, Sure. Actually, I think even trying to include commutative diagrams in sentences is doomed to failure. So I might have rephrased your example as: "Therefore, the following diagram commutes. <diagram> The diagram has no punctuation." Or something like that. $\endgroup$
    – HJRW
    Commented Nov 24, 2009 at 20:41
  • 10
    $\begingroup$ It is very common to make commutative diagrams part of a sentence. Look at page 60 of Categories for the Working Mathematician (Mac Lane) or page 202 of Sheaves in Geometry and Logic (Mac Lane and Moerdijk). They have many other examples of the form "therefore the diagram [diagram (set off)] commutes" and similar situations. You don't have to pronounce math to read it, although I am aware that some people think the opposite. At the board, I would pronounce a complicated formula or diagram as "this" (pointing at it). That is very common. $\endgroup$ Commented Nov 24, 2009 at 21:13
  • 2
    $\begingroup$ I'm surprised to not see more comments in this direction: I tend to recast sentences so that my formulae need no punctuation IF it appears confusing when I first type it; the only exception is that of Simon's last example -- namely, I feel it forgivable to end a sentence with no punctuation in the context of an offset formula following a colon. $\endgroup$
    – alekzander
    Commented Nov 24, 2009 at 23:55
9
$\begingroup$

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 brilliant answer by Alexey on stackoverflow.

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.

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.

$\endgroup$
1
  • 1
    $\begingroup$ This is indeed brilliant. Go Alexey, and thanks Olivier! $\endgroup$ Commented Feb 10, 2010 at 17:55
9
$\begingroup$

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).

The reader does not need punctuation after a formula anyway, because usually, he stops to understand it.

Math formulas already harbor a lot of indexes and signs, so adding punctuation does not help.

$\endgroup$
2
  • 4
    $\begingroup$ Punctuations have a purpose en.wikipedia.org/wiki/Punctuation : They add clarification to sentences which may be ambiguous. Not all sentences are unambiguous without punctuation, hence your claim "reader does not benefit from punctuation anyway" is incorrect. Of course, adding the English punctuation within the section allocated for Math text would not be ideal, see mathoverflow.net/a/180760/55932, but omitting them altogether for all cases is not a good solution. $\endgroup$
    – Pacerier
    Commented Sep 13, 2014 at 8:22
  • 4
    $\begingroup$ Wasting time with a prime is a popular activity in mathematics. $\endgroup$ Commented Aug 3, 2021 at 20:49
8
$\begingroup$

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.

$\it Rule\ 3$ (Math is Prose Rule). The Math is Prose Rule simply says: $$\it End\ A\ Displayed\ Equation\ with\ a\ Punctuation\ Mark . \tag{3} $$

Mermin goes on to discuss this at some length.

If anyone is curious, Rule 1 is $$\it Number\ All\ Displayed\ Equations , \tag{1} $$ and Rule 2 (the "Good Samaritan Rule") is $$\it When\ Referring\ to\ an\ Equation\ Identify\ It\ by\ a\ Phrase\ as\ Well\ as\ a\ Number . \tag{2} $$

$\endgroup$
4
  • 8
    $\begingroup$ A reprinted version of Mermin's essay can be read at cgiss.boisestate.edu/~billc/Writing/equations.pdf . I especially like the anti-simile in his reasoning: "...unlike dog turds on a lawn, the equations you display are embedded in your prose, and constitute an inseparable part of it." $\endgroup$ Commented Sep 5, 2012 at 23:37
  • 1
    $\begingroup$ Since we are talking about extra-mathematical issues, it may be appropriate to mention that one should display text in math mode not $$\it Like\ this$$ $$\it Like\ this$$ but rather $$\textit{Like this.}$$ $$\textit{Like this.}$$ (The difference is subtle in a comment box but very noticeable in the spacing and kerning in your post.) P.S. I don't know whether $$\text{\textit{Like this}}$$ and $$\textit{Like this.}$$ are identical; maybe one actually needs the former. $\endgroup$
    – LSpice
    Commented Feb 20, 2019 at 15:23
  • 1
    $\begingroup$ @BarryCipra's link has since rotted, but can still be found via the Wayback Machine: Mermin - What's wrong with these equations?. $\endgroup$
    – LSpice
    Commented Sep 28, 2023 at 19:16
  • 1
    $\begingroup$ Re, on further reading, if that is a faithful copy of what was printed in Petrophysics, then they bizarrely left out a chunk of a paragraph in the transition between pages 54 and 55. I found a copy of the original article posted at ai.mit.edu/courses/6.899/papers/mermin.pdf that seems to include the full text. $\endgroup$
    – LSpice
    Commented Sep 28, 2023 at 22:33
6
$\begingroup$

Note: pedantic typophile here, so don't mind the details.

First, the logic.

When sections of text of different languages [domains] are mixed, they can occur side-by-side as equals, or one section could be embedded within another [which is the typical case].

Language identification is pretty straightforward in most scenarios, eg:

The grammar of this very sentence is English, even if we embed right-to-left inline Arabic text like أبجد هوز within it.

Within the text أبجد هوز there should be no English punctuation nonsense. Not unless you happen to be re-embedding English text within the Arabic text, eg:

We can embed inline Arabic text which itself has embedded inline English text, eg قائلا أن Google Chrome is good هو الحق., within a main English text like how it's done in this very sentence.

Now consider instead of inline embedding, we do "block-level" embedding:

The grammar of this very sentence is English, even if we embed right-to-left "block-level" Arabic text like:

هذا نص على مستوى الكتلة الطويلة باللغة العربية. هذا نص على مستوى الكتلة الطويلة باللغة العربية.

..within it.

The outer English sentence may even contain no furthur text after embedding the block-level Arabic text, eg:

This very sentence ends with a block-level Arabic text, after this embedded text:

هذا نص على مستوى الكتلة الطويلة باللغة العربية. هذا نص على مستوى الكتلة الطويلة باللغة العربية.

And this very sentence is a new sentence after the embedded block-level Arabic text.

We can surmise that for English grammar, terminating punctuation marks are optional after block-level embeds (cf. 1) (cf. 2a) (cf. 2b) (cf. 3) (cf. 4) (cf. 5) (cf. 6) (cf. 7a) (cf. 7b) (cf. 8) (cf. 9) (cf. 10).

If an editor insists on having optional fullstops shown, eg:

Assume we have an editor who insists on having a fullstop after this block-level embed:

هذا نص على مستوى الكتلة الطويلة باللغة العربية. هذا نص على مستوى الكتلة الطويلة باللغة العربية.

. Said fullstop can be produced as desired, as seen right before this very sentence.

..readers will find it jarring because it's atypical for stray English punctuations to appear as the first text of the line as they would normally be kerned with the preceding text.

Hence, to make it appear less jarring to readers, we should too kern the fullstop with the preceding text [the block-level Arabic text], as such:

This very sentence has its fullstop kerned with the text before the fullstop [the block-level Arabic text]:

هذا نص على مستوى الكتلة الطويلة باللغة العربية.
                                                               .

Look carefully at the previous sentence before this very sentence. It ends with a fullstop which is kerned with the block-level Arabic text embed before it.

Also see "Widows and orphans".


Now, on to Maths text.

The concept we outlined for foreign text within English text applies regardless of the interacting languages. For block-level maths text embedded within English text, the syntax thus looks like:

enter image description here enter image description here enter image description here

Just as with the Arabic text, there are distinct non-overlapping areas allocated to the text of each language. There's no logical sense if the grapheme(s) of the outer language [English text] appears within the area allocated to the embedded language [Maths text]:

enter image description here

In fact, it is so senseless that a quick reader can't easily tell if the grapheme refers to a punctuation of the outer text [English], or if the grapheme is actually part of the embedded text [Maths] itself.

So, applying the concepts mentioned, we can either have a stray fullstop after the block-level embed:

enter image description here

..or we can kern the punctuation with the block-level embed preceding it:

enter image description here

..or we can go without the fullstops altogether (My preferred solution.). With the context of the text, and the capitalization of the next English sentence right after the Maths text, ambiguity is almost non-existent:

Consider this text:

$$x^2 + y^2 = r^2$$


Even if the reader does not see a fullstop after the Maths text, it's obvious that this very sentence is a full standalone sentence and the embedded Maths text is not part of this sentence.

..and:

Consider this text:

$$x^2 + y^2 = r^2$$


..which is a basic equation. Since the English text after the Maths text begins with a two-dot ellipsis, it's obvious to the reader that the English text which continues after the Maths text belongs to the same sentence as the Maths text.

The end.


More on MathJax.

You can produce punctuation kerning in Stackexchange posts using a combination of vertical spacing [<br>] and horizontal spacing [&nbsp;].

It's possible to use pure-MathJax to achieve punctuation kerning on StackExchange posts. Sample code:

$$
\color{transparent}{
\quad\text{.}
}
\begin{align}x^2 + y^2 = r^2
&
\\
&\quad\text{.}
\end{align}
$$

..which outputs:

$$ \color{transparent}{ \quad\text{.} } \begin{align}x^2 + y^2 = r^2 & \\ &\quad\text{.} \end{align} $$

..(And here's a screenshot:

enter image description here

..) but the font of the "fullstop" produced by MathJax is not the same as the font of the fullstop produced by normal English text.

Another issue is there is no control over pixel-perfect vertical-spacing as the vertical spacing using MathJax's align is a multiple of 24px [0px, 24px, 48px, etc].

$\endgroup$
18
  • 5
    $\begingroup$ May the downvoter explain why? $\endgroup$
    – Pacerier
    Commented Sep 13, 2014 at 10:39
  • 4
    $\begingroup$ It wasn't me, but you do make some serious pronouncements (eg "for English grammar, punctuation marks are optional after block-level embeds") without any apparent justification. You also don't follow the basic rule that colons separate clauses, which perhaps undermines your case with those of us who still think that they should. $\endgroup$
    – HJRW
    Commented Mar 23, 2017 at 11:06
  • 2
    $\begingroup$ I've added 9 links to the claim. As for non-applicability of "colons separate clauses" for colon usage before lists, see ex 1a, ex 1b, ex 2a, ex 2b, ex 2c, ex 3a, ex 3b, ex 4. $\endgroup$
    – Pacerier
    Commented Mar 23, 2017 at 11:45
  • 4
    $\begingroup$ I'm glad that you, the writer, are satisfied that your sentence is OK. I, the reader, found it confusing. I've explained why -- the grammatical role performed by the equation is unclear. If you're happy to write sentences that confuse your readers, then you're doing fine; if not, then you should think again. $\endgroup$
    – HJRW
    Commented Mar 25, 2017 at 15:00
  • 3
    $\begingroup$ I'm very confused by your use of ".." at the beginning of a line. I understand the single period at the beginning of the line after the block quote, as in your example that begins "Assume we have an editor..." (though I would strongly discourage this, on aesthetic grounds!), but I've never known a "two-dot ellipsis" to be grammatical. $\endgroup$ Commented Sep 16, 2017 at 20:00
3
$\begingroup$

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 within (i.e., not at the beginning or at the end) the excerpt.

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.

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.

$\endgroup$
3
$\begingroup$

Any punctuation should aid the reader. Don't get me started on the `Oxford comma'.

$\endgroup$
0
2
$\begingroup$

The problem is compounded by the following facts:

  • 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.

  • 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.

$\endgroup$
6
  • 3
    $\begingroup$ For your first point, there is a difference between British and American style (en.wikipedia.org/wiki/…). $\endgroup$ Commented Nov 24, 2009 at 16:42
  • $\begingroup$ Sure, even within the U.S. there are variations between journal and journalistic style with respect to every jot and tilde down to serial commas. Here's a fun blog to read if you like that sort of thing — johnemcintyre.blogspot.com $\endgroup$
    – Jon Awbrey
    Commented Nov 24, 2009 at 21:25
  • 2
    $\begingroup$ "Every jot and tilde" ... I like that variant, especially for mathematical text. $\endgroup$ Commented Jan 12, 2010 at 14:51
  • 1
    $\begingroup$ A pleasant aspect of English is that there are not so many clear rules. Although from the US, I long ago started punctuating quotations in what is apparently the British style, because to me it seemed more sensible. When I learned Spanish, I discovered that one does not have this flexibility in Spanish. There is a correct way to write and spell, ordained by some official academy. Something that muddies mathematical writing is that the writers are mostly not native English speakers, and bring to their writing notions typical of their own native languages, but quality copy-editing is not common. $\endgroup$
    – Dan Fox
    Commented Sep 6, 2012 at 7:47
  • 1
    $\begingroup$ "Tilde" does come from "Medieval Latin titulus tittle" according to m-w.com; but this "jot" is not the usual "to write briefly or hurriedly" but a variant of "iota". So, "every $\iota$ and tilde"? $\endgroup$ Commented Apr 29, 2013 at 20:27
1
$\begingroup$

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.

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$.

$\endgroup$
3
  • 20
    $\begingroup$ I can be sure that there would be very few disagreements that it is bad form to start a sentence with a mathematical statement. $\endgroup$
    – alekzander
    Commented Nov 24, 2009 at 23:52
  • 14
    $\begingroup$ Serre (and many other mathematicians I know) would say that one should not use relations or equations as verbs or something containing a verb. $\endgroup$
    – Jose Capco
    Commented Nov 25, 2009 at 1:18
  • 2
    $\begingroup$ @JoseCapco Serre also said once that "with." is an abbreviation of "without". $\endgroup$
    – Z. M
    Commented Aug 3, 2021 at 21:58
1
$\begingroup$

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.

$\endgroup$
1
$\begingroup$

I follow the rules of English grammar, except when LaTeX makes it look weird. For example, I think the period looks awful here: $$\frac{\sum_{i=0}^n f(n)}{q} = \left[\frac{N_{r_i}}{M+\int g \,d\mu}\right]_H.$$

$\endgroup$
3
  • $\begingroup$ This point was already made in: mathoverflow.net/a/6703/11540 $\endgroup$ Commented Apr 20 at 0:49
  • $\begingroup$ @DavidWhite I think my point is different. It’s not only cases when “there isn't any sensible location for a period” but also when maybe there is, but default TeX makes a poor choice. $\endgroup$ Commented Apr 20 at 12:51
  • $\begingroup$ Ok. Still, I think the advice in the comments of the linked answer is worth mentioning, which is that one could rewrite the sentence so that this expression is not at the end of it, but rather has a few words after, allowing for punctuation. $\endgroup$ Commented Apr 20 at 12:54
0
$\begingroup$

The reason for including the punctuation is that text with math in it is still text, and the math is usually (not always) a grammatically functioning part of the text. The reason for leaving it out is that it looks ugly because we're juxtaposing elements of two writing systems in which symbols have completely different meanings. Either possibility can be jarring to the reader.

A good way to deal with these problems is to leave some white space between the equation and the punctuation.

The Pythagorean theorem, $$ A^2+B^2=C^2 \qquad , $$ has been known since ancient times.

The comma doesn't cling to the equation like an alien parasite, so I find the effect less jarring as a reader. In LaTeX, I use a \qquad for this.

In my personal style, I also sometimes end a sentence with a displayed equation set off by a colon, without a period after the equation.

Thus from Euclid's five postulates we have arrived at our final result, known as the Pythagorean theorem: $$ A^2+B^2=C^2 $$

The colon acts like a signal on the tracks that tells the train conductor we're nearing the end of the sentence. The construction of the sentence reinforces the reader's subconscious expectation that the sentence will not continue after the equation. Grammatically, the equation does not function as any part of speech. The style is similar to what one would use in introducing a diagram that was in-line in the body of the text and had no caption or figure number. For example, in an article about knots, you might have many little drawings of knots sprinkled throughout the text. Other possibilities would be to put a period after the equation, or to replace the colon with a period. The disadvantage of replacing the colon with a period is that we lose the glue between the sentence and the equation it's referring to.

$\endgroup$
3
  • 18
    $\begingroup$ I find the white space + comma quite jarring. $\endgroup$ Commented Sep 13, 2014 at 15:43
  • $\begingroup$ I would use punctuation, but only if needed. In the first example the commas don't really seem necessary. Indeed, their role should be to isolate the aside, but the display math mode already creates enough room. I would put the commas if the formula was in the text. $\endgroup$ Commented Aug 4, 2021 at 8:42
  • $\begingroup$ I also don't enjoy the space+comma. This tells to me again and again that this is more a matter of taste rather than a strict grammer rule. $\endgroup$
    – Jose Capco
    Commented Aug 11, 2021 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .