[Tex/LaTex] Bibliography in LaTeX: Spaces between words

bibliographiesbibtexspacing

I'm writing the bibliography. LaTeX don't write it well. I don't know why. I have tried the two methods: \begin{the bibliography} and using BiBTeX. The result is the same.

The result is longer spaces between some words.

enter image description here

Using the first method(without BibTeX). The first entry at the image is:

\bibitem{Stack1}
Stack Overflow. \tit{Simple Bluetooth data receiver Android}. \url{http://stackoverflow.com/questions/9164138/simple-bluetooth-data-receiver-android}.

\tit{} is like \textit{}

I have written a small example:

\documentclass[12pt,a4paper]{book}

\usepackage[utf8]{inputenc}

\usepackage[left=1.8in,right=1.8in,top=0.6in,bottom=0.6in]{geometry}


\usepackage[pdftex,bookmarksnumbered,hidelinks,breaklinks]{hyperref}


\begin{document}

\begin{thebibliography}{99}

\bibitem{Dani}
Daniel García. \textit{Activando y desactivando el bluetooth en Android}. \url{http://danielggarcia.wordpress.com/2013/10/19/bluetooth-i-activando-y-desactivando-el-bluetooth-en-android/}.
\end{thebibliography}

\end{document}

And the result is

enter image description here

Best Answer

Your URL string contains quite a few - (hyphen) characters, and it's quite long. By default, URL strings are not broken at hyphenation characters. To enable line breaking at the hyphens, load the url package with the option hyphens before loading hyperref.

enter image description here

\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[hmargin=1.8in,vmargin=0.6in]{geometry}

\usepackage[hyphens]{url}  %% be sure to specify the option 'hyphens'
\usepackage[pdftex,bookmarksnumbered,hidelinks,breaklinks]{hyperref}

\begin{document}
\begin{thebibliography}{99}
\bibitem{Dani}
Daniel García. \textit{Activando y desactivando el bluetooth en Android}. 
    \url{http://danielggarcia.wordpress.com/2013/10/19/bluetooth-i-activando-y-desactivando-el-bluetooth-en-android/}.
\end{thebibliography}
\end{document}