This is a rather minimal, but compilable test example. Does this example (saved, say, as biblatextest.tex
) compile for you without errors? If not, what does the logfile (biblatextest.txt
), especially the section *File List
, say?
EDIT: The proper compile sequence for the example (if one doesn't use a makefile like latexmk) is
-pdflatex biblatextest
-biber biblatextest
-pdflatex biblatextest
Note the use of biber
as a replacement for bibtex
!
\listfiles
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{A01}.
\printbibliography
\end{document}
(The filecontents environment is only used to include some external files directly into the example, so that it compiles. It is not necessary for the solution.)
EDIT 2: In response to the updated question: In the code snippet \autocite{A01}
, A01
is the citekey of the first (and only) bibentry in my .bib
file (it starts with @misc{A01,
misc
being the BibTeX type). What do you expect when you cite an entry that isn't included in your .bib
file?
EDIT 3: That's a new question, isn't it? ;-) To remove [hep-ex]
from every bibliography entry, add the following to your preamble:
\AtEveryBibitem{\clearfield{eprintclass}}
And yes, XeLaTeX instead of pdfLaTeX may be worth a try. For details see Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX.
Best Answer
As mentioned in comments, you need to load
amssymb
in order to access these symbols:In addition,
will give an error because no title etc. is defined. I simply removed this from the example, but in a real document, you'd use
\title{}
etc. to set things up.Moreover, mathematics cannot be typeset in text mode. By default, TeX assumes we're in text mode. To switch to maths mode, you need to tell TeX that's what you want to do.
The simplest two ways to do this in LaTeX are
for inline mathematics and
for a line of mathematics which should be displayed on its own (e.g. centred with a bit of vertical space before and after.
Putting this together
gives us
For more sophisticated turnstiles,
turnstile
can be used. For example (with somewhat random annotations for demonstration purposes):