GeneralCitation overfull hbox error

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
RexMundi
Posts: 7
Joined: Sat Nov 29, 2008 6:42 am

Citation overfull hbox error

Post by RexMundi »

Hi, i've been using LaTeX for about a year now but I'm still relatively new to this awesome typesetting environment.

I have a problem with in-text citations. Sometimes I need to cite several authors at once using \citep and the natbib package. The problem occurs when the text is justified which causes sometimes the citation to break the text margin on the right. It looks horrible and I dont understand why LaTeX can't fix this itself by just moving the next author to the next line. See attachment.

Any help, tips or tricks would be gladly appreciated. Thanks!
Attachments
overfull hbox.jpg
overfull hbox.jpg (231.57 KiB) Viewed 12876 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Citation overfull hbox error

Post by phi »

Hello,
normally, breaking between citations is allowed. Perhaps breaking before "Karato" would result in an underfull box, so LaTeX doesn't break there. What happens if you insert \linebreak right in front of this citation? Do you get an underfull box? If so, try the option breaklinks for the hyperref package.
RexMundi
Posts: 7
Joined: Sat Nov 29, 2008 6:42 am

Citation overfull hbox error

Post by RexMundi »

omg! That so worked! I had no idea it was a problem with the hyperref package. I do get some warning:

You have enabled option 'breaklinks' but driver hdvips.def does not support this. Expect trouble with the link areas of broken links.

No biggie i guess.

Cheers!~
Post Reply