I have encountered a problem when I wanted to start referencing my work. I get the error
Package natbib Error: Bibliography not compatible with author-year citations. ...mand\NAT@force@numbers{}\NAT@force@numbers
and it is not even possible to compile the PDF when I undo the cite. The command that I am using is:
\ifuseCustomBib
\RequirePackage[square, sort, numbers, authoryear]{natbib}
\fi
I am using a bibtex file produced by Mendeley but the weird thing comes when I am not even using the package. Do you have any idea how to solve it?
Thank you in advance for your time and attention.
numbersandauthoryear? The first option it for numeric-style citation callouts, and the second is for authoryear-style citation call-outs. Choose one or the other option, but not both. – Mico Aug 09 '18 at 13:15However, I have tried what you mention to remove one of them and neither worked out.
– cjl Aug 09 '18 at 13:19authoryearoption (since theieeetrbibliography style is not capable of creating authoryear-style citation callouts), (b) delete all auxiliary files (esp. the aux file), (c) run LaTeX again (ignoring any warning messages from LaTeX/natbib), (d) rerun BibTeX, and (e) rerun LaTeX twice more. – Mico Aug 09 '18 at 14:23\cite\citepor\citetthe problem arises again. The console shows:This is BibTeX, Version 0.99d (MiKTeX 2.9.6745 64-bit)
The top-level auxiliary file: thesis.aux
... The style file: ieeetr.bst
... I found no \citation commands---while reading file thesis.aux
Database file #1: References/references.bib
(There was 1 error message)
Process exited with error(s)
Am I missing anything? – cjl Aug 09 '18 at 14:55
\cite-type commands, it's mostly likely because you didn't run LaTeX first after deleting all the aux files. The sequence is LaTeX-BibTeX-LaTeX-LaTeX. – Mico Aug 09 '18 at 18:32ieeetrbibliography style is only capable of generating numeric-style citation call-outs, it's make much to provide\citetinstructions. I suggest you change\citetinstructions to\cite. With the optionnumbers,\citepbehaves like\cite, i.e., there's no real need to change the\citepinstructions. – Mico Aug 09 '18 at 18:53\citetand the package I am using is `\ifuseCustomBib\RequirePackage[square, sort, numbers]{natbib}
\fi`
– cjl Aug 10 '18 at 02:54Do you have any other idea? By the way, thank you for your awesome support.
\ifuseCustomBibconditional. What happens if you get rid of the conditional wrapper? – Mico Aug 10 '18 at 12:54\usepackage[square,numbers]{natbib}instead of\ifuseCustomBib \RequirePackage[square, sort, numbers]{natbib} \fi \renewcommand{\bibname}{References}is `"Option clash for package natbib." I received this template to start with so I am not that proficient and I do not know how to proceed. – cjl Aug 10 '18 at 21:24\bibliographystyle{ieeetr}– cjl Aug 10 '18 at 22:41