In LaTeX typesetting, proper spacing after a period mark (.) is crucial for maintaining readability. Have you ever wondered how you reduce space after a period mark in LaTeX? Follow this guide to adjust the blank space after a period mark based on different scenarios.
Ending a Sentence with a Period Mark
A sentence typically ends with a period (full-stop) mark (.). The next sentence starts with a predefined gap after the period mark in LaTeX.
\documentclass{article}
\begin{document}
This is a sentence. The next one starts here.
\end{document}
Output
Period Mark within a Sentence
Issue: If a period mark is used within a sentence, LaTeX may interpret it as the end of a sentence, causing an excessive gap between words.
Solution: Reduce the gap using commands like \,
and ∼
without any surrounding blank space. Alternatively, use \
(backslash followed by a blank space). For example
\documentclass{article}
\begin{document}
Difference between different commands. \\
Mr. Haroon is our new faculty member at XYZ University.\\
Mr.\,Haroon is our new faculty member at XYZ University.\\
Mr.~Haroon is our new faculty member at XYZ University. \\
Mr.\ Haroon is our new faculty member at XYZ University.
\end{document}
Output
Note: If a right parenthesis follows a period mark, apply the \
command after the parenthesis. Otherwise, LaTeX may treat the combination of \ and parenthesis as a different command.
\documentclass{article}
\begin{document}
For example:\\
Packages (graphicx, hyperref, etc.) enhance document features in \LaTeX.\\
Packages (graphicx, hyperref, etc.)\ enhance document features in \LaTeX.
\end{document}
Output
Uppercase Letters Ending a Sentence
Scenario: When a sentence concludes with an uppercase letter, the following sentence begins with a smaller gap.
Solution: Use the \@
symbol between the uppercase letter and the subsequent period mark to maintain proper spacing.
\documentclass{article}
\begin{document}
For example:\\
These watches are made in UAE. These are designed as water-resistant.\\
These watches are made in UAE\@. These are designed as water-resistant.
\end{document}
Output
By following these guidelines, you can ensure consistent spacing after period marks in your LaTeX documents. Adjustments can be made to address specific cases and improve overall document presentation.