Here the same as
minimal working example, so that
Run LaTeX here
can process the file:
Code: Select all
\begin{filecontents}[force]{\jobname.bib}
% Encoding: UTF-8
@Article{b,
author = {de},
journal = {v},
title = {fr},
year = {2001},
}
@Comment{jabref-meta: databaseType:bibtex;}
\end{filecontents}
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
%\usepackage[utf8]{inputenc}% Not needed any longer for LaTeX since 2018-04-01.
\usepackage[nottoc]{tocbibind}
\title{References}
\begin{document}
\maketitle
\tableofcontents
\cite{b}
\bibliographystyle{unsrt}
\bibliography{\jobname}
\end{document}
As you can see, it works. So you've done something wrong on your side. Have you done the needed runs:
- PDFLaTeX
- BibTeX
- PDFLaTeX
- PDFLaTeX
If so, can you show us the
blg
-file?
BTW: You are using BibTeX. BibTeX cannot handle UTF-8, but only US-ASCII. So you should not export the
bib
-file with UTF-8 encoding! You could use UTF-8, if you would use
biblatex +
biber:
Code: Select all
\begin{filecontents}[force]{\jobname.bib}
% Encoding: UTF-8
@Article{b,
author = {de},
journal = {v},
title = {fr},
year = {2001},
}
@Comment{jabref-meta: databaseType:bibtex;}
\end{filecontents}
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[nottoc]{tocbibind}
\usepackage{csquotes}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\title{References}
\begin{document}
\maketitle
\tableofcontents
\cite{b}
\printbibliography
\end{document}
Note: In this case you have to configure your editor to use
biber
instead of
bibtex
!
I always recommend to use
biblatex
+
biber
unless the production process (e.g. the publisher) does not support it.