[tex-live] bug in biblatex2.sty

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jul 3 12:45:20 CEST 2013


On 03/07/2013 11:16, Harald Koenig wrote:
> Hi,
> 
> I just noticed that texmf-dist/tex/latex/biblatex/biblatex2.sty is buggy 
> [at least] in both tex-live 2012 and 2013 -- here my fix:
> 
> --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ---
> --- biblatex2.sty.orig  2013-07-03 11:42:01.199860208 +0200
> +++ texmf-dist/tex/latex/biblatex/biblatex2.sty   2013-07-03 11:44:57.093318777 +0200
> @@ -8750,11 +8750,11 @@
>    #2%
>    ~~~~~~</bcf:map>\blx at nl}
>  \xdef\blx at xml@sourcemap at perdatasource#1{%
> -  ~~~~~~~~<bcf:per_datasource>#1</bcf:per_datasource>\blx at nl}
> +  ~~~~~~~~<bcf:per\string_datasource>#1</bcf:per\string_datasource>\blx at nl}
>  \xdef\blx at xml@sourcemap at pertype#1{%
> -  ~~~~~~~~<bcf:per_type>#1</bcf:per_type>\blx at nl}
> +  ~~~~~~~~<bcf:per\string_type>#1</bcf:per\string_type>\blx at nl}
>  \xdef\blx at xml@sourcemap at step#1{%
> -  ~~~~~~~~<bcf:map_step#1/>\blx at nl}
> +  ~~~~~~~~<bcf:map\string_step#1/>\blx at nl}
>  
>  \xdef\blx at xml@labelalphatemplate#1#2{%
>    ~~<bcf:labelalphatemplate type="#1">\blx at nl
> --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ---
> 
> without this change, biblatex will create entries like these in project.bcf :
> 
>   <!-- SOURCEMAP -->
>   <bcf:sourcemap>
>     <bcf:maps datatype="bibtex" level="driver">
>       <bcf:map>
>         <bcf:map\unhbox \voidb at x \penalty \@M \hskip \z at skip \T1\textunderscore \discretionary {-}{}{}\penalty \@M \hskip \z at skip step map_type_source="conference" map_type_target="inproceedings"/>
>         <bcf:map\unhbox \voidb at x \penalty \@M \hskip \z at skip \T1\textunderscore \discretionary {-}{}{}\penalty \@M \hskip \z at skip step map_type_source="electronic" map_type_target="online"/>
>         <bcf:map\unhbox \voidb at x \penalty \@M \hskip \z at skip \T1\textunderscore \discretionary {-}{}{}\penalty \@M \hskip \z at skip step map_type_source="www" map_type_target="online"/>
>       </bcf:map>
>       ...
> 
> 
> instead of 
> 
>   <!-- SOURCEMAP -->
>   <bcf:sourcemap>
>     <bcf:maps datatype="bibtex" level="driver">
>       <bcf:map>
>         <bcf:map_step map_type_source="conference" map_type_target="inproceedings"/>
>         <bcf:map_step map_type_source="electronic" map_type_target="online"/>
>         <bcf:map_step map_type_source="www" map_type_target="online"/>
>       </bcf:map>
> 
> 
> 
> 
> please fix & forward to the biblatex developers...
> 
> 
> thanks,
> 
> Harald

Bug reports for packages should in general go to the appropriate
maintainers: TeX Live takes the material 'as is' from CTAN.

Could you report this with a full MWE at
https://github.com/plk/biblatex/issues. In particular, I think there
must be some additional package loading going on. (Using \string here is
probably sensible, but still best to cover this.)
-- 
Joseph Wright


More information about the tex-live mailing list