BibTeX, biblatex and biberCite does not work

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
di_258
Posts: 4
Joined: Thu Jan 13, 2011 6:55 pm

Cite does not work

Post by di_258 »

Hello,

I am new in LaTeX and my document is showing [?] in the pdf for the \cite outptut and is showing no references, only the "References" title. The errors are "Citation 'Ratcliffe2000' on page 1 undefined", and "Citation 'Farina2002' on page 1 undefined".

I created my .bib file with JabRef 2.6 and my LaTeX file with Texmaker. I have tried running latex-bibtex-latex-latex and is still not working. Can anyone help me?

Thanks,

This is my LaTeX file:

Code: Select all

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pgfkeys}
\usepackage{amssymb,amsmath}
\usepackage{mathrsfs}
\usepackage[left=1.5cm,top=2cm,right=1.5cm,bottom=2cm]{geometry}
\usepackage{cite}

\begin{document}

\title{Introduction}
\maketitle

\section{Vascular grafts}
Here goes the first reference \cite{Ratcliffe2000}.

\section{Techniques to reduce thrombosis}

\subsection{Perioperative techniques}
Here goes the second reference \cite{Farina2002} 

\bibliographystyle{plain}
\bibliography{References}

\end{document}
And this is my bib file:

Code: Select all

% This file was created with JabRef 2.6.
% Encoding: Cp1252

@ARTICLE{Farina2002,
  author = {Farina, Jayme A. and Piccinato, Carlos E. and Rossi, Marcos and Mazzer
	Nilton and Llorach-Velludo, Maria A.},
  title = {Effect of isovolemic hemodilution with 3% albumin on thrombus formation
	at venous microanastomosis in rats},
  journal = {Microsurgery},
  year = {2002},
  volume = {22},
  pages = {152-157},
  owner = {DSP},
  timestamp = {2011.01.12}
}

@ARTICLE{Ratcliffe2000,
  author = {Anthony Ratcliffe},
  title = {Tissue engineering of vascular grafts},
  journal = {Matrix Biology},
  year = {2000},
  volume = {19},
  pages = {353-357},
  owner = {Equipo},
  timestamp = {2011.01.12}
}

@BOOK{BuddyD.Ratner2004,
  title = {Biomaterials Science},
  publisher = {Elsevier},
  year = {2004},
  editor = {Ratner, Buddy D. and Hoffman, Allan S. and Schoen, Frederick J. and
	Lemons, Jack E.},
  edition = {Second},
  owner = {DSP},
  timestamp = {2011.01.11}
}

@comment{jabref-meta: selector_publisher:}

@comment{jabref-meta: selector_author:}

@comment{jabref-meta: selector_journal:}

@comment{jabref-meta: selector_keywords:}
Last edited by di_258 on Thu Jan 13, 2011 11:06 pm, edited 1 time in total.

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

Cite does not work

Post by frabjous »

Your document works fine for me.
doc.png
doc.png (9.72 KiB) Viewed 9747 times
The problem is probably something with your set-up. Can you post the .blg (BibTeX log) that is generated after running BibTeX.
di_258
Posts: 4
Joined: Thu Jan 13, 2011 6:55 pm

Re: Cite does not work

Post by di_258 »

Thanks for your help.

Where should I find the .blg file? Should it be in the same folder? I only have a .bak file named after the .bib file.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Cite does not work

Post by frabjous »

You run bibtex not on the .bib file but on the .aux file. Typically, the .aux file has the same beginning as the .tex file. The .blg would have the same beginning as the aux/tex file, not as the .bib file. Probably it would be in the same folder, yes.

If there is no blg file there, then either BiBTeX was never run, or it was run on the wrong file.
di_258
Posts: 4
Joined: Thu Jan 13, 2011 6:55 pm

Re: Cite does not work

Post by di_258 »

Should I then open the .aux file in TeXmaker and hit BiBTex in the tools menu for running BiBTeX? I did that and it doesn't work yet... I certainly have no .blg file :(
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Cite does not work

Post by frabjous »

I don't have texmaker installed on the computer at which I sit at the moment, I'm afraid. However, according to its documentation, the default setting for the BibTeX tool is "bibtex %.aux" where '%' means "current filename without extension". If that's how yours is configured, then you shouldn't need to open the .aux file; it should be enough to run BibTeX when the .tex file with the same name is open.

If not -- well, then -- I'm not suggesting it as a long-term solution, but just for the purposes of testing, you might try running BiBTeX from the commandline/command prompt. (I'd be more specific, but I don't know what operating system you're using.)
di_258
Posts: 4
Joined: Thu Jan 13, 2011 6:55 pm

Re: Cite does not work

Post by di_258 »

Hi! I finally solved it! I changed the name of the bib file to one word rather than two words (in my computer I had it named really as "Referencias tesis") and it worked! It's weird because I tried that before posting and didn't work before, plus I still don't have a blg file in the folder :? . Good news is that I only have to hit the "pdflat" button once to have it show me the pdf with the references correctly.

Thanks a lot for your help!

Diana
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Cite does not work

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply