linebreak in url with Bibtex and hyperref package

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-04-12T21:51:01Z Indexed on 2010/04/13 1:03 UTC
Read the original article Hit count: 618

Filed under:
|

Why is this item not shown properly in my bibliography?

@misc{ann,
    abstract = {ANN is an implbmentation of nearest neighbor search.},
    author = {David M. Mount and Sunil Arya},
    howpublished = {\url{http://www.cs.umd.edu/~mount/ANN/}},
    keywords = {knn},
    posted-at = {2010-04-08 00:05:04},
    priority = {2},
    title = {ANN.},
    url = "http://www.cs.umd.edu/~mount/ANN/",
    year = {2008}
}

@misc{Nilsson96introductionto,  
    author = {Nilsson, Nils J.},  
    citeulike-article-id = {6995464},  
    howpublished = {\url{http://robotics.stanford.edu/people/nilsson/mlbook.html}},  
    keywords = {*file-import-10-04-11},  
    posted-at = {2010-04-11 06:52:28},  
    priority = {2},  
    title = {Introduction to Machine Learning: An Early Draft of a Proposed Textbook.},  
    year = {1996}  
}  

alt text


EDIT:

I am using \usepackage{hyperref}, not \usepackage{url}. I don't know what changes I just made made the first item appear properly now

@misc{ann,
    abstract = {ANN is an implbmentation of nearest neighbor search.},
    author = {David M. Mount and Sunil Arya},
    howpublished = {\url{http://www.cs.umd.edu/~mount/ANN/}},
    keywords = {ann},
    posted-at = {2010-04-08 00:05:04},
    priority = {2},
    title = {The \textsc{A}pproximate \textsc{N}earest \textsc{N}eighbor \textsc{S}earching \textsc{L}ibrary.},
    url = "http://www.cs.umd.edu/~mount/ANN/",
    year = {2008}
}

alt text


EDIT:

Since I am using hyperref package, it produces error when using url package together with it. So the two cannot work together?

I would like to use hyper links inside pdf file, so I would like to use hyperref package instead of url package. I googled a bit, and try \usepackage[hyperindex,breaklinks]{hyperref}, but there is still no line break just as before. How can I do it?

Is there conflict in the packages that I am now using?:

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[dvips]{graphicx}
\usepackage{wrapfig}
\graphicspath{{./figs/}}
\DeclareGraphicsExtensions{.eps}
\usepackage{fixltx2e}
\usepackage{array}
\usepackage{times}
\usepackage{fancyhdr}   
\usepackage{multirow}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{slashbox}
\usepackage{multirow}
\usepackage{rotating} 
\usepackage{longtable}
\usepackage[hyperindex,breaklinks]{hyperref}
\usepackage{forloop}
\usepackage{lscape}
\usepackage{supertabular}
\usepackage{amssymb}
\usepackage{amsthm}

© Stack Overflow or respective owner

Related posts about latex

Related posts about bibtex