# [Tex/LaTex] Justifying text and removing unwanted space

spacing

Using LaTeX text justification, sometimes the output tend to have more space in order to be justified from right and left as shown in the following picture. Between the Dr. and Lloyd is more space than required. How can I avoid this.

When LaTeX recognizes a colon after a small letter which is followed by a capital letter, LaTeX interprets this as the end of a sentence and thus as a period. In this case, the space between colon/period and the following word becomes bigger and can become ugly for justified texts. As recommended in this answer, you should tell LaTeX that this colon is not ending the sentence by typing Dr.\ Lloyd.

% arara: pdflatex

\documentclass{article}
\usepackage{ragged2e}
\usepackage{blindtext}

\begin{document}
{\justifying\scriptsize I would like to extend my gratitude to Computer Suport Group and specially Dr. Lloyd \blindtext}

{\justifying\scriptsize I would like to extend my gratitude to Computer Suport Group and specially Dr.\ Lloyd \blindtext}
\end{document}


It has been asked in comment, if this behaviour persists for other babel-variants of the English language. I have tested the below MWE and got the same result for all combinations I have tested so far.

% arara: pdflatex

\documentclass{article}
\usepackage[%
,british
,UKenglish
,USenglish
,english
,american
]{babel}

\begin{document}
\noindent Dr. Lloyd\\
Dr.\ Lloyd
\end{document}