BibTeX, biblatex and biberHelp on Bibliography please

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
xephyrind
Posts: 1
Joined: Wed Jul 01, 2009 2:32 am

Help on Bibliography please

Post by xephyrind »

Hi, I have just registered on this forum, and I need help please.
I am trying to learn Latex so I wrote a simple bibliography embedded in my tex file. I tried to cite a website, but the generated pdf doesn't textwrap the long URL I am trying to cite into the next line. Instead, it just cuts off at the end of line. I was wondering how I can get around with this. My code are as follows:

Below is my test.tex file:

\documentclass{article}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\title{whatever}
\author{moo~}
\date{Friday, June 26, 2009}
\begin{document}
\maketitle
\tableofcontents
\section{helloWorld}
http://forums.freescale.com/freescale/b ... ead.id=158 \cite{Freescale}
\bibliographystyle{plain}
\bibliography{test}
\end{document}

Below is my test.bib file:

@unpublished{Freescale,
author = "Freescale",
title = "Freescale Semiconductor Forum",
note = "Available at:%
\texttt{http://forums.freescale.com/freescale/b ... ead.id=158}",
}

HELP PLEASE XD~ Thank you!!!~

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Help on Bibliography please

Post by frabjous »

Add the url package:

\usepackage{url}

And then put the URLs in \url{...} tags:

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{url}
\title{whatever}
\author{moo~}
\date{Friday, June 26, 2009}
\begin{document}
\maketitle
\tableofcontents
\section{helloWorld}
\url{http://forums.freescale.com/freescale/board/message?board.id=MCUCOMM\&thread.id=158} \cite{Freescale}
\bibliographystyle{plain}
\bibliography{test}
\end{document}
And for your bib file:

Code: Select all

@unpublished{Freescale,
    author = "Freescale",
    title = "Freescale Semiconductor Forum",
    note = "Available at: %
      \url{http://forums.freescale.com/freescale/board/message?board.id=MCUCOMM\&thread.id=158}",
}
Or you can use the option \usepackage{hyperref} instead of \usepackage{url} if you want working hyperlinks instead.
Post Reply