Good afternoon,
I am a new to LaTeX and currently I am writing on my thesis, but I got problems on including my bibliography which is implemented as a .bib file. Probably I should add that there are no errors. I use: TeXworks and Jabref (for creating the .bib file)
Overview of what doesn't work:
- Citations in text with correct numerations (i.e. [1])
- Attachment of a bibliography section at the end of the document with corresponding entry in the content list
For example: sources.bib
@Book{Schroeder2000,
title = {Elektrische Antriebe - Grundlagen},
publisher = {Springer Verlag},
year = {2000},
author = {D. Schroeder},
}
In my .tex file I want to include this .bib file. So I got something like that (There was a template given to me which contains the following lines, I tried to adjust them for my purposes but it didn't work):
\documentclass[a4paper,11pt]{memoir}
% packages
\usepackage{kantlipsum}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
% Language
\usepackage[english]{babel}
%\usepackage[ngerman]{babel}
\usepackage{helvet}
\usepackage[style=numeric, backend=biber, backref, sorting=none]{biblatex} % use backend=biber if available
\usepackage{graphicx}
\usepackage{color} % \definecolor{heatred}[RGB}{170,0,0}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{siunitx} % \SI{15e3}{\kg}, \SI{0.2}{\m\per\s}, \si{\kWh}
\usepackage{mdwlist} % compact lists: \begin{enumerate*}, \begin{itemize*}
\usepackage{hyperref}
\usepackage{bm} % bold italic symbols in math mode
\usepackage{eurosym}
\usepackage{pdfpages}
\usepackage{tikz}
\addbibresource{sources.bib}
\begin{document}
% table of contents
\cleardoublepage
\tableofcontents
% content
%Include your introduction, etc.
\input{tex/01-intro}
\input{tex/02-main}
\input{tex/03-end}
% Bibliography
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography
\end{document}
But when I cite in one of my tex documents (i.e. main.tex) it doesn't work.
This is how I cited in my .tex file:
And Mr. P stated that XYZ has happened \cite{Schroeder2000}
This is the output I get from the previous line:
And Mr. P stated that XYZ has happened [Schroeder2000]
Instead of:
And Mr. P stated that XYZ has happened [1]
Additionaly the last part:
% Bibliography
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography
doesn't work, too. There is no bibliography section in my table of contents and there is no bibliography attached at the end of the document.
I am very sorry if the writing-style doesn't apply to the forum standards. It is my very first time here at this forum. Of course I searched for answered questions but I couldn't find any answers to my problem. I would like to thank you in advance for your help!
pdflatex->biber->pdflatex->pdflatex? – samcarter_is_at_topanswers.xyz Aug 16 '16 at 13:56/// I guess that this is the main problem. That there is no Biber typeset 'installed'. So my goal should be to get pdflatex + MakeIndex + Biber, right?
– A. HMann Aug 16 '16 at 13:57\phantomsectionand\addcontentslinestuff, you only need\printbibliography[heading=bibintoc]. – moewe Aug 16 '16 at 14:28