Text FormattingBibTeX URLs don't work

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
WingnutWilson
Posts: 2
Joined: Tue Nov 08, 2011 11:20 pm

BibTeX URLs don't work

Post by WingnutWilson »

Hi there I hope someone can help, I'm pretty new to LaTeX and am just getting my head around the concepts, but I have to write a paper for it pretty quick :? My problem is with inserting URLs into the .bib file of a sample document I am playing around with. I've spend about 3 hours playing around with it now to no avail. So in the .bib file I have the following:

Code: Select all

@MISC{exoplanetwebsite,
  AUTHOR={Jean Schneider},
  TITLE={The Extrasolar Planets Encyclopaedia},
  HOWPUBLISHED={\url{http://exoplanet.eu/catalog.php}}
}
But this does not show up in the document. After much reading I think I need to use the "url" package, so using MiKTeX's package manager I downloaded it, and put the line \usepackage{url} at the start of the .tex file (just after \documentclass{article}). It didn't seem to make any difference at all. So, is this the correct way of getting URLs in a bibliography? And if so, what am I missing?

Thanks,

Dan

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: BibTeX URLs don't work

Post by josephwright »

We will need to see a full example: please post a small TeX file that uses your .bib file so we can see exactly what is happening.
Joseph Wright
WingnutWilson
Posts: 2
Joined: Tue Nov 08, 2011 11:20 pm

BibTeX URLs don't work

Post by WingnutWilson »

Sorry, here is an example of the tex file:

Code: Select all

\documentclass{article}
\usepackage{url}

%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}

\title { Symbolic state space generation for \\
         finite models with unknown bounds
}
\author{ Gianfranco Ciardo ~~~~ Robert Marmorstein ~~~~ Radu Siminiceanu\\[2ex]
         College of William and Mary,
         Williamsburg, Virginia 23187  \\
         {\rm \{ciardo,rmmarm,radu\}@cs.wm.edu} }


\date{}
\begin{document}

\maketitle

\begin{abstract}
In previous work..
\end{abstract}

\section{Introduction}\label{SEC:introduction}

Since the introduction of implicit methods....

\bibliographystyle{abbrv}
\bibliography{BibtexExample}

\end{document}
So BibTexExample is the name of my bib file, I got the url stuff from here http://www.kronto.org/thesis/tips/url-formatting.html and he mentions something about putting the URL stuff in the bib file, is that where it's meant to go? I tried that but it didn't seem to work either.
Post Reply