GeneralBibliography formatting problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
texmax
Posts: 5
Joined: Sat Oct 25, 2008 2:17 pm

Bibliography formatting problem

Post by texmax »

Hello i'm trying to apply some bibliography to my article however some of the possitions written in .bib file are not correctly displayed, for example this one (look at the letters spread):

Image


These are the commands i have used in the .bib file:

Code: Select all

@misc{pe_website,
title =  "{Microsoft Portable Executable and Common Object File Format Specification}",
howpublished = "\url{http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx}"
}
is there any way to solve it?


ps. at the moment i'm using

Code: Select all

\bibliographystyle{plain}
thanks!

Recommended reading 2024:

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

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Bibliography formatting problem

Post by Juanjo »

Is \url a custom command? If yes, comment out its definition and, in the preamble, add \usepackage{url}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
texmax
Posts: 5
Joined: Sat Oct 25, 2008 2:17 pm

Re: Bibliography formatting problem

Post by texmax »

Well no effect. If i delete "howpublished" entry the formatting is correct - but i have no link :/
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Bibliography formatting problem

Post by Stefan Kottwitz »

Hi,

it's working fine for me if I use the url package.
Try this minimal working example, of course with your bib file:

Code: Select all

\documentclass[10pt]{article}
\usepackage{url}
\begin{document}
See \cite{pe_website}.
\bibliographystyle{plain}
\bibliography{myrefs}
\end{document}
With this example there's a line break in the url and no overfull or underfull box.

Stefan
LaTeX.org admin
texmax
Posts: 5
Joined: Sat Oct 25, 2008 2:17 pm

Bibliography formatting problem

Post by texmax »

It worked in the clean file, but it doesnt work in the original one :(
I have this warnings:

Code: Select all

/b/c4/cUnderfull/b/c0/c \hbox (badness 10000) in paragraph at lines 16--19
[][]\T1//cmr//m//n//12 Microsoft Portable Ex-e-cutable and Com-
/b/c4/cUnderfull/b/c0/c \hbox (badness 10000) in paragraph at lines 16--19
\T1//cmr//m//n//12 mon Ob-ject File For-mat Spec-i-fi-ca-tion.
/b/c4/cOverfull/b/c0/c \hbox (33.15053pt too wide) in paragraph at lines 16--19
\T1//cmr//m//n//12 http:////www.microsoft.com//whdc//system//platform//firmware//PECOFF.ms
px. 
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Bibliography formatting problem

Post by Stefan Kottwitz »

You could have mentioned that you are using the hyperref package. It has a problem with breaking hyperlinks if pdflatex isn't used. If you compile to dvi and convert to ps/pdf, try

Code: Select all

\usepackage{breakurl}
after loading hyperref in your preamble.

Stefan
LaTeX.org admin
texmax
Posts: 5
Joined: Sat Oct 25, 2008 2:17 pm

Bibliography formatting problem

Post by texmax »

I was trying the try and error method and it appears this line is causing the spread:

Code: Select all

\documentclass[a4paper,12pt]{article}
any ideas why 12pt is bad? Or how to repair it without switching to 10pt?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Bibliography formatting problem

Post by Stefan Kottwitz »

Hi,
texmax wrote: any ideas why 12pt is bad? Or how to repair it without switching to 10pt?
the problem is just more visible with the larger font size, it's not caused by it. Try breakurl.

Stefan
LaTeX.org admin
texmax
Posts: 5
Joined: Sat Oct 25, 2008 2:17 pm

Re: Bibliography formatting problem

Post by texmax »

The breakurl WORKED!!! THANK YOU VERY MUCH Stefan!
Post Reply