I am trying to write a paper with
revtex4-2
document class (revtex4-2 2020/10/03 4.2e
);.bib
file specifyinglanguage
field for some entries;cleveref
package;- custom theorem (using
\newtheorem
command and\Crefname
for references incleveref
to work correctly).
This, however, results in a compilation failure. Here is a minimal example:
min.tex
:
\documentclass{revtex4-2}
\usepackage{babel}
\usepackage{cleveref}
\newtheorem{myproposition}{Proposition}
\Crefname{myproposition}{Proposition}{Propositions}
\begin{document}
\cite{web:lang:stats}
\bibliography{myrefs}
\end{document}
myrefs.bib
:
@misc{web:lang:stats,
author = {W3Techs},
title = {Usage Statistics of Content Languages for Websites},
language = {English},
year = {2017},
note = {Last accessed 16 September 2017},
url = {http://w3techs.com/technologies/overview/content_language/all}
}
If I put these two files into the same directory with nothing else in it (remove all temp files from previous compilations to make a clean experiment) and run
pdflatex min.tex && bibtex min.aux && pdflatex min.tex
I get
! TeX capacity exceeded, sorry [input stack size=5000].
\extrasenglish ->\extrasenglish
\crefname {myproposition}{\MakeLowercase Pro...
l.12 \babel@aux{english}{}
Why? What did I do wrong?