-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@unpublished creates spurious extradate letters #1302
Comments
Can you post this to tex.stackexchange.com as you will get better help for a question like this there as this isn't confirmed as an issue with |
It appears this is nontheless an issue with |
Reducing the code a bit, I agree that the result in \documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=authoryear,
]{biblatex}
\usepackage{hyperref}
\defbibcheck{noshorthand}{%
\iffieldundef{shorthand}{}{\skipentry}%
}
\begin{filecontents}{\jobname.bib}
@unpublished{GB-dt,
title = {[Volkswagen am Abgrund]},
author = {Bell, Aron},
location = {{National- und Universitätsbibliothek Hobbingen, ID: 000889748}},
howpublished = {Manuskript},
langid = {ngerman},
shorthand = {GB-dt},
note = {Anonyme Übersetzung},
}
@book{BT-dt,
title = {Herzen im Feuer: Schauspiel},
author = {Bell, Aron},
translator = {Alten, Egon},
publisher = {{Die Resterampe}},
location = {{Berlin}},
langid = {ngerman},
shorthand = {BT-dt}
}
@incollection{alexander,
title = {Language and identity},
booktitle = {Entangled histories of the {{Balkans}}},
author = {Alexander, Ronelle},
editor = {Daskalov, Roumen and Marinov, Tchavdar},
volume = {1},
pages = {341--417},
location = {{Leiden, Boston}},
langid = {english}
}
@incollection{alexandera,
title = {Language1 and identity},
booktitle = {Entangled histories of the {{Balkans}}},
author = {Alexander, Ronelle},
editor = {Daskalov, Roumen and Marinov, Tchavdar},
volume = {1},
pages = {341--417},
location = {{Leiden, Boston}},
langid = {english}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Test \cite{alexander, alexandera}
as well as \cite{BT-dt} and \cite{GB-dt} and
\printshorthands[heading=subbibliography, title={Shorthands}]
\printbibliography[heading=subbibliography,title={No shorthands},check=noshorthand]
\end{document} is a bit unexpected: Since the entries with I understand that at the moment Biber does not take into account the presence of |
|
Thank you very much. The fact (cf. @moewew's remark) that |
The problem is, they are only superfluous if the style always uses the shorthand. |
On the other hand, is it then perhaps feasible to construct an entry type that has an |
I think I found the solution, viz. how to switch off
|
Well, deleting the entire |
I think here it appears you misunderstand me. By removing
from the above code, I meant not including those lines of code. This should then result in having the default. The default as per the specs (p. 241) is:
But with a shorthand list in the bibliography, this default obviously does not produce the expected output, i.e., it yields the erroneous alphabetical order of |
Ah, sorry, I see. This is expected with the default settings as both biblists are in the same refsection and there are four entries with the same labelname in the refsection. They are just artificially split up into two lists. |
Exactly, that's what I was thinking. I'm just not too sure if we want another option or if this could better be integrated into
I don't think this would be a good idea for the |
Hmm. I think in the following MWE something more is at play \documentclass{article}
\usepackage[german,ngerman]{babel}
\usepackage[
backend=biber,
style=authoryear
]{biblatex}
\usepackage{csquotes}
\usepackage{hyperref}
\defbibcheck{noshorthand}{%
\iffieldundef{shorthand}{}{\skipentry}%
}
\begin{filecontents}{\jobname.bib}
@book{book,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings},
year = {2013},
shorthand = {PR2013}
}
@book{book2,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings},
year = {2013},
shorthand = {PR2013-a}
}
@book{book1,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings},
year = {2013},
}
@book{book3,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My2 Proceedings},
year = {2013},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{book, book1, book2, book3}
\printshorthands[heading=subbibliography, title={Shorthands}]
\printbibliography[heading=subbibliography,title={No shorthands},check=noshorthand]
\end{document} generates
for me. In particular the entries are all different, but "2013b" is assigned twice. As far as I can see the problem is that the |
Well, this is a very odd example since |
I can offer \documentclass{article}
\usepackage[german,ngerman]{babel}
\usepackage[
backend=biber,
style=authoryear
]{biblatex}
\usepackage{csquotes}
\usepackage{hyperref}
\defbibcheck{noshorthand}{%
\iffieldundef{shorthand}{}{\skipentry}%
}
\begin{filecontents}{\jobname.bib}
@book{book,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings D},
year = {2013},
shorthand = {PR2013}
}
@book{book2,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings B},
year = {2013},
shorthand = {PR2013-a}
}
@book{book1,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings C},
year = {2013},
}
@book{book3,
editor = {Senor Editor and Senora Editora},
publisher = {Any Publisher},
title = {My Proceedings A},
year = {2013},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{book, book1, book2, book3}
\printshorthands[heading=subbibliography, title={Shorthands}]
\printbibliography[heading=subbibliography,title={No shorthands},check=noshorthand]
\end{document} which gives Here "2013a" is used twice for different works. |
Hmm, what is happening here is that extra* information is calculated per-datalist. Shorthands are a special case as they usually accompany a normal bibliography. |
This and similar irregularities is precisely the unexpected behaviour I have been observing, too. |
I'm not sure what to do here. You have to calculate |
Hmmm. While some of the situations we create here might be artificial (or at least highly unlikely), I think at least some of the issues discussed here are a symptom of the general principle that different biblists and refcontexts (e.g. sorting) are given as completely separate datalists in the I mentioned something like this before in #1009 (comment). Maybe I need to draw up a more concrete plan of what that should look like and we can discuss its advantages and disadvantages in more detail and see if it can be implemented in |
I don't think we can do this since sorting is specifiable at a biblist level and therefore extra* labels can differ between lists. This is only really an issue when you have more than one list for the same data (which is common with shorthand lists and they are always sorted by shorthand so very different sorting from standard biblists). Need to think a bit about what can be done here. |
The problem is not only about having twice "2013a". The real or more disturbing problem is rather the irregular alphabetical order or omissions in the alphabetical assignment of |
True, but I don't think people always want sorting based on recalculated |
Thanks a lot for this additional comment and your explanation as well as thanks, @plk, for the other useful pieces of information. |
I have got a bibliography with several documents from archives and unpublished sources. I am using the
@unpublished
entry type to include them in my bibliography. Since these documents have no proper publication date, I have basically two kinds of entries, viz.@unpublished
, usually without a date indicated and withnodate
being suppressed vs. all other entry types where instead ofnodate
the German equivalent "o. J." is output.Unfortunately, now,
@unpublished
interferes withextradate
. So, in the MWE given below, even ifGB-dt
belonging to the@unpublished
entry type does not have a date and even ifnodate
is later on suppressed in the bibliography output of the entries, we find a second entryBT-dt
in the bibliography being output asBT-dt Aron Bell (o. J.[a]). ...
. The expected result should rather beBT-dt Aron Bell (o. J.). ...
. Apparently, the problem is thatGB-dt
has the same author asBT-dt
and is also undated. So removing the author from all@unpublished
entry types with\DeclareSourcemap
helps produceBT-dt Aron Bell (o. J.). ...
. But, unfortunately, then the author information of@unpublished
entries is lost, which is not what I would like to have in the end, either.Could you help me find a better solution without the spurious extradate letters in non-
@unpublished
entry types when these are undated?MWE
As I mentioned the only way to somehow solve the issue for the moment is to remove the author from
@unpublished
:The text was updated successfully, but these errors were encountered: