I've been trying many options for my citations and references. I used natbib
package and plainnat
style, but I discovered biblatex
and it seems better for customizing citations and bibligraphy styles. My problem is that I can't make it works.
My code:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\usepackage[citestyle=authoryear,bibstyle=authortitle]{biblatex}
\usepackage[none]{hyphenat}
\addbibresource{C:/Users/usuario/Documents/6_Latex_Files/References}
\usepackage[brazil]{babel}
\begin{document}
Hi \parencite[i.e.][page 2]{Alamri2010}\\
Another citation \parencite{Bouvy1999,Ho2008,Ho2012c}\\
In line citation \parencite{Bar-Yosef2010}
\printbibliography
\end{document}
The result:
Why the citations are not correct?
Why the pre and postnotes is not appearing?
Why the bibliography is naor appearing?
Observation (if helps): When I compile appears the following messages:
This is BibTeX, Version 0.99d (MiKTeX 2.9.6200 64-bit)
The top-level auxiliary file: document.aux
I found no \citation commands---while reading file document.aux
I found no \bibdata command---while reading file document.aux
I found no \bibstyle command---while reading file document.aux
(There were 3 error messages)
Best Answer
The following instruction is almost certainly at fault:
The
\addbibresource
directive requires that users provide the filename extension -- most likely ".bib", right? Unlike BibTeX, which only looks for files with filename extension.bib
for bibliographic entries,biblatex
and the\addbibresource
are much flexible in the file types that can be parsed. The "downside", if you will, is that the filename extension must be stated explicitly.Thus, you should write
and recompile. Naturally, if the bib is not located in the directory
C:/Users/usuario/Documents/6_Latex_Files
, you should correct the argument of\addbibresource
suitably.Here's a full MWE (minimum working example). Be sure to run LaTeX, biber, and LaTeX once more to compile it.