LaTeX forum ⇒ BibTeX, biblatex and biberciting multiple versions of a reference in one cite Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Kreuz Elf
Posts: 10
Joined: Thu Mar 04, 2021 7:33 pm

citing multiple versions of a reference in one cite

Postby Kreuz Elf » Sun May 22, 2022 10:33 pm

Hey. For the journal "Angewandte Chemie" (german, short Angew. Chem.) there are english Versions to each article, which are published in the separate journal "Angewandte Chemie Internationale Edition" (short: Angew. Chem. Int. Ed.). My Prof is holding on to citing those articles in a way, that in the continuos text there will be just the number of the reference, but in the bibliography there shall be a kind of enumeration with both versions like this:

[1] a) A. A. L. Michalchuk, F. Emmerling, Zeitaufgelöste In-Situ-Untersuchungen von mechanochemischen Reaktionen, Angew. Chem., 2022, 134, e202117270.
b) A. A. L. Michalchuk, F. Emmerling, Time-Resolved In Situ Monitoring of Mechanochemical Reactions, Angew. Chem. Int. Ed., 2022, 61, e202117270.

the bibtex for this being:
@article{michalchuk2022zeitaufgeloste,
  title={Zeitaufgel{\"o}ste In-Situ-Untersuchungen von mechanochemischen Reaktionen},
  author={Michalchuk, Adam AL and Emmerling, Franziska},
  journal={Angewandte Chemie},
  volume={134},
  number={21},
  pages={e202117270},
  year={2022},
  publisher={Wiley Online Library}
}
@article{michalchuk2022time,
  title={Time-Resolved In Situ Monitoring of Mechanochemical Reactions},
  author={Michalchuk, Adam AL and Emmerling, Franziska},
  journal={Angewandte Chemie International Edition},
  volume={61},
  number={21},
  pages={e202117270},
  year={2022},
  publisher={Wiley Online Library}
}


I haven't yet found a way to do this in an automated way with biblatex. Please tell me there is one. Maybe even code it into the .bib-file itself.

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
Kreuz Elf
Posts: 10
Joined: Thu Mar 04, 2021 7:33 pm

citing multiple versions of a reference in one cite  Topic is solved

Postby Kreuz Elf » Sat Jun 11, 2022 2:14 pm

Well, after searching really long I finally found a way to get this done myself. The solution is called bibentrysets.

With the command
\defbibentryset
you can group multiple entries of the bibfile together as a set and give this set a new key for further reference. This new key has to go in the first brackets; the "real" keys of the original bibentries have to go into the second brackets and have to be comma-seperated. That should give the desired outcome. I present here a minimal example. It is important to add the "subentry" attribute when using the biblatex package. If I don't add this attribute the references will still appear but will be interpunctuated just with a semicolon; there won't be alphabetical sorting with a) and b). All other attributes are optional and just part of my preferred style.

\documentclass[ngerman,a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[subentry, style=numeric-comp, autocite=superscript, sorting=none]{biblatex}
\bibliography{lit.bib}
\defbibentryset{angew-michalchuk}{michalchuk2022zeitaufgeloste,michalchuk2022time}

\begin{document}
My referenced text\autocite{angew-michalchuk}
\printbibliography
\end{document}


lit.bib:
@article{michalchuk2022zeitaufgeloste,
  title={Zeitaufgelöste In-Situ-Untersuchungen von mechanochemischen Reaktionen},
  author={Michalchuk, Adam AL and Emmerling, Franziska},
  journal={Angewandte Chemie},
  volume={134},
  number={21},
  pages={e202117270},
  year={2022},
  publisher={Wiley Online Library}
}
@article{michalchuk2022time,
  title={Time-Resolved In Situ Monitoring of Mechanochemical Reactions},
  author={Michalchuk, Adam AL and Emmerling, Franziska},
  journal={Angewandte Chemie International Edition},
  volume={61},
  number={21},
  pages={e202117270},
  year={2022},
  publisher={Wiley Online Library}
}


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests