I am trying to use biblatex
for the first time and running into problems. I looked up a lot of documentation, and here is what I have come up with so far.
Here is my report document:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx,color,float,amssymb,amsmath}
\usepackage{pdfpages}
\usepackage{wrapfig}
\usepackage[font=small]{caption, subcaption}
\usepackage[style=numeric]{biblatex}
\addbibresource{spec.bib}
\begin{document}
random text let's cite \cite{spec}
\printbibliography
and here is my bibliography document spec.bib
:
\begin{filecontents}{spec.bib}
@manual{spec,
title = {Instruction Manual and Experimental Guide for the PASCO Scientific Model SP-9268A, Student Spectrometer}. ,
date = {January 1991},
OPTlanguage = {English},
OPTorganization = {PASCO Scientific}
OPTpagetotal = {10}}
When I try to cite this in my document, I am getting the following error and no output for my references:
This is BibTeX, Version 0.99d (TeX Live 2017)
The top-level auxiliary file: Spectroscopy.aux
I found no \citation commands---while reading file Spectroscopy.aux
I found no \bibdata command---while reading file Spectroscopy.aux
I found no \bibstyle command---while reading file Spectroscopy.aux
(There were 3 error messages)
Not too what to do to fix this. Any advice will be helpful, thank you!
date = {January 1991},
is incorrect.date
-like fields must be filled inYYYY-MM-DD
format (EDTF), so you'd have to writedate = {1991-01},
. You also have a spurious.
after thetitle = {...}
before the comma. It should betitle = {Instruction Manual and Experimental Guide for the PASCO Scientific Model SP-9268A, Student Spectrometer},
backend=biber
is not necessary since it is the default, but I still like to include it nonetheless). If you use an editor, read up in Biblatex with Biber: Configuring my editor to avoid undefined citations what to do - it depends on your editor. If you compile manually, don't callbibtex <filename>
, butbiber <filename>
.spec.bib
should not have\begin{filecontents}{spec.bib}
. This is only to store the references in the main.tex
and sould hava a end (is not here). Consider use a program as JabRef. This help to make a .bib file without syntactic errors (among many others advantages).