biber
biber copied to clipboard
Problem with the name of the datafield set
If the name of the datafield set contains uppercase characters...
\DeclareDatafieldSet{NAME}{
\member[...]
}
\DeclareStyleSourcemap{
\maps{
\map[foreach={NAME}]{
\step[fieldsource=\regexp{$MAPLOOP}, match=..., replace=...]
}
}
}
... the sourcemapping fails.
Is there any particular reason why loopval must be written in lower case?
Looks like a bug. Which combinations of upper/lower for the set name and loopval don't work?
- set name can be written in any way (upper case, CamelCase, etc.)
loopvalcan be written only in lower case- if set name is written in upper case and
loopvalis written in lower case, the sourcemapping works fine - but, if set name is written in lower case and
loopvalis written in upper case, the sourcemapping fails
Can you try 2.20 DEV version from SF? I think this should be fixed.
I just downloaded and installed biber 2.21 (beta). Unfortunately, nothing has changed.
Works now for me - which platform binary did you download of 2.20?
\documentclass{article}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareDatafieldSet{TEST}{
\member[field=title]
}
\DeclareStyleSourcemap{
\maps{
\map[foreach={TEST}]{
\step[fieldsource=\regexp{$MAPLOOP}, match=a, replace=z]
}
}
}
\begin{document}
\cite{kastenholz}
\printbibliography
\end{document}
I'm typesetting on macos 14.5 (Sonoma, latest version) and use the MacTeX-2024 Distribution.
I downloaded and installed the binary compressed into biber-darwin_x86_64.tar
Hmm, can you get 2.21 dev version from sourceforge? This works for me with the above example.
I just reinstalled. Now it works, thanks.