GeneralProblem with TexnicCenter and BibTeX

General information and discussion about TeXnicCenter
Post Reply
pluzich
Posts: 5
Joined: Thu Oct 09, 2008 5:18 pm

Problem with TexnicCenter and BibTeX

Post by pluzich »

Hello everyone,
I am completely new to this stuff. I want to create a bib file and cite it from my text. Never thought
it is going to be a rocket science...

I have a .bib file with 1 entry:


@BOOK{Shasha2002,
title = {Database Tuning},
publisher = {The Morgan Kaufmann Series in Data Man¬agement Systems},
year = {2002},
author = {Shasha, D, Bonnet P.},
owner = {Andranik},
timestamp = {2008.09.21}
}

I have
\bibliographystyle{h-elsevier2}
\bibliography{bibliography}

in TeX file and
and a citation: \cite{Shasha2002}

I build it, and I get this:
BiBTeX
I found no \bibdata command ... in .aux file
I found no \bibstyle command ... in .aux file


Any ideas what is wrong?
P.S. my .bbl file is empty.
P.P.S. Thanks in advance :)

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with TexnicCenter and BibTeX

Post by Stefan Kottwitz »

Hi pluzich,

welcome to the board!
I cannot see an error in that bib entry. It's working, at least when I tested it with the unsrt bibliography style.
Perhaps have a look at the .blg file or post it here, there may be some information concerning the problem.

Stefan
LaTeX.org admin
pluzich
Posts: 5
Joined: Thu Oct 09, 2008 5:18 pm

Re: Problem with TexnicCenter and BibTeX

Post by pluzich »

Hi Stefan,
Thank you very much.
Here is the file:

This is BibTeX, Version 0.99cThe top-level auxiliary file: C:\Documents and Settings\Andranik\My Documents\Selectivity Distributions\Selectivity Distributions.aux
I found no \bibdata command---while reading file C:\Documents and Settings\Andranik\My Documents\Selectivity Distributions\Selectivity Distributions.aux
I found no \bibstyle command---while reading file C:\Documents and Settings\Andranik\My Documents\Selectivity Distributions\Selectivity Distributions.aux
(There were 2 error messages)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with TexnicCenter and BibTeX

Post by Stefan Kottwitz »

Perhaps the blank in the filename could cause a problem. You could rename Selectivity Distributions.tex and try again.

Stefan
LaTeX.org admin
pluzich
Posts: 5
Joined: Thu Oct 09, 2008 5:18 pm

Re: Problem with TexnicCenter and BibTeX

Post by pluzich »

Thanks for the reply.
I tried, it did not help. Gives the same error.

Maybe someone could post a sample document with bibliography
done in TexnicCenter so that I could possibly figure out what am I missing?

Thanks a lot.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with TexnicCenter and BibTeX

Post by localghost »

I suggest to build a minimal example. So we can test the code and may do some corrections.


Thorsten
pluzich
Posts: 5
Joined: Thu Oct 09, 2008 5:18 pm

Re: Problem with TexnicCenter and BibTeX

Post by pluzich »

Thank you once again,
Here it is, hope it's what we need.
Attachments
MWE.zip
(17.62 KiB) Downloaded 1484 times
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Problem with TexnicCenter and BibTeX

Post by MartinC »

Try this:

\documentclass{amsart}
%
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}


%------------------------------------------------------------
% Theorem like environments
%
%--------------------------------------------------------
\begin{document}
\bibliographystyle{h-elsevier2}
\title[Short Title (for the running head)]{Title}

\maketitle

\section{Introduction}
This is a citation \cite{Shasha2002}
\bibliography{bibliography}

\end{document}
pluzich
Posts: 5
Joined: Thu Oct 09, 2008 5:18 pm

Re: Problem with TexnicCenter and BibTeX

Post by pluzich »

Thank you very much,
It worked.
User avatar
jlbfunes
Posts: 10
Joined: Wed May 21, 2008 10:35 pm

Re: Problem with TexnicCenter and BibTeX

Post by jlbfunes »

I faced a similar issue, but under different circumstances. I was creating my thesis with chapterbib and a bibliography at every chapter.

I had no problem with the first two chapters, but I made a mistake in the third one: I left a end{document} statement. Of this I took care of, but still I received the same error statements after running BibTeX in the third chapter.

What I did not find out until late was that I forgot to update the addresses of the pictures of the chapter and this was somehow blocking the proper generation of the .aux file for the chapter. I did so and follow the usual steps for compiling. The messages were gone and the .pdf was created.

I used your advice in this post to review my files and I felt it was my duty to report back this issue.

Thank you very much, girls and guys. You made this a better world!
I use TeXnicCenter 1 Beta 7.01. MikTeX 2.7 on Windows Vista Home Edition (I will be switching to Linux soon, I swear).
Post Reply