Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing a paper and I would like to add some citations. I would like to put references (like [21]) in the text that, when clicked, point to the relevant link in the bibliography section at the end of the document.

EDIT: I'm trying to use bibtex. This is what I have, but I'm not seeing any bibliography.

\documentclass[a4paper]{report}
\usepackage[pdftex,bookmarks=true]{hyperref}
\usepackage[pdftex]{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{cite}
\begin{document}

\pagenumbering{roman}
\tableofcontents

\pagenumbering{arabic}

\include{intro} % here's the ~\cite{Nobody06}

\listoffigures
\listoftables

\bibliography{b}{}
\bibliographystyle{plain} 

\end{document}

And b.bib:

@misc{ Nobody06,
       author = "Nobody Jr",
       title = "My Article",
       year = "2006" }
share|improve this question
    
Your example works for me. The bibliography appears. Are you sure that you compiled it properly? –  N.N. Jan 10 '12 at 13:15
    
Actually I did not. I didn't run the bibtex command from texmaker. This works now. –  Jameson Jan 10 '12 at 13:20
add comment

2 Answers

If you use biblatex and its default citation style you get citations with numbers in square brackets. To load biblatex with default settings use \usepackage{biblatex}. You make a reference by using \cite (or one of the other citation commands mentioned in the manual). The reference/bibliography section is placed by \printbibliography.

To get clickable links you need to also load hyperref with \usepackage{hyperref}.

Here is an example:

\documentclass{article}

\usepackage{biblatex}
\usepackage{hyperref}
\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@book{texbook,
    author  = {Donald E. Knuth},
    title   = {The {{\TeX}book}},
    publisher   = {Addison-Wesley},
    date    = {1984}
    }
\end{filecontents*}

\addbibresource{\jobname.bib}

\begin{document}

\cite{texbook}

\printbibliography

\end{document}

Output of example

share|improve this answer
add comment

I think you should use http://fr.wikipedia.org/wiki/BibTeX for formating your references and the \cite{} function to cite a reference. Then, using the hyperref package http://en.wikibooks.org/wiki/LaTeX/Hyperlinks everything should be ok.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.