im very new to Latex, and im now trying to make references work. It just doesnt work! I dont know what im doing wring, so in desperation I simply downloaded this https://www.overleaf.com/project/5c8ac946c46f07759d00e065 and compiled it, and i saw no reference (the online compiler in overleaf shows very pretty referencejust as its supposed to)! So i think the reason is some missing package in miktex. I use texmaker and miktex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\addbibresource{sample.bib}
\title{Bibliography management: \texttt{biblatex} package}
\author{Share\LaTeX}
\date{ }
\begin{document}
\maketitle
\tableofcontents
\section{First section}
Using \texttt{biblatex} you can display bibliography divided into sections, depending of citation type.
Let's cite! Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items.
Next, \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Donald Knuth's website \cite{knuthwebsite}, \textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} are \LaTeX\ related items; but the others Donald Knuth's items \cite{knuth-fa,knuth-acp} are dedicated to programming.
\medskip
\printbibliography[
heading=bibintoc,
title={Whole bibliography}
]
\clearpage
%Filters bibliography
\printbibliography[heading=subbibintoc,type=article,title={Articles only}]
\printbibliography[type=book,title={Books only}]
\printbibliography[keyword={physics},title={Physics-related only}]
\printbibliography[keyword={latex},title={\LaTeX-related only}]
\end{document}
And the .bib file:
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004",
keywords = "physics"
}
@book{dirac,
title={The Principles of Quantum Mechanics},
author={Paul Adrien Maurice Dirac},
isbn={9780198520115},
series={International series of monographs on physics},
year={1981},
publisher={Clarendon Press},
keywords = {physics}
}
@book{latexcompanion,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The \LaTeX\ Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts",
keywords = "latex"
}
@online{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
addendum = "(accessed: 01.09.2016)",
keywords = "latex,knuth"
}
@inbook{knuth-fa,
author = "Donald E. Knuth",
title = "Fundamental Algorithms",
publisher = "Addison-Wesley",
year = "1973",
chapter = "1.2",
keywords = "knuth,programming"
}
@book{knuth-acp,
author = "Donald E. Knuth",
publisher = "Addison-Wesley",
title = "The Art of Computer Programming",
series = "Four volumes",
year = "1968",
note = "Seven volumes planned",
keywords = "knuth,programming"
}
@article{ctan,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351",
keywords = "latex"
}
biberon your computer? – Sigur Mar 15 '19 at 13:17.texfile in focus in TeXmaker. (Formally LaTeX is run on the.texfile and Biber on a.bcffile, but you don't have to worry about that if your editor is configured correctly.) None of the programs is run on the.bibfile. – moewe Mar 15 '19 at 15:49INFO - This is Biber 2.12 INFO - Logfile is 'GYMNASIEARBETE.blg' INFO - Reading 'GYMNASIEARBETE.bcf' INFO - Found 0 citekeys in bib section 0 WARN - The file 'GYMNASIEARBETE.bcf' does not contain any citations! INFO - Writing 'GYMNASIEARBETE.bbl' with encoding 'UTF-8' INFO - Output to GYMNASIEARBETE.bbl INFO - WARNINGS: 1– Hans Mar 15 '19 at 15:53\citeanything inGYMNASIEARBETE.tex. DoesGYMNASIEARBETE.texlook exactly as in the example above? – moewe Mar 15 '19 at 15:54