1

I have before the beginning of the document \addbibresource{references.bib} and at the end of it \printbibliography.

The references have this format :

@ARTICLE{2015MNRAS.452.1089P,
   author = {{Porth}, O. and {Komissarov}, S.~S.},
    title = "{Causality and stability of cosmic jets}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {1408.3318},
 primaryClass = "astro-ph.HE",
 keywords = {instabilities, MHD, relativistic processes, stars: jets, galaxies: active, galaxies: jets},
     year = 2015,
    month = sep,
   volume = 452,
    pages = {1089-1104},
      doi = {10.1093/mnras/stv1295},
   adsurl = {http://adsabs.harvard.edu/abs/2015MNRAS.452.1089P},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}

No error, but doesn't print a thing.

\documentclass[12pt,twoside]{report}

\usepackage[utf8]{inputenc}

\usepackage[english,greek]{babel}

 \usepackage[a4paper,width=160mm,top=25mm,bottom=25mm,bindingoffset=6mm]
{geometry}

\usepackage{amsmath}

\usepackage{esint}

\usepackage[normalem]{ulem}


\usepackage{graphicx}

\usepackage{subcaption}

\graphicspath{{Images/}}

\usepackage{array}

\usepackage{wrapfig}

\usepackage{multirow}

\usepackage{tabu}

\usepackage{wrapfig}

\usepackage{hyperref}

\usepackage{fancyhdr}

\newcommand{\uvec}[1]{\boldsymbol{\hat{\textbf{#1}}}}



\pagestyle{fancy}

\fancyhead{}

\fancyhead[RO,LE]{Αλληλεπίδραση αστροφυσικών πιδάκων πλάσματος με το περιβάλλον 
τους}
\fancyfoot{}

\fancyfoot[LE,RO]{\thepage}

\fancyfoot[LO,CE]{Κεφάλαιο \thechapter}

\renewcommand{\headrulewidth}{0.4pt}

\renewcommand{\footrulewidth}{0.4pt}



\usepackage[style=authoryear,sorting=none]{biblatex}

\addbibresource{references.bib}



\title{Αλληλεπίδραση πιδάκων με το περιβάλλον τους}

\date{Oκτώβριος 2017}




\begin{document}

"

End: "


\nocite{*}

\printbibliography

\end{document}

1 Answers1

2

To bring this to an end I created the following MWE mwe.tex which can be compiled without errors (See important code changings marked with <=======):

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{2015MNRAS.452.1089P,
   author = {{Porth}, O. and {Komissarov}, S.~S.},
    title = "{Causality and stability of cosmic jets}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {1408.3318},
 primaryClass = "astro-ph.HE",
 keywords = {instabilities, MHD, relativistic processes, stars: jets, 
             galaxies: active, galaxies: jets},
     year = 2015,
    month = sep,
   volume = 452,
    pages = {1089-1104},
      doi = {10.1093/mnras/stv1295},
   adsurl = {http://adsabs.harvard.edu/abs/2015MNRAS.452.1089P},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}
\end{filecontents}


\documentclass[12pt,twoside]{report}

\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel}

\usepackage[%
  a4paper,width=160mm,top=25mm,bottom=25mm,bindingoffset=6mm
]{geometry}

\usepackage{fancyhdr}
\usepackage{blindtext} % <========to write dummy text in document ======

\usepackage{csquotes}
\usepackage[style=authoryear,sorting=none]{biblatex}
\addbibresource{\jobname.bib} % <===== to use bib file created with filecontents

\usepackage{hyperref}

\newcommand{\uvec}[1]{\boldsymbol{\hat{\textbf{#1}}}}
\newcommand{\mnras}{Very Important Journal} % <=========================

\pagestyle{fancy}
\fancyhead{}
\fancyhead[RO,LE]{Αλληλεπίδραση αστροφυσικών πιδάκων πλάσματος με το περιβάλλον 
τους}
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,CE]{Κεφάλαιο \thechapter}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\title{Αλληλεπίδραση πιδάκων με το περιβάλλον τους}
\date{Oκτώβριος 2017}


\begin{document}

\blindtext
\nocite{*} or \cite{2015MNRAS.452.1089P} % <============================

\printbibliography

\end{document}

Because you have the line journal = {\mnras}, in your bib file you need to define macro \mnras like I did:

\newcommand{\mnras}{Very Important Journal}

or just delete the macro in your bib file ...

To get an bibliography you need to use

\nocite{*} or \cite{2015MNRAS.452.1089P}

\nocite{*} prints all not cited bib entrys in your bibliography, with \cite{key} you can cite bib entry key in your document. You need at last one or more \cite or \nocites{*} to get a bibliography printed!

The given MWE results in the following bibliography (page 2):

bibliography

If you have problems to get your editor to use biber use the terminal/console instead. Type the 4 commands in your terminal:

pdflatex mwe.tex
biber mwe.aux
pdflatex mwe.tex
pdflatex mwe.tex    
Mensch
  • 65,388