-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add datelabel = year option setting #148
Comments
Yes, I noticed this when looking at the labeldate stuff. I think we should use |
Sure, I'll take a look on the weekend. But it seems I'm confused. Can you remind me what the rationale was for adding |
Some people wanted to have months etc. in the bibliography label in authoryear styles and wanted to be able to select the month (from urlmonth, eventmonth etc.) just like labelyear. That is, they wanted a fallback list of possible month labels like labelyear. So, I generalised the interface to allow this. This means that You're right that sorting by default doesn't use month/days - another reason we should switch to "yearonly" for authoryear. However, a user could define a sorting scheme which sorted using month, day etc. if they wished. |
I had a look, but it doesn't seem a tidy solution exists without backend changes. Default labels should be \documentclass{article}
%\usepackage[backend=biber,style=authoryear]{biblatex}
\usepackage[backend=bibtex,style=authoryear]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{stdmodel,bertram,shore}
\printbibliography
\end{document} |
Hmm, this is partly due to a bug - I had forgotten to add new label* fields to The other issue is that bib labels now always use labelname(labelyear) now so that they match citations which always use these. The bibtex behaviour is an anomaly since the backend is supposed to enforce "skiplab" on set members which means they should have no labelyear. The problem is that the new date printing doesn't fall back on plain year fields, like it should. I'll look at this too. |
I've looked at this and uploaded 2.7b to the DEV folder (same as dev branch). Perhaps you can check? authoryear style now falls back to year if labelyear isn't defined because set members never have labelyear defined. |
I think that solves the second problem I mentioned, but not the first. We can define and set |
I think for bibtex, I made |
I don't think it is safe to assume that users will always want \documentclass{article}
\usepackage[backend=biber,style=authoryear,date=long,datelabel=short]{biblatex}
\defbibentryset{online}{itzhaki,markey,wassenberg}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{stdmodel,bertram,shore,weinberg,online}
\printbibliography
\end{document} One way around this is to force |
My assumption was that users would more often than not want the bib main date in authoryear styles to match the cite labels so that they can find the bib entries from the citations more certainly. I can't think why anyone wouldn't want them to match since that's the point of a citation? You're right that the set example looks a bit messy and there is certainly a case for making everything "yearonly" by default - this would force the same format for |
Mis-matched labels are a result of the
|
Hmm, I'm not sure what to do about this. The authoryear example doc says "Since this style prints the date label after the author/editor in the bibliography ..." it seems that there is a case for defaulting to label fields in the bibliography but I see your point. Enforcing the same format - I assume you mean enforcing that the options |
Yes, the best solution here isn't obvious. I was thinking of revising However I'm just trying to suggest something that would impose minimal changes on the post 2.5 setup. |
Just to be clear - the MWE above - the issue there is just that we can have The issue of citation labels not exactly matching the bib labels because of mergedate settings has always been the case so I suppose were not concerned with that. |
The issue is that, depending on the backend and entryset membership, some bibliography date labels get printed by
|
Sorry, my mind is a bit scrambled this week and so I apologise if I'm not understanding. I think With |
No need to apologize. I don't think it's you - the problem is confusing and I'm probably not being very clear. The issue I'm trying to raise is that if we impose Instead of using The |
Agreed - we shouldn't be using the vanilla user-level commands in
Now I think we're getting somewhere ... this package is becoming a beast. |
Yes, it is clear. I can handle all the necessary |
Should be done in biblatex 2.8 dev (had to bump the .bbl version string and reset the new field when necessary) and biber 1.8 dev. You will now see
|
Something seems wrong with the biber binary (Linux 64bit). I get the error:
I haven't fully decided on changes to |
Ah, sorry. Should be ok now - I uploaded fixed versions for all platforms. |
I forgot about two pre 2.6 bibtex cases: (1) |
Any luck with this? I'm wondering about 2.8/1.8 release schedule as there have been some needed changes in biber libraries to comply with licensing and it would be nice to release 1.8 soonish ... |
Yes. I'll push the code in the next day or so. I'm reverting to PL's definition of |
Ok, great. I can't seem to find that request at the moment - I think it was on TSE ... |
@aboruvka - I lost track a bit - are we finished with this issue? I was thinking about 2.8 at some point not too distant. |
I think so. Again I've restored I think it is safe to assume that the number of users wanting to merge other dates is very low. In any case such labels shouldn't be encouraged as they print date labels without any qualifier (e.g. |
Are the docs up to date with the new datelabel setting and should we document datelabelsource? |
The first is done from what I recall. The new field needs documenting. I can push changes unless you'd prefer to make them. |
I've updated the docs and so we'll close this for now. |
Author-year styles don't consider month or days in the labels. Considering that, could a
datelabel = year
option setting be added? It perhaps should become the default given that the standard citation styles print onlylabelyear
+extrayear
.The text was updated successfully, but these errors were encountered: