Page Layout ⇒ Citations spilling into margins
Citations spilling into margins
I am relatively new to LaTeX and am having a problem I haven't seen on any of the forums. Specifically, I am using natbib, and when a citation (e.g., \citep command) is close to the right-hand-side of the margin and it's a long citation (e.g., Weisbrod and Dominguez, 1986), the text spills over into the margins in the PDF document, which is rather ugly. This is the only place in any of my documents where I've had a problem with the margins. Any advice?
Thanks in advance for your help.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Citations spilling into margins
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Citations spilling into margins

-
- Posts: 29
- Joined: Thu Feb 19, 2009 3:23 pm
Re: Citations spilling into margins
I took out the extra brackets and the titles wrapped around lines, like I would expect them to.
I don't know if this effect is specific to JabRef, but that's where I noticed it.
Re: Citations spilling into margins
-
- Posts: 29
- Joined: Thu Feb 19, 2009 3:23 pm
Re: Citations spilling into margins
Are you using natbib together with hyperref, by any chance? If so, then try adding breaklinks to hyperref. It fixed my problem with citations refusing to break from one line to the next!
Like this:
\usepackage[breaklinks]{hyperref}
Re: Citations spilling into margins
Citations spilling into margins
Code: Select all
\citep{Goldenberg}, \citep{Gupta}
Code: Select all
\citep{Goldenberg, Gupta}
Cheers!