TransWikia.com

Double surname abbreviated in citations only

TeX - LaTeX Asked by frabala on August 15, 2021

In my bibliography I have an author with a double surname (say, Pata Kata).
When I cite this author in the text, it appears as (Pata Kata <year>), but I would like it to appear as (P. Kata <year>) in the citation only (that is, in the bibliography list, I still want it to be printed as "Pata Kata, F.", where "F" is the author’s first-name initial). Manually changing the author field to

author = {P. Kata, Firstname}

in the bib entry, would also change how the author appears in the bibliography list. So this is not a solution. I tried to use the relax command in the authors field, like so:

author = {{relax{}P}ata} Kata, Firstname}

but it doesn’t work. The citation is still printed as (Pata Kata <year>).

In case it matters, in my bibliography I also have an author with a single surname, which coincides with the first author’s second surname (Kata). This author should be cited as (Kata <year>).

Something important is that I need a solution for the biber backend. I do not want to have to change to bibtex, because it does not provide biber’s flexibilities and I already use quite a few biber features.

Here is a MWE:

documentclass{article}
usepackage[utf8]{inputenc}
usepackage[backend=biber,uniquelist=minyear,style=authoryear-comp,
            giveninits=true,uniquename=init]{biblatex}
begin{filecontents}{papers.bib}
 @INPROCEEDINGS{ref1,
    author = {{relax{}P}ata Kata, Firstname},
    title = {The title of Pata Kata's article},
    year = {1997},
    booktitle= {The Proceedings of this conference}
}
@INPROCEEDINGS{ref2,
    author = {Kata, Anotherfirstname},
    title = {Another title},
    year = {2000},
    booktitle= {The Proceedings of that conference}
}
end{filecontents}
addbibresource{papers.bib}

begin{document}
First citation is~parencite{ref1} and second is~parencite{ref2}.

printbibliography
end{document}

enter image description here

One Answer

You need to add the following to the bib file: shortauthor = {P. Kata, Firstname}, i.e.

documentclass{article}
usepackage[utf8]{inputenc}
usepackage[backend=biber,uniquelist=minyear,style=authoryear-comp,
            giveninits=true,uniquename=init]{biblatex}
begin{filecontents}{papers.bib}
 @INPROCEEDINGS{ref1,
    author = {Pata Kata, Firstname},
    shortauthor = {P. Kata, Firstname},
    title = {The title of Pata Kata's article},
    year = {1997},
    booktitle= {The Proceedings of this conference}
}
@INPROCEEDINGS{ref2,
    author = {Kata, Anotherfirstname},
    title = {Another title},
    year = {2000},
    booktitle= {The Proceedings of that conference}
}
end{filecontents}
addbibresource{papers.bib}

begin{document}
First citation is~parencite{ref1} and second is~parencite{ref2}.

printbibliography
end{document}

Correct answer by hair-splitter on August 15, 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