BibTeX, biblatex and biberciting multiple versions of a reference in one cite

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

citing multiple versions of a reference in one cite

Post by Kreuz Elf »

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:

Code: Select all

@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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Kreuz Elf
Posts: 22
Joined: Thu Mar 04, 2021 7:33 pm

citing multiple versions of a reference in one cite

Post by Kreuz Elf »

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

With the command

Code: Select all

\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:

Code: Select all

@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}
}
Post Reply