0

hey I am getting the error shown in pic. I am using TexMaker 4.5 and Miktex 2.9

error shown

Edit 1: Adding minimal work example (MEW)

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Kunal Tiwari}
\title{Title}

%\usepackage{natbib}

\usepackage{csquotes}% Recommended
%\usepackage[defernumbers=true]{biblatex}
\usepackage[
backend=bibtex,
style=authoryear,
%sorting=ynt
]{biblatex}

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
\nocite{*}

\addbibresource{24_9_17.bib}

\begin{document}
\begin{center}
\begin{large}
\textbf{Title}
\end{large}
 \\
{Kunal Tiwari}
\end{center}

\vspace*{5mm}

 Text text text  \parencite{ref2}. sometext bla bla bla \parencite{ref1}. 

%\nocite{*}
%\bibliographystyle{ieeetr}
%\bibliography{24_9_2017}

\printbibliography[title={References},category=cited]
\end{document}

The thing is that this works fine on sharelatex. but I have some issues with the texmaker. I am not able to figure them out and it's causing me to use sharelatex a lot more than I would like.

pic of the warnings I am getting

edit 2: Adding the directory structure in picture. Also screenshot of my texMaker settings. Directory Settings

  • 3
    Don't use build folders. They only make life more difficult. – Ulrike Fischer Sep 25 '17 at 10:38
  • That was useful comment. I did it. But it still does not solve my problem. – Kunal Tiwari Sep 25 '17 at 10:50
  • Is the error still the same? Can you show us an MWE/MWEB? Since you question is about an external programme we would also need to know how you call BibTeX (if you use an editor, take a screenshot of the configuration). If you could also show us your directory structure that would help enormously. – moewe Sep 25 '17 at 16:45
  • Any news here? Do things work now? If not, what error(s) do you get? Can you show us an MWE as well as your editor settings and directory structure for the problematic files? – moewe Sep 27 '17 at 16:34
  • @moewe I am not getting any error, but there is no reference either. – Kunal Tiwari Sep 29 '17 at 12:28
  • Check the .blg file, what does it say? How does your folder structure look like? (See my comments above.) – moewe Sep 29 '17 at 12:36
  • @moewe cannot spot any .blg file in my directory. Does it get created automatically ? – Kunal Tiwari Sep 29 '17 at 19:56
  • 1
    That depends. There should definitely be one. You need to make sure to run BibTeX, normally that is the default when you do a 'quick build'. There is a problem with your configuration: In the last screenshot the 'Bib(la)tex' line should read bibtex %.aux (note: no space before bibtex and %.aux it). – moewe Sep 30 '17 at 08:27
  • Of course you should look into running Biber, i.e. backend=biber and https://tex.stackexchange.com/q/154751/35864 – moewe Sep 30 '17 at 08:28
  • Well, the problem was bibtex %.aux . Now it's fine. Thanks @moewe – Kunal Tiwari Sep 30 '17 at 14:38

1 Answers1

2

BibTeX needs to be called on the .aux file, so in your last screenshot the 'Bib(la)tex' command should read

bibtex %.aux

and not just bibtex.


Since you are using biblatex, I'd urge you to consider using Biber. BibTeX is only supported as legacy backend and does not support the full set of biblatex features that Biber provides.

With a modern TeX distribution it should be enough to change backend=bibtex, to

backend=biber,

and make your editor call Biber instead of BibTeX, see Biblatex with Biber: Configuring my editor to avoid undefined citations.

You might also want to read How to use biber, bibtex vs. biber and biblatex vs. natbib and biblatex in a nutshell (for beginners) as well as Question mark or bold citation key instead of citation number for background and additional info.

moewe
  • 175,683