I am using the following document class:
\documentclass[twocolumn]{svjour3}
Unfortunately, the two columns of output text just look horrible as they
are not properly aligned on the right-hand side of the text. I am just wondering
whether I can automatically tell LaTeX to align it nicely on the right-hand side
or if I have to manually tell LaTeX when to break a line as this is sometimes not
happening.
Best Answer
It is indeed possible to reproduce the described behavior with the
svjour3
document class for SPringer journals with the following minimal codeThe highlighting was added manually:
The reason this is occurring is that TeX was not able to meet all the rules for spacing as per the
Overfull \hbox
messages. One way to fix this is to add\sloppy
which relaxes the rules for inter word spacing. See the answers to Why is text being placed beyond the specified line width? for a more detailed explanation.which yields:
Alternatively, as Marco suggested, you could add
\usepackage{microtype}
to the preamble. See the microtype package documentation for more details.If you are not set on justified text, you can use
\raggeddright
, or\RaggedRight
from the ragged2e package.