I am following SPIE conference Latex format, to generate a PDF paper. However, at reference part I have problems.
First, here is their website http://kmh-lanl.hansonhub.com/spie/, in the Reference list formatting part they described how to create reference list.
Here is the latex file they provided
% List Bibliography
% creates reference list using BibTeX and named style file
\documentclass[11pt,letterpaper]{article}
\oddsidemargin -.02in
\textwidth 6.5in
\topmargin -0.42in
\textheight 9in
\parskip 1ex
\def\bstfile{spiebib} % name of bib style file to be used
\def\refname{ \vspace{-10ex}\rule{0mm}{1mm} \\ Reference list formatting -- \bstfile.bst
}
\begin{document}
\vspace{-10ex}\rule{0mm}{1mm}
\bibliographystyle{\bstfile}
\nocite{*}
\bibliography{biblist}
@article{Kaczmarz37,
author = "S. Kaczmarz",
title = "Angen{\"{a}}hrte {A}ufl{\"{o}}sung von {S}ystemen
linearer {G}leichungen",
journal= "Bull. Acad. Polon. Sci. Lett.",
volume = "A35",
pages = "355-357",
year = "1937" }
\end{document}
where
@article{Kaczmarz37,
author = "S. Kaczmarz",
title = "Angen{\"{a}}hrte {A}ufl{\"{o}}sung von {S}ystemen
linearer {G}leichungen",
journal= "Bull. Acad. Polon. Sci. Lett.",
volume = "A35",
pages = "355-357",
year = "1937" }
is the sample where you can insert your own bibliography.
However, when I compile the tex file, it looks like this:
but according to their website, it should look like this:
I am wondering how I can change to their style. I am following their instruction, but get very different results. Confused.
Best Answer
The code
should go in a file named with extension
.bib
, saybiblist.bib
, not in the main document. Add to this file all references in the same BibTeX format that you need for the paper.When you run LaTeX on the document, the line
\bibliography{biblist}
causes an annotation to be made in the.aux
file. After the LaTeX run you have to call BibTeX (how to do it depends on your front-end to TeX, all of them provide some button for this). After BibTeX is finished, a file.bbl
will be produced and at the next LaTeX run the references will be in place.It's not necessary to run BibTeX each time, just when you add references. It may be needed to run LaTeX twice after a BibTeX run, for synchronizing the labels.