Good evening I am currently writing my thesis with latex and have faced a rather annoying problem. I cannot get my citation to work and couldn't solve this issue despite my efforts and following many threads. So I'd like you to keep in mind that I am not comfortable with the whole latex thing, so hopefully my issue is trivial... But it has given me headaches for month now ! Let me explain the details !
I have been writing on two different computers, and first implemented my citations on computer 1. It has always worked without a flow! But when I switched to computer 2 (which is my main computer), it worked for some time and eventually stopped working... It is still working on computer 1 (sadly not my main computer).
So I'm generating the .bib file using Zotero (better Bib LaTeX, generates unambiguous citation keys), writing with Texstudio 2.12.6, compiling with PdfLaTeX, default bibliography tool : BibTeX, document class: MastersDcotoralThesis.cls (v 1.5).
The code for citations has been given to me (so I must admit I don't fully understand it):
\usepackage[backend=bibtex,style=authoryear,natbib=true, maxbibnames=99,maxcitenames=2]{biblatex}
\renewbibmacro*{name:andothers}{%
\ifboolexpr{
test {\ifnumequal{\value{listcount}}{\value{liststop}}}
and
test \ifmorenames
}
{\ifnumgreater{\value{liststop}}{1}
{\finalandcomma}
{}%
\andothersdelim\bibstring[\emph]{andothers}}
{}}
\addbibresource{biblio.bib}
When I try to compile, my .bbl file gives me the "undefined control sequence" error for the commands : \datalist, \entry, \endentry
Here is an example of entry in my .bbl file (removing additional fields for clarity:
\begingroup
\makeatletter
\@ifundefined{ver@biblatex.sty}
{\@latex@error
{Missing 'biblatex' package}
{The bibliography requires the 'biblatex' package.}
\aftergroup\endinput}
{}
\endgroup
\datalist[entry]{nty/global//global/global}
\preamble{%
\ifdefined\DeclarePrefChars\DeclarePrefChars{'’-}\else\fi
}
\entry{KoshlandSevenPillarsLife2002}{article}{}
\name{author}{1}{}{%
{{hash=KDE}{%
family={Koshland},
familyi={K\bibinitperiod},
given={Daniel\bibnamedelima E.},
giveni={D\bibinitperiod\bibinitdelim E\bibinitperiod},
}}%
}
\endentry
So as suggested by the.bbl file, the biblatex package seems to be missing. When I check MikteX (2.9.6515), it says Biblatex (3.10) is installed.
So my feeling is that there is some problem with MikteX/biblatex as my file compiles on my other computer (older version on MikteX) and on my friend's Mac but not on my same friend's PC.
Hopefully you can help me put the finger on the issue...
Thanks for your help (and hope my issue is not too dumb)
Edit: MWE (hope that will do) :
\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
\addbibresource{biblio.bib}
\begin{document}
test \cite{LeungStepwisevisualizationmembrane2014}
\end{document}
Same "undefined control sequence (\datalist, \entry, \endentry)
Edit 2 :
I have tried using biber backend : \usepackage[backend=biber,style=authoryear-icomp,sortlocale=de_DE,natbib=true, url=false,doi=true,eprint=false]{biblatex} \addbibresource{biblio.bib}
Same error in .bbl file
.bblfile and recompile from scratch? Can you show us a complete, yet minimal example that reproduces your problem, an MWE/MWEB? – moewe Feb 20 '18 at 18:38backend=biberinstead ofbackend=bibtexand run Biber: https://tex.stackexchange.com/q/154751/35864 – moewe Feb 20 '18 at 18:53.bblfile and recompile from scratch? – moewe Feb 21 '18 at 10:17.bbllooks suspicious, it is missing a\refsectioncommand.\documentclass{article} \usepackage[backend=bibtex]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} test \cite{sigfridsson} \end{document}Works brilliantly for me, both with BibTeX and also withbackend=biber. Can you show us the.bblof\documentclass{article} \usepackage[backend=biber]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} test \cite{sigfridsson} \end{document}when processed with Biber? – moewe Feb 21 '18 at 10:25biblatex-examples.bibshould be present on your system ifbiblatexis installed. – moewe Feb 21 '18 at 10:35biblatex3.7 is found and not 3.10 as you said. MikTeX can install packages in multiple places. Run both 'MikTeX Update' and 'MikTeX Update (Admin)' at least twice to make sure all packages are updated. Do you have another or old TeX installation on your system? – moewe Feb 21 '18 at 10:51biblatexseem to be present does not make the situation better. Before you delete anything typekpsewhich -all biblatex.styinto your command line and report the output. – moewe Feb 21 '18 at 11:13C:\Users\Benjamin>kpsewhich -all biblatex.sty C:/Program Files/MiKTeX 2.9/tex/latex/biblatex/biblatex.sty
– Benjamin.B Feb 21 '18 at 11:16C:/Program Files/MiKTeX 2.9/tex/latex/biblatex/biblatex.styand check the version number at the top? What doesbiber --versionoutput? Are you sure you ran the Updater twice and deleted all temporary files before you tried again? – moewe Feb 21 '18 at 11:18Biblatex (3.10)is installed in the package manager, but the updater does not update 3.7 to 3.10 something is off. Where exactly did it say thatbiblatex3.10 is installed? Was it in the Package Manager? Can you double-check? – moewe Feb 21 '18 at 11:33C:/Program Files/MiKTeX 2.9/if it is still present. Search for all.sty,.bbxfiles on your PC and delete the directories containing them as well (if they are MikTeX installs). You do not only need to look forC:/Program Files//C:/Program Files x86/etc. You also need to look inC:\Users\<Yourname>\AppData. – moewe Feb 21 '18 at 11:51backend=bibtextobackend=biberwhat you have shown us should be fine (of course if you have something else I can't say anything about that). Just make sure to remove the temporary files. – moewe Feb 21 '18 at 12:38biblatex(biblatexdoes not usexparse). Can you provide a full, yet small MWE that reproduces the problem? – moewe Feb 21 '18 at 13:17MastersDcotoralThesis.clsis an abomination that should be avoided at all costs. I think you are having the problem described in https://tex.stackexchange.com/q/383150/35864. – moewe Feb 21 '18 at 13:22MastersDcotoralThesis.clsso you might want to update your version ofMastersDcotoralThesis.cls. That can't be done via MikTeX, you must have downloaded it manually, I believe the original source is https://www.latextemplates.com/template/masters-doctoral-thesis – moewe Feb 21 '18 at 13:28