GeneralBibliography problem: URL too long. (Problem solved)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
moonlight
Posts: 10
Joined: Fri Oct 31, 2008 8:04 pm

Bibliography problem: URL too long. (Problem solved)

Post by moonlight »

Hi all,

In my document I've put a reference to another document as so:

Code: Select all

\cite{AKJ07}
In my bibtex file the entry 'AKJ07' is a 'misc' entrytype, and in its 'howpublished' argument I've put in the URL where it can be downloaded. The trouble is that the URL is quite long, and when compiled, the URL shows up in my bibliography at the end of the document in a single line, but it runs way beyond the right margin almost to the end of the page. It stands out and looks very ugly.

Does someone know how I can force the URL to be written on 2 lines, or how I can force it to somehow fit in within the usual left and right margins? I use the 'amsplain' bibliography style.

Many thanks in advance for any help.
moonlight.
Last edited by moonlight on Mon Nov 24, 2008 6:00 pm, edited 1 time in total.

Recommended reading 2024:

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

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

moonlight
Posts: 10
Joined: Fri Oct 31, 2008 8:04 pm

Re: Bibliography problem: URL too long.

Post by moonlight »

Nevermind, I feel really stupid but I just found a hack 5 minutes after posting. I inserted a line break in the URL within the bibtex file: that did the trick. I should have thought about it earlier.

In any case, if anyone has a less barbaric solution, do let me know please.

Cordially,
moonlight.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography problem: URL too long. (Problem solved)

Post by localghost »

moonlight wrote:[…] In any case, if anyone has a less barbaric solution, do let me know please. […]
The url package could have been helpful in this case.

Best regards
Thorsten¹
moonlight
Posts: 10
Joined: Fri Oct 31, 2008 8:04 pm

Bibliography problem: URL too long. (Problem solved)

Post by moonlight »

Thank you so much localghost! I used the package and it is perfect: everything looks much neater now. If anyone is interested in this solution, the following page gives precise tips as to how to use the url package: http://www.kronto.org/thesis/tips/url-formatting.html.

Cordially,
moonlight.
Post Reply