While writing a paper, a sentence in the middle of a paragraph was ending with "as seen in table \ref{table-foo}.", in this case the table number was 1. The PDF ended up with the word table ending a line and "1. Here comes the next sentence bla bla" on the next. That is, the PDF looks like this:
bla bla bla bla as seen in table
1. Bla bla bla bla.
I'm happy with LaTeX overall, but I really thought its default rules would prevent such an occurrence (I previously another question along the same line, but a different case: Widow word on a page? I thought LaTeX wouldn't do that). I'm also baffled because compressing a line so there's room for an extra "1." shouldn't be a problem.
I can fix this particular problem by using ~ instead of a space, but this is not a good solution (text edits will change the possible place of occurrence).
Is there a declarative way to avoid such cases? To re-emphasize, this was happening inside a paragraph, so it's not a widow/orphan case.
The relevant packages I used are given below. What was invoked was: "pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=pdflatex 2010.9.21)" from within WinEDT with the default settings.
\documentclass[12pt,titlepage]{article}
% page margins
\usepackage[letterpaper]{geometry}
\geometry{top=1.0in, bottom=1.0in, left=1.1in, right=1.0in}
%set line spacing of document
\usepackage{setspace}
\setstretch{1.6}
% typographical improvements
\usepackage[final,babel]{microtype}
\frenchspacing