Friday, May 23, 2008

Make LaTeX emulate Microsoft Word paragraph spacing

This might be useful for someone who needs to make LaTeX behave like Microsoft Word in its paragraph spacing. You know, the one where the words are stretched to fill in the entire text line area. Well, to achieve that, you need to do the following

\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000


Hat tip to Donald Arseneau on this thread. Note that, it makes hyphenation of words very,very unlikely.