LaTeX forum ⇒ GeneralCitation overfull hbox error

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

Citation overfull hbox error

Postby RexMundi » Sat Nov 29, 2008 6:47 am

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 3700 times

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby phi » Sat Nov 29, 2008 2:54 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

RexMundi
Posts: 7
Joined: Sat Nov 29, 2008 6:42 am

Postby RexMundi » Mon Dec 01, 2008 1:09 am

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!~

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 6 guests