# New Block Undefined Begin The Bibliography Of Scotland

Postby pumpkinegan » Mon May 14, 2007 7:02 pm

When you open the sample article tex file with WinEdt, it is advisable to set it as the main file (there should be an icon with a small green cross on the WinEdt interface). Sometimes BibTeX will not find the file to BibTeX unless WinEdt has a main file set.

After doing this, compile with LaTeX. Then run BibTeX. A bbl file should be generated. Open the bbl file, and it should contain:

\begin{thebibliography}{2}
\providecommand{\natexlab}[1]{#1}
\providecommand{\url}[1]{\texttt{#1}}
\expandafter\ifx\csname urlstyle\endcsname\relax
\providecommand{\doi}[1]{doi: #1}\else
\providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi

\bibitem[{Surname}(2007{\natexlab{a}})]{article_label}
Firstname~I. {Surname}.
\newblock Title of article.
\newblock \emph{Journal of Publication}, 1:\penalty0 1--2, May
2007{\natexlab{a}}.

\bibitem[{Surname}(2007{\natexlab{b}})]{book_label}
Firstname~I. {Surname}.
\newblock \emph{Title of Book}.
\newblock Publishing House, Address of Publishing House, 1 edition,
2007{\natexlab{b}}.

\end{thebibliography}

The fact that you are not getting an error, but just getting question marks at the \cite points suggests that the bbl file is not right. Is there a bbl file?
Now compile with LaTeX, and then compile again. The dvi should look like my previous post.

Patrick.

Notes:
1. WinEdt is just a nice text editor. MiKTeX is your flavor of LaTeX.
2. If you compile with texify.exe (instead of latex.exe) BibTeX will be run automatically, and the resulting dvi will open in YAP. WinEdt has a TeXify icon beside the LaTeX icon (the brownish lion).
Last edited by pumpkinegan on Mon May 14, 2007 10:33 pm, edited 1 time in total.

This is the first time I try to use Bibtex for my thesis and I am quite desperate because I cannot get it running. Despite the many post about the undefined references error in this forum, I still am not able to solve this matter.

I have created a very simple .bib and .tex file:

The .tex file:

The.bib file:

Both files are located in the same folder and I run my mainfile multiple time. I use TexMaker combined with MikTeX2.9.

There is no error but the simple warning sequence:

LaTeX Warning: Citation `testcite' on page 1 undefined on input line 10 LaTeX Warning: There were undefined references.