Closed davidzanger closed 8 months ago
no problem here with up-to-date TeXLive 2023. What is the contents of your local file bblopts.cfg
?
[...]
Local config file bblopts.cfg used
(C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/arabi\bblopts.cfg
File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of babel
) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/babel-english\english.ldf
This is the content of the bblopts.cfg
file:
% \iffalse meta-comment
%
% Copyright 2006 Youssef Jabri
%
%
% This file is part of the `Arabi' system.
% -------------------------------------------
%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3b
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3b or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This file has the LPPL maintenance status "maintained".
%
%
% \fi
%
% Filename: bblopts.cfg
%
%
%
%
\ProvidesFile{bblopts.cfg}
[2005/09/08 v0.1 %
add Arabic and Farsi to "declared" options of babel]
\DeclareOption{arabic}{%
\input{arabic.ldf}
}
\DeclareOption{farsi}{%
\input{farsi.ldf}
}
\endinput
I See, nothing special. But I am wondering why this file is loaded because your example document has nothing to do with arabic? Put \listfiles
as first line into the document and send your file list (at the end of the log file)
There is two weird things going on in the .log
file. It says
C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\biblatex.def:2353: LaTeX Error: Command \cite already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.2353 \newrobustcmd*{\cite}{\bibsentence\cite}
But in biblatex
v3.19 line 2353 of biblatex.def
is not \newrobustcmd*{\cite}{\bibsentence\cite}
. There is \newrobustcmd*{\Cite}{\bibsentence\cite}
, which won't error because it defines \Cite
with a capital "C", in line 2299. (Line 2353 is \newrobustcmd*{\Autocite}{\bibsentence\autocite}
, which likewise won't error.)
It looks as though your biblatex.def
isn't the correct one. It also looks as though maybe someone lowercased all of its contents, so that the line \newrobustcmd*{\Cite}{\bibsentence\cite}
, which is correct, became \newrobustcmd*{\cite}{\bibsentence\cite}
, which is completely wrong.
Did you or anyone else modify files installed by MikTeX?
Maybe it already helps to uninstall and reinstall the biblatex
package in the MikTeX Console?
@moewew Cases like this is why for the next LaTeX release we've added MD5 hashes to \listfiles
(\listfiles[hashes]
) - available in the dev release but probably not ready for the prime time just yet.
@moewew You are right. I reinstalled the package and now it works. I assume it happened when I replaced all \autocite
commands with \cite
commands. Probably, the file was open during the replacement.
Thanks to all who helped!
When I try to execute the following simple latex script:
Using the following
sample.bib
file:I get the error: Command \cite already defined. Any idea what could cause this error? I get the following log:
main.log
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 24.1) (preloaded format=pdflatex 2024.2.8) 19 FEB 2024 13:07 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. **c:/Users/user/Documents/programming/trial_document/main.tex (c:/Users/user/Documents/programming/trial_document/main.tex LaTeX2e <2023-11-01> patch level 1 L3 programming layer <2024-01-22> (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option) ) \c@part=\count187 \c@section=\count188 \c@subsection=\count189 \c@subsubsection=\count190 \c@paragraph=\count191 \c@subparagraph=\count192 \c@figure=\count193 \c@table=\count194 \abovecaptionskip=\skip48 \belowcaptionskip=\skip49 \bibindent=\dimen140 ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty Package: inputenc 2021/02/14 v1.3d Input encoding file \inpenc@prehook=\toks17 \inpenc@posthook=\toks18 ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/babel\babel.sty Package: babel 2024/01/07 v24.1 The Babel package \babel@savecnt=\count195 \U@D=\dimen141 \l@unhyphenated=\language79 (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/babel\txtbabel.def) \bbl@readstream=\read2 \bbl@dirlevel=\count196 ************************************* * Local config file bblopts.cfg used * (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/arabi\bblopts.cfg File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of babel ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/babel-english\english.ldf Language: english 2017/06/06 v3.3r English support from the babel system Package babel Info: Hyphen rules for 'canadian' set to \l@english (babel) (\language0). Reported on input line 102. Package babel Info: Hyphen rules for 'australian' set to \l@ukenglish (babel) (\language73). Reported on input line 105. Package babel Info: Hyphen rules for 'newzealand' set to \l@ukenglish (babel) (\language73). Reported on input line 108. )) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/babel/locale/en\babel-english.tex Package babel Info: Importing font and identification data for english (babel) from babel-en.ini. Reported on input line 11. ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/comment\comment.sty \CommentStream=\write3 Excluding comment 'comment') (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\biblatex.sty Package: biblatex 2023/03/05 v3.19 programmable bibliographies (PK/MW) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/pdftexcmds\pdftexcmds.sty Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/infwarerr\infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty Package: iftex 2022/02/03 v1.0f TeX engine tests ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/generic/ltxcmds\ltxcmds.sty Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/etoolbox\etoolbox.sty Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count197 ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty Package: keyval 2022/05/29 v1.15 key=value parser (DPC) \KV@toks@=\toks19 ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/kvoptions\kvoptions.sty Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/kvsetkeys\kvsetkeys.sty Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO) )) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/logreq\logreq.sty Package: logreq 2010/08/04 v1.0 xml request logger \lrq@indent=\count198 (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/logreq\logreq.def File: logreq.def 2010/08/04 v1.0 logreq spec v1.0 )) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/base\ifthen.sty Package: ifthen 2022/04/13 v1.1d Standard LaTeX ifthen package (DPC) ) (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/url\url.sty \Urlmuskip=\muskip16 Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. ) \c@tabx@nest=\count199 \c@listtotal=\count266 \c@listcount=\count267 \c@liststart=\count268 \c@liststop=\count269 \c@citecount=\count270 \c@citetotal=\count271 \c@multicitecount=\count272 \c@multicitetotal=\count273 \c@instcount=\count274 \c@maxnames=\count275 \c@minnames=\count276 \c@maxitems=\count277 \c@minitems=\count278 \c@citecounter=\count279 \c@maxcitecounter=\count280 \c@savedcitecounter=\count281 \c@uniquelist=\count282 \c@uniquename=\count283 \c@refsection=\count284 \c@refsegment=\count285 \c@maxextratitle=\count286 \c@maxextratitleyear=\count287 \c@maxextraname=\count288 \c@maxextradate=\count289 \c@maxextraalpha=\count290 \c@abbrvpenalty=\count291 \c@highnamepenalty=\count292 \c@lownamepenalty=\count293 \c@maxparens=\count294 \c@parenlevel=\count295 \blx@tempcnta=\count296 \blx@tempcntb=\count297 \blx@tempcntc=\count298 \c@blx@maxsection=\count299 \blx@maxsegment@0=\count300 \blx@notetype=\count301 \blx@parenlevel@text=\count302 \blx@parenlevel@foot=\count303 \blx@sectionciteorder@0=\count304 \blx@sectionciteorderinternal@0=\count305 \blx@entrysetcounter=\count306 \blx@biblioinstance=\count307 \labelnumberwidth=\skip50 \labelalphawidth=\skip51 \biblabelsep=\skip52 \bibitemsep=\skip53 \bibnamesep=\skip54 \bibinitsep=\skip55 \bibparsep=\skip56 \bibhang=\skip57 \blx@bcfin=\read3 \blx@bcfout=\write4 \blx@langwohyphens=\language80 \c@mincomprange=\count308 \c@maxcomprange=\count309 \c@mincompwidth=\count310 Package biblatex Info: Trying to load biblatex default data model... Package biblatex Info: ... file 'blx-dm.def' found. (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\blx-dm.def File: blx-dm.def 2023/03/05 v3.19 biblatex localization (PK/MW) ) Package biblatex Info: Trying to load biblatex style data model... Package biblatex Info: ... file 'alphabetic.dbx' not found. Package biblatex Info: Trying to load biblatex custom data model... Package biblatex Info: ... file 'biblatex-dm.cfg' not found. \c@afterword=\count311 \c@savedafterword=\count312 \c@annotator=\count313 \c@savedannotator=\count314 \c@author=\count315 \c@savedauthor=\count316 \c@bookauthor=\count317 \c@savedbookauthor=\count318 \c@commentator=\count319 \c@savedcommentator=\count320 \c@editor=\count321 \c@savededitor=\count322 \c@editora=\count323 \c@savededitora=\count324 \c@editorb=\count325 \c@savededitorb=\count326 \c@editorc=\count327 \c@savededitorc=\count328 \c@foreword=\count329 \c@savedforeword=\count330 \c@holder=\count331 \c@savedholder=\count332 \c@introduction=\count333 \c@savedintroduction=\count334 \c@namea=\count335 \c@savednamea=\count336 \c@nameb=\count337 \c@savednameb=\count338 \c@namec=\count339 \c@savednamec=\count340 \c@translator=\count341 \c@savedtranslator=\count342 \c@shortauthor=\count343 \c@savedshortauthor=\count344 \c@shorteditor=\count345 \c@savedshorteditor=\count346 \c@labelname=\count347 \c@savedlabelname=\count348 \c@institution=\count349 \c@savedinstitution=\count350 \c@lista=\count351 \c@savedlista=\count352 \c@listb=\count353 \c@savedlistb=\count354 \c@listc=\count355 \c@savedlistc=\count356 \c@listd=\count357 \c@savedlistd=\count358 \c@liste=\count359 \c@savedliste=\count360 \c@listf=\count361 \c@savedlistf=\count362 \c@location=\count363 \c@savedlocation=\count364 \c@organization=\count365 \c@savedorganization=\count366 \c@origlocation=\count367 \c@savedoriglocation=\count368 \c@origpublisher=\count369 \c@savedorigpublisher=\count370 \c@publisher=\count371 \c@savedpublisher=\count372 \c@language=\count373 \c@savedlanguage=\count374 \c@origlanguage=\count375 \c@savedoriglanguage=\count376 \c@pageref=\count377 \c@savedpageref=\count378 \shorthandwidth=\skip58 \shortjournalwidth=\skip59 \shortserieswidth=\skip60 \shorttitlewidth=\skip61 \shortauthorwidth=\skip62 \shorteditorwidth=\skip63 \locallabelnumberwidth=\skip64 \locallabelalphawidth=\skip65 \localshorthandwidth=\skip66 \localshortjournalwidth=\skip67 \localshortserieswidth=\skip68 \localshorttitlewidth=\skip69 \localshortauthorwidth=\skip70 \localshorteditorwidth=\skip71 Package biblatex Info: Trying to load compatibility code... Package biblatex Info: ... file 'blx-compat.def' found. (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\blx-compat.def File: blx-compat.def 2023/03/05 v3.19 biblatex compatibility (PK/MW) ) Package biblatex Info: Trying to load generic definitions... Package biblatex Info: ... file 'biblatex.def' found. (C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\biblatex.def File: biblatex.def 2023/03/05 v3.19 biblatex compatibility (PK/MW) \c@textcitecount=\count379 \c@textcitetotal=\count380 \c@textcitemaxnames=\count381 \c@biburlbigbreakpenalty=\count382 \c@biburlbreakpenalty=\count383 \c@biburlnumpenalty=\count384 \c@biburlucpenalty=\count385 \c@biburllcpenalty=\count386 \biburlbigskip=\muskip17 \biburlnumskip=\muskip18 \biburlucskip=\muskip19 \biburllcskip=\muskip20 \c@smartand=\count387 C:\Users\user\AppData\Local\Programs\MiKTeX\tex/latex/biblatex\biblatex.def:2353: LaTeX Error: Command \cite already defined. Or name \end... illegal, see p.192 of the manual. See the LaTeX manual or LaTeX Companion for explanation. Type H