How to get the lettering in citeyear?











up vote
1
down vote

favorite












I have the following document



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage{xunicode}
usepackage{polyglossia}
usepackage[maxlevel=3]{csquotes}
usepackage{graphicx}
usepackage[style=authoryear, language=french]{biblatex}
setmainfont[Ligatures=TeX]{FreeSerif}
setmainlanguage{french}
setotherlanguage{english}
usepackage{placeins}

usepackage{setspace}
onehalfspacing


When, for instance, I use the code:



parencite{Boin2000} and parencite{Boin2000b} 


I get the following result:




Boin, 2000a and Boin, 2000b




But when I use the code:



citeyear{Boin2000} and citeyear{boin2000b}


I only get:




2000 and 2000




Boin2000 and Boin2000b are related to the following .bib document:



@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}


and



 @Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}


What should I do to also get the letters "a" and "b" that differentiate the two different references with citeyear?










share|improve this question
























  • if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
    – aeroNotAuto
    Mar 13 '15 at 14:12















up vote
1
down vote

favorite












I have the following document



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage{xunicode}
usepackage{polyglossia}
usepackage[maxlevel=3]{csquotes}
usepackage{graphicx}
usepackage[style=authoryear, language=french]{biblatex}
setmainfont[Ligatures=TeX]{FreeSerif}
setmainlanguage{french}
setotherlanguage{english}
usepackage{placeins}

usepackage{setspace}
onehalfspacing


When, for instance, I use the code:



parencite{Boin2000} and parencite{Boin2000b} 


I get the following result:




Boin, 2000a and Boin, 2000b




But when I use the code:



citeyear{Boin2000} and citeyear{boin2000b}


I only get:




2000 and 2000




Boin2000 and Boin2000b are related to the following .bib document:



@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}


and



 @Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}


What should I do to also get the letters "a" and "b" that differentiate the two different references with citeyear?










share|improve this question
























  • if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
    – aeroNotAuto
    Mar 13 '15 at 14:12













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have the following document



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage{xunicode}
usepackage{polyglossia}
usepackage[maxlevel=3]{csquotes}
usepackage{graphicx}
usepackage[style=authoryear, language=french]{biblatex}
setmainfont[Ligatures=TeX]{FreeSerif}
setmainlanguage{french}
setotherlanguage{english}
usepackage{placeins}

usepackage{setspace}
onehalfspacing


When, for instance, I use the code:



parencite{Boin2000} and parencite{Boin2000b} 


I get the following result:




Boin, 2000a and Boin, 2000b




But when I use the code:



citeyear{Boin2000} and citeyear{boin2000b}


I only get:




2000 and 2000




Boin2000 and Boin2000b are related to the following .bib document:



@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}


and



 @Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}


What should I do to also get the letters "a" and "b" that differentiate the two different references with citeyear?










share|improve this question















I have the following document



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage{xunicode}
usepackage{polyglossia}
usepackage[maxlevel=3]{csquotes}
usepackage{graphicx}
usepackage[style=authoryear, language=french]{biblatex}
setmainfont[Ligatures=TeX]{FreeSerif}
setmainlanguage{french}
setotherlanguage{english}
usepackage{placeins}

usepackage{setspace}
onehalfspacing


When, for instance, I use the code:



parencite{Boin2000} and parencite{Boin2000b} 


I get the following result:




Boin, 2000a and Boin, 2000b




But when I use the code:



citeyear{Boin2000} and citeyear{boin2000b}


I only get:




2000 and 2000




Boin2000 and Boin2000b are related to the following .bib document:



@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}


and



 @Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}


What should I do to also get the letters "a" and "b" that differentiate the two different references with citeyear?







biblatex bibliographies cross-referencing citing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 12 '15 at 15:56

























asked Mar 11 '15 at 17:22









Leo

338312




338312












  • if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
    – aeroNotAuto
    Mar 13 '15 at 14:12


















  • if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
    – aeroNotAuto
    Mar 13 '15 at 14:12
















if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
– aeroNotAuto
Mar 13 '15 at 14:12




if your concerns have been addressed, you might consider accepting the answer that moewe gave you...
– aeroNotAuto
Mar 13 '15 at 14:12










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted










That citeyear does not print the additional letter (the extrayear field) makes sense if you think about the application of the citeyear command: It is used to write things like "In 2000 Foo finally succeeded in publishing the proof.", not to identify a citation; that is where other cite commands such as cite, textcite come in.



citeyear has a starred variant citeyear* that also prints the extrayear.
From the code this might lead to complications if the labeldate was not actually taken from date but from origdate (for example), then extrayear pertains to origdate, not to date, but the letter is affixed to origdate.



These first two solutions do not have hyper-linking enabled by default though.



You can suppress the mentioning of the author in authoryear and authortitle styles with cite*. When using a authoryear style this effectively amounts to only printing the year (the labelyear actually) and extryear if need be.



If for some reason cite* does not work (or has not been implemented in custom styles) and you are concerned about the corner case for citeyear* I mentioned above, we can define it ourselves by



DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}


MWE



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[style=authoryear,backend=biber]{biblatex}
usepackage{hyperref}
addbibresource{biblatex-examples.bib}

DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}

begin{document}
citeyear{knuth:ct:b} and citeyear{knuth:ct:c}

citeyear*{knuth:ct:b} and citeyear*{knuth:ct:c}

cite*{knuth:ct:b} and cite*{knuth:ct:c}

citelabelyear{knuth:ct:b} and citelabelyear{knuth:ct:c}
end{document}


enter image description here






share|improve this answer























  • oh, awesome, i totally read that wrong!
    – aeroNotAuto
    Mar 12 '15 at 16:45










  • I use indeed hyperref, so cite* does the job well.
    – Leo
    Mar 12 '15 at 17:05


















up vote
0
down vote













This isn't really an answer, but I figured it'd be too long for a comment...



I really need a MWE like this to know if this is a duplicate question or not. Are you using biblatex and if so, what version? There is a chance that your question has already been answered here, which describes a bug that an update might fix.



If you're not using biblatex or that question does not apply to your situation, we at least need to see what your .bib contents for boin2000 and boin2000b look like. These are user defined labels, so I don't think they tell us very much, in and of themselves.



Edit:



I've been able to reproduce your problem with biblatex v2.9a using the following MWE



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{test.bib}
@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}
@Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}
@Book{Anderson2003,
author = {Anderson, John D.},
title = {Modern Compressible Flow},
publisher = {McGraw-Hill},
year = {2003},
}
end{filecontents*}

usepackage[backend=bibtex,style=authoryear]{biblatex}
addbibresource{test}

begin{document}
My first citation should be citeyear{Boin2000}, my second citeyear{Boin2000b}, and my third citeyear{Anderson2003}.
printbibliography
end{document}


which results in



citationExample



and reproduces your problem. Asking around to see if this is still a bug in version 2.9a...






share|improve this answer























  • i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
    – aeroNotAuto
    Mar 11 '15 at 19:00










  • Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
    – Leo
    Mar 12 '15 at 14:40












  • This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
    – moewe
    Mar 12 '15 at 16:17













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f232580%2fhow-to-get-the-lettering-in-citeyear%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










That citeyear does not print the additional letter (the extrayear field) makes sense if you think about the application of the citeyear command: It is used to write things like "In 2000 Foo finally succeeded in publishing the proof.", not to identify a citation; that is where other cite commands such as cite, textcite come in.



citeyear has a starred variant citeyear* that also prints the extrayear.
From the code this might lead to complications if the labeldate was not actually taken from date but from origdate (for example), then extrayear pertains to origdate, not to date, but the letter is affixed to origdate.



These first two solutions do not have hyper-linking enabled by default though.



You can suppress the mentioning of the author in authoryear and authortitle styles with cite*. When using a authoryear style this effectively amounts to only printing the year (the labelyear actually) and extryear if need be.



If for some reason cite* does not work (or has not been implemented in custom styles) and you are concerned about the corner case for citeyear* I mentioned above, we can define it ourselves by



DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}


MWE



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[style=authoryear,backend=biber]{biblatex}
usepackage{hyperref}
addbibresource{biblatex-examples.bib}

DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}

begin{document}
citeyear{knuth:ct:b} and citeyear{knuth:ct:c}

citeyear*{knuth:ct:b} and citeyear*{knuth:ct:c}

cite*{knuth:ct:b} and cite*{knuth:ct:c}

citelabelyear{knuth:ct:b} and citelabelyear{knuth:ct:c}
end{document}


enter image description here






share|improve this answer























  • oh, awesome, i totally read that wrong!
    – aeroNotAuto
    Mar 12 '15 at 16:45










  • I use indeed hyperref, so cite* does the job well.
    – Leo
    Mar 12 '15 at 17:05















up vote
5
down vote



accepted










That citeyear does not print the additional letter (the extrayear field) makes sense if you think about the application of the citeyear command: It is used to write things like "In 2000 Foo finally succeeded in publishing the proof.", not to identify a citation; that is where other cite commands such as cite, textcite come in.



citeyear has a starred variant citeyear* that also prints the extrayear.
From the code this might lead to complications if the labeldate was not actually taken from date but from origdate (for example), then extrayear pertains to origdate, not to date, but the letter is affixed to origdate.



These first two solutions do not have hyper-linking enabled by default though.



You can suppress the mentioning of the author in authoryear and authortitle styles with cite*. When using a authoryear style this effectively amounts to only printing the year (the labelyear actually) and extryear if need be.



If for some reason cite* does not work (or has not been implemented in custom styles) and you are concerned about the corner case for citeyear* I mentioned above, we can define it ourselves by



DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}


MWE



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[style=authoryear,backend=biber]{biblatex}
usepackage{hyperref}
addbibresource{biblatex-examples.bib}

DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}

begin{document}
citeyear{knuth:ct:b} and citeyear{knuth:ct:c}

citeyear*{knuth:ct:b} and citeyear*{knuth:ct:c}

cite*{knuth:ct:b} and cite*{knuth:ct:c}

citelabelyear{knuth:ct:b} and citelabelyear{knuth:ct:c}
end{document}


enter image description here






share|improve this answer























  • oh, awesome, i totally read that wrong!
    – aeroNotAuto
    Mar 12 '15 at 16:45










  • I use indeed hyperref, so cite* does the job well.
    – Leo
    Mar 12 '15 at 17:05













up vote
5
down vote



accepted







up vote
5
down vote



accepted






That citeyear does not print the additional letter (the extrayear field) makes sense if you think about the application of the citeyear command: It is used to write things like "In 2000 Foo finally succeeded in publishing the proof.", not to identify a citation; that is where other cite commands such as cite, textcite come in.



citeyear has a starred variant citeyear* that also prints the extrayear.
From the code this might lead to complications if the labeldate was not actually taken from date but from origdate (for example), then extrayear pertains to origdate, not to date, but the letter is affixed to origdate.



These first two solutions do not have hyper-linking enabled by default though.



You can suppress the mentioning of the author in authoryear and authortitle styles with cite*. When using a authoryear style this effectively amounts to only printing the year (the labelyear actually) and extryear if need be.



If for some reason cite* does not work (or has not been implemented in custom styles) and you are concerned about the corner case for citeyear* I mentioned above, we can define it ourselves by



DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}


MWE



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[style=authoryear,backend=biber]{biblatex}
usepackage{hyperref}
addbibresource{biblatex-examples.bib}

DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}

begin{document}
citeyear{knuth:ct:b} and citeyear{knuth:ct:c}

citeyear*{knuth:ct:b} and citeyear*{knuth:ct:c}

cite*{knuth:ct:b} and cite*{knuth:ct:c}

citelabelyear{knuth:ct:b} and citelabelyear{knuth:ct:c}
end{document}


enter image description here






share|improve this answer














That citeyear does not print the additional letter (the extrayear field) makes sense if you think about the application of the citeyear command: It is used to write things like "In 2000 Foo finally succeeded in publishing the proof.", not to identify a citation; that is where other cite commands such as cite, textcite come in.



citeyear has a starred variant citeyear* that also prints the extrayear.
From the code this might lead to complications if the labeldate was not actually taken from date but from origdate (for example), then extrayear pertains to origdate, not to date, but the letter is affixed to origdate.



These first two solutions do not have hyper-linking enabled by default though.



You can suppress the mentioning of the author in authoryear and authortitle styles with cite*. When using a authoryear style this effectively amounts to only printing the year (the labelyear actually) and extryear if need be.



If for some reason cite* does not work (or has not been implemented in custom styles) and you are concerned about the corner case for citeyear* I mentioned above, we can define it ourselves by



DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}


MWE



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[style=authoryear,backend=biber]{biblatex}
usepackage{hyperref}
addbibresource{biblatex-examples.bib}

DeclareCiteCommand{citelabelyear}
{boolfalse{citetracker}%
boolfalse{pagetracker}%
usebibmacro{prenote}}
{printtext[bibhyperlink]{iffieldundef{labelyear}
{printfield{year}}
{printfield{labelyear}%
iffieldundef{extrayear}
{}
{printfield{extrayear}}}}}
{multicitedelim}
{usebibmacro{postnote}}

begin{document}
citeyear{knuth:ct:b} and citeyear{knuth:ct:c}

citeyear*{knuth:ct:b} and citeyear*{knuth:ct:c}

cite*{knuth:ct:b} and cite*{knuth:ct:c}

citelabelyear{knuth:ct:b} and citelabelyear{knuth:ct:c}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered Mar 12 '15 at 16:11









moewe

82.6k8105317




82.6k8105317












  • oh, awesome, i totally read that wrong!
    – aeroNotAuto
    Mar 12 '15 at 16:45










  • I use indeed hyperref, so cite* does the job well.
    – Leo
    Mar 12 '15 at 17:05


















  • oh, awesome, i totally read that wrong!
    – aeroNotAuto
    Mar 12 '15 at 16:45










  • I use indeed hyperref, so cite* does the job well.
    – Leo
    Mar 12 '15 at 17:05
















oh, awesome, i totally read that wrong!
– aeroNotAuto
Mar 12 '15 at 16:45




oh, awesome, i totally read that wrong!
– aeroNotAuto
Mar 12 '15 at 16:45












I use indeed hyperref, so cite* does the job well.
– Leo
Mar 12 '15 at 17:05




I use indeed hyperref, so cite* does the job well.
– Leo
Mar 12 '15 at 17:05










up vote
0
down vote













This isn't really an answer, but I figured it'd be too long for a comment...



I really need a MWE like this to know if this is a duplicate question or not. Are you using biblatex and if so, what version? There is a chance that your question has already been answered here, which describes a bug that an update might fix.



If you're not using biblatex or that question does not apply to your situation, we at least need to see what your .bib contents for boin2000 and boin2000b look like. These are user defined labels, so I don't think they tell us very much, in and of themselves.



Edit:



I've been able to reproduce your problem with biblatex v2.9a using the following MWE



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{test.bib}
@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}
@Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}
@Book{Anderson2003,
author = {Anderson, John D.},
title = {Modern Compressible Flow},
publisher = {McGraw-Hill},
year = {2003},
}
end{filecontents*}

usepackage[backend=bibtex,style=authoryear]{biblatex}
addbibresource{test}

begin{document}
My first citation should be citeyear{Boin2000}, my second citeyear{Boin2000b}, and my third citeyear{Anderson2003}.
printbibliography
end{document}


which results in



citationExample



and reproduces your problem. Asking around to see if this is still a bug in version 2.9a...






share|improve this answer























  • i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
    – aeroNotAuto
    Mar 11 '15 at 19:00










  • Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
    – Leo
    Mar 12 '15 at 14:40












  • This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
    – moewe
    Mar 12 '15 at 16:17

















up vote
0
down vote













This isn't really an answer, but I figured it'd be too long for a comment...



I really need a MWE like this to know if this is a duplicate question or not. Are you using biblatex and if so, what version? There is a chance that your question has already been answered here, which describes a bug that an update might fix.



If you're not using biblatex or that question does not apply to your situation, we at least need to see what your .bib contents for boin2000 and boin2000b look like. These are user defined labels, so I don't think they tell us very much, in and of themselves.



Edit:



I've been able to reproduce your problem with biblatex v2.9a using the following MWE



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{test.bib}
@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}
@Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}
@Book{Anderson2003,
author = {Anderson, John D.},
title = {Modern Compressible Flow},
publisher = {McGraw-Hill},
year = {2003},
}
end{filecontents*}

usepackage[backend=bibtex,style=authoryear]{biblatex}
addbibresource{test}

begin{document}
My first citation should be citeyear{Boin2000}, my second citeyear{Boin2000b}, and my third citeyear{Anderson2003}.
printbibliography
end{document}


which results in



citationExample



and reproduces your problem. Asking around to see if this is still a bug in version 2.9a...






share|improve this answer























  • i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
    – aeroNotAuto
    Mar 11 '15 at 19:00










  • Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
    – Leo
    Mar 12 '15 at 14:40












  • This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
    – moewe
    Mar 12 '15 at 16:17















up vote
0
down vote










up vote
0
down vote









This isn't really an answer, but I figured it'd be too long for a comment...



I really need a MWE like this to know if this is a duplicate question or not. Are you using biblatex and if so, what version? There is a chance that your question has already been answered here, which describes a bug that an update might fix.



If you're not using biblatex or that question does not apply to your situation, we at least need to see what your .bib contents for boin2000 and boin2000b look like. These are user defined labels, so I don't think they tell us very much, in and of themselves.



Edit:



I've been able to reproduce your problem with biblatex v2.9a using the following MWE



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{test.bib}
@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}
@Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}
@Book{Anderson2003,
author = {Anderson, John D.},
title = {Modern Compressible Flow},
publisher = {McGraw-Hill},
year = {2003},
}
end{filecontents*}

usepackage[backend=bibtex,style=authoryear]{biblatex}
addbibresource{test}

begin{document}
My first citation should be citeyear{Boin2000}, my second citeyear{Boin2000b}, and my third citeyear{Anderson2003}.
printbibliography
end{document}


which results in



citationExample



and reproduces your problem. Asking around to see if this is still a bug in version 2.9a...






share|improve this answer














This isn't really an answer, but I figured it'd be too long for a comment...



I really need a MWE like this to know if this is a duplicate question or not. Are you using biblatex and if so, what version? There is a chance that your question has already been answered here, which describes a bug that an update might fix.



If you're not using biblatex or that question does not apply to your situation, we at least need to see what your .bib contents for boin2000 and boin2000b look like. These are user defined labels, so I don't think they tell us very much, in and of themselves.



Edit:



I've been able to reproduce your problem with biblatex v2.9a using the following MWE



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{test.bib}
@Book{Boin2000,
Title = {The Politics of Environment},
Author = {Boin, Mathis},
Publisher = {Cambridge University Press},
Year = {2000},}
@Book{Boin2000b,
Title = {What is Environment},
Author = {Boin, Mathis},
Publisher = {Environment Policies Review},
Year = {2000},}
@Book{Anderson2003,
author = {Anderson, John D.},
title = {Modern Compressible Flow},
publisher = {McGraw-Hill},
year = {2003},
}
end{filecontents*}

usepackage[backend=bibtex,style=authoryear]{biblatex}
addbibresource{test}

begin{document}
My first citation should be citeyear{Boin2000}, my second citeyear{Boin2000b}, and my third citeyear{Anderson2003}.
printbibliography
end{document}


which results in



citationExample



and reproduces your problem. Asking around to see if this is still a bug in version 2.9a...







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 13 '17 at 12:36









Community

1




1










answered Mar 11 '15 at 18:52









aeroNotAuto

1,54821321




1,54821321












  • i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
    – aeroNotAuto
    Mar 11 '15 at 19:00










  • Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
    – Leo
    Mar 12 '15 at 14:40












  • This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
    – moewe
    Mar 12 '15 at 16:17




















  • i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
    – aeroNotAuto
    Mar 11 '15 at 19:00










  • Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
    – Leo
    Mar 12 '15 at 14:40












  • This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
    – moewe
    Mar 12 '15 at 16:17


















i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
– aeroNotAuto
Mar 11 '15 at 19:00




i originally tried to enter this as a comment, and with the code for the links, the character count was 666. creepy.
– aeroNotAuto
Mar 11 '15 at 19:00












Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
– Leo
Mar 12 '15 at 14:40






Ok I have added the MWE as you asked. I tried to simplify at the maximum, so I hope nothing is missing. I also have checked the other topics, but it didn't seem to match.
– Leo
Mar 12 '15 at 14:40














This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
– moewe
Mar 12 '15 at 16:17






This is actually not a bug, but expected behaviour. One needs to use other commands to also see the extrayear.
– moewe
Mar 12 '15 at 16:17




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f232580%2fhow-to-get-the-lettering-in-citeyear%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt