In LaTeX, what is the default space that is inserted after a period .
inside a block of text? What if I press enter
(to start a new line in my GUI) after the period?
Is it any different in the memoir
class? Is there any way to change the default spacing?
\documentclass{memoir}
\begin{document}
This is my text block. I pressed spacebar twice before this sentence.
This is my text block. I pressed spacebar once before this sentence, but the spacing is the same.
This is my text block.
I pressed enter once before this sentence, and now the spacing is different.
\end{document}
Best Answer
Spaces are generally ignored by TeX, so it doesn't matter if you put one, two or even ten spaces after a sentence. TeX standardly puts more than an single space after punctuation. You can turn this off using the
\frenchspacing
command:The space that TeX inserts is actually a stretchable space, and so the spacing between the punctuation mark and the following word will depend partially on the rest of the line. It doesn't depend on how you enter your source. So in the example you post, you can make the spacing the same if the text is exactly the same:
Notice that in this example the space after the
.
is different in the first sentence, since the first sentence contains "twice" and the other sentences in the examples contain "once". This small difference is enough to affect the spacing.