BibTeX, biblatex and biberWebsite bibliography has spaces

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
azizever83
Posts: 41
Joined: Sun Apr 08, 2012 4:31 pm

Website bibliography has spaces

Post by azizever83 »

Hi all,
My question is about how to make the output of the website as other types of bibliographies such as articles, books, etc. The problem is that the spaces are a bit large. If someone knows how to fix this issue, this will be very helpful.
Image

Thanks in advanced..
Attachments
Website latex.JPG
Website latex.JPG (21.5 KiB) Viewed 5195 times

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Website bibliography has spaces

Post by Stefan Kottwitz »

The spacing is much wider because the website addresses (URLs) cannot be hyphenated. It would be the same with normal bibliography entries if long words could not be hyphenated.

It could be fixed by allowing breaks in URLs. It could be allowed manually by \allowbreak such as

Code: Select all

long\allowbreak address
or globally by extending url package hyphenation rules, such as here, in the document preamble:

Code: Select all

\expandafter\def\expandafter\UrlBreaks\expandafter{\UrlBreaks\do\a%
\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n%
\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z\do\&}
Stefan
LaTeX.org admin
azizever83
Posts: 41
Joined: Sun Apr 08, 2012 4:31 pm

Re: Website bibliography has spaces

Post by azizever83 »

Hi Stefan,
Thanks a lot. but, where do i have to write the code long\allowbreak address?
Thnaks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Website bibliography has spaces

Post by Stefan Kottwitz »

In the source code for the bibliography, i.e. in the .bib file.

Stefan
LaTeX.org admin
Post Reply