Closed sieversMartin closed 2 years ago
Oh, bugger!
Thank you very much for reporting this issue. It's caused by delaying loading the case changer for #1058.
I'll have to see how we can fix this properly, but in the meantime a workaround is to use \AtBeginDocument
so that the case changing code is already loaded when \DeclareCaseLangs
is issued.
\documentclass{article}
\usepackage{biblatex}
\AtBeginDocument[biblatex/declarecaselangs]{%
\DeclareCaseLangs{}%
}
\DeclareHookRule{begindocument}{biblatex/declarecaselangs}{after}{biblatex}
\begin{document}
Test
\end{document}
Now also on TeX.SX: https://tex.stackexchange.com/q/578647/35864
This should be fixed by https://github.com/plk/biblatex/commit/15a62fb5bb227db5ef613aaa13778d92bd190f29 where we no longer delay loading the case changing code to \AtBeginDocument
(because of https://tex.stackexchange.com/q/581409/35864).
That said, I find \DeclareCaseLangs{}
a bit odd. If you don't want sentence casing, it would be more natural to redefine the titlecase
field format not to apply \MakeSentenceCase
(the default \DeclareFieldFormat{titlecase}{#1}
in biblatex.def
is not to apply sentence casing).
edit It seems that \DeclareCaseLangs{}
was used in muya.bbx
to suppress unified
's sentence case
\DeclareFieldFormat[%
article,book,collection,incollection,inproceedings,thesis,unpublished]%
{titlecase}{\MakeSentenceCase*{#1}}%
To do that job, I'd just go with
\DeclareFieldFormat*{titlecase}{#1}%
Got me :-) Thanks for the suggestion. I'll change that for my project.
biblatex
3.17 with the fix for this issue has been released and is available in both MikTeX and TeX live. The MWE from the first post now compiles without error.
After the latest update I get
! Undefined control sequence.
for\DeclareCaseLangs
. As the macro is still documented and used inbiblatex.sty
, I must have missed something here.