In chemistry it's quite common to add prefixes to bibitems or even add notes to the references. See some example in literature to give you a hint what I mean. It is not created with LaTeX!
I've fiddled around with biblatex + biber and the \mcite
and \bibnote
comand, but came to no solution. I want to add some text in certain references with subentries before the bibitem.
I created this MWE:
\documentclass[english]{article}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä},germandbls={ß},Euro={€}}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[%
citestyle=numeric-comp,
bibstyle=chem-angew,
sorting=none,
backend=biber,
mcite=true,
subentry,
]{biblatex}
\usepackage{notes2bib}
\usepackage{filecontents}
\begin{filecontents}{example.bib}
@article{Boncella1984,
author = {Boncella, James M. and Andersen, Richard A.},
journal = {Inorg. Chem.},
pages = {432--437},
volume = {23},
year = {1984}
}
@article{Tilley1982,
author = {Tilley, T. Don and Andersen, Richard},
journal = {J. Am. Chem. Soc.},
pages = {1772--1774},
volume = {104},
year = {1982}
}
\end{filecontents}
\addbibresource{example.bib}
\begin{document}
\section{sec1}
This is some nice text I want to cite.\mcite{set1,*Boncella1984,*Tilley1982}
I want to add this note in references.\bibnote{test note}
Here I cite a single paper from the previous set.\cite{Tilley1982} This is how it should look like with included note.\bibnote{See, for example: \fullcite{set1}}
\printbibliography
\end{document}
I'm fine with the subentries how they're created in ref 1 by:
\mcite{set1,*Boncella1984,*Tilley1982}
and with citing members of the set by referencing just one key from the predefined set1:
\cite{Tilley1982}
I'm also fine with notes which I can add to references section like in ref 2 by:
\bibnote{test note}
But I also need to add some text before the bibitem in a certain reference. This should look like in ref 3. However,
\bibnote{See, for example: \fullcite{set1}}
gives me only an endnote followed by a copy of ref 1. This is not applicable as I have to define set1
with \mcite
before, which results of course in 2 referneces. Ref 3 is only for demonstration how it should look like. I'm not able to get a single reference which looks like ref 3. Something like
\bibnote{See, for example:\mcite{set1,*Boncella1984,*Tilley1982}}
doesn't work. It gives me 2 references.
How can I create a reference with text followed by subentries? I also want to have the opportunity to cite single members of the set elsewhere, like in ref 1b.
Edit 1:
This is some nice text I want to cite.\bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}
I want to add this note in references.\bibnote{test note}
Here I cite a single paper from the previous set.\cite{Tilley1982} This is how it should look like with included note.\bibnote{more added text: \fullcite{set1}}
gives me the following:
\bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}
just adds the text followed by reference in brackets as you can see in ref 1 in the 2nd example. I just want to create a reference with subentries in which some text is followed by subentry (a). It should look like in ref 3. However, ref 3 is just constructed to give you the look. It can not be created as "stand alone" reference, only in combination with a second.
Edit 2:
as it seems still not clear. Apllying only this:
\begin{document}
\section{sec1}
This is some nice text I want to cite.\bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}
\printbibliography
\end{document}
gives me the following output:
in which 2 references are created instead of 1 desired and none looks the way I want it.
Edit 3:
Inspired by this question I created an example. However, the added note is of course after the corresponding bibitem as in the quoted question. How can I get the added notes before my bibitems, but still after the reference number [X]? I've got a huge document in which every chapter has its own references. Addition of notes seems to work, however not elegant. Since, my notes are work (chapter) related, I don't want to edit my *.bbl. However, the chosen way with loadfiles
is not very elegant. But I'm still able to place my note in near of \cite
commands. It would be not applicable to put all the notes in the preamble of the document or elsewhere.
To repeat my question: How can I get the added notes in front of my bibiem applying the \loadfiles
option to have them look like ref 3 in above examples?
\documentclass[english]{article}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä},germandbls={ß},Euro={€}}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[%
citestyle=numeric-comp,
bibstyle=chem-angew,
sorting=none,
backend=biber,
mcite=true,
subentry,
loadfiles=true,
]{biblatex}
\usepackage{notes2bib}
\usepackage{filecontents}
\begin{filecontents}{example.bib}
@article{Boncella1984,
author = {Boncella, James M. and Andersen, Richard A.},
journal = {Inorg. Chem.},
pages = {432--437},
volume = {23},
year = {1984}
}
@article{Tilley1982,
author = {Tilley, T. Don and Andersen, Richard},
journal = {J. Am. Chem. Soc.},
pages = {1772--1774},
volume = {104},
year = {1982}
}
\end{filecontents}
\DeclareFieldFormat{annotation}{#1}
\renewbibmacro*{annotation}{
\IfFileExists{notes/note-\thefield{entrykey}.tex}{\par}{}
\printfile[annotation]{notes/note-\thefield{entrykey}.tex}
}
\AtEveryBibitem{
\csappto{blx@bbx@\thefield{entrytype}}{\usebibmacro{annotation}}
}
\addbibresource{example.bib}
\begin{document}
\section{sec1}
\begin{refsection}
This is some text I want to cite.\mcite{set1,*Boncella1984,*Tilley1982}
\begin{filecontents}{notes/note-set1.tex}
hello world
\endinput
\end{filecontents}
\printbibliography
\end{refsection}
\section{sec2}
\begin{refsection}
This is even more text I want to cite.\mcite{set2,*Boncella1984,*Tilley1982}
\begin{filecontents}{notes/note-set2.tex}
hello again
\endinput
\end{filecontents}
\printbibliography
\end{refsection}
\end{document}
library.bib
so I can't reproduce the issue. I tried faking a couple of entries with appropriate names but when I did that, the output looked fine. So either your entries have a twist missing in my fakes or I'm not understanding what the problem is.biblatex-chem
doesn't attempt to cover this: I don't feel there is a workable interface on an automated basis. The way that (some) chemists give compound citations simply doesn't work: there are too many different ways people include notes.