Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
1  
Could you create a full example where we can reproduce the problem? – Paŭlo Ebermann Oct 19 '11 at 15:30
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Oct 19 '11 at 16:58
4  
In the minimal example \documentclass[twocolumn]{svjour3}\usepackage{lipsum}\begin{document}\lipsum[1-‌​9]\end{document} the alignment in the columns are justified. I'm using this version of svjour3. Are your alignment issues dealing with poor hyphenation? – Werner Oct 19 '11 at 16:59

migrated from stackoverflow.com Oct 19 '11 at 16:46

1 Answer

It is indeed possible to reproduce the described behavior with the svjour3 document class for SPringer journals with the following minimal code

\documentclass[twocolumn]{svjour3}
\usepackage{lipsum}
\begin{document}
\lipsum[1-14]
\end{document}

The highlighting was added manually:

enter image description here

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.

\documentclass[twocolumn]{svjour3}
\usepackage{lipsum}
\begin{document}\sloppy
\lipsum[1-14]
\end{document}

which yields:

enter image description here

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.

share|improve this answer
You can also use the package microtype. – Marco Daniel Oct 21 '11 at 20:41
@MarcoDaniel: I think that is a better solution. Perhaps you should add that as an answer. – Peter Grill Oct 21 '11 at 20:51
1  
You can edit your answer. It isn't a competition here ;-) – Marco Daniel Oct 22 '11 at 6:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.