TransWikia.com

The multi-letter initial trick {relax Ch}arles doesn't work in biblatex with biber anymore

TeX - LaTeX Asked by Sergei Golovan on June 19, 2021

The code below used to trick biblatex into assuming that the name Charles should be abbreviated as Ch (and not as one letter C.). It still happily works if I replace the backend from biber to bibtex, but emits C. if it’s used as it is.

I’ve tested it on more or less up-to date TeXLive 2020. On the latest TeXLive 2019 it segfaults biber (!). On fairly old TeXLive 2015 it works as supposed to.

Is there any way to create multi-letter initials using the currrent TeXLive and biber?

documentclass{article}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{key,
  author={Doe, {relax Ch}arles},
  title={Some Article Title},
  journal={Some Journal},
  volume={1},
  year={2020}
}
end{filecontents}
usepackage[backend=biber,style=authoryear,firstinits=true]{biblatex}
addbibresource{jobname.bib}
begin{document}
nocite{*}
printbibliography
end{document}

One Answer

You can use the extended input method:

documentclass{article}

begin{filecontents}[overwrite]{ch-init.bib}
@article{key,
  author={given=Charles, given-i={Ch}, family=Doe},
  title={Some Article Title},
  journal={Some Journal},
  volume={1},
  year={2020}
}
end{filecontents}
usepackage[backend=biber,style=authoryear,uniquename=init,giveninits=true]{biblatex}
addbibresource{ch-init.bib}
begin{document}
nocite{*}
printbibliography
end{document}

enter image description here

Correct answer by Ulrike Fischer on June 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP