Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm having an unexpected problem with the authoryear-comp style in Biblatex. See this MWE:

\documentclass{article}
\usepackage[style=authoryear-comp,firstinits=true]{biblatex}
\usepackage[autostyle=false, style=british]{csquotes}

\begin{filecontents}{\jobname.bib}
  @article{JoeDoe2012,
    Author = {Joe Doe},
    Title = {My article's title},
    Journal = {My journal's title},
    Editor = {Ben Editor},
    URL = {http://webpage.com},
  }
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
  \cite{JoeDoe2012}
  \printbibliography
\end{document}

When I compile, instead of getting Doe 2012 when citing, I get the article's title.

enter image description here

Is there something (obvious) I'm forgetting here?

share|improve this question
    
Which error messages do you get? I have biblatex: conflicting options firstinits and uniquename=full ... Do you use biber or bibtex? – Kurt Oct 31 '12 at 0:16
    
I don't get any errors. If I remove firstinits=true, I don't get the warning you mention, but still get the citation wrong. I'm using Biber. – NVaughan Oct 31 '12 at 0:38
    
Which tex distribution and operating system do you use? Which version of biber and biblatex? You can add \listfiles before \documentclass to get this information (for biber version look into file .blg). – Kurt Oct 31 '12 at 1:05

1 Answer 1

up vote 5 down vote accepted

You're missing the year/date field in your bibliography entry.

share|improve this answer
1  
That's right! As Biblatex's documentation explains, authoryear-comp requires both the author and the year field; otherwise it default citing the title. Thanks for noticing. – NVaughan Oct 31 '12 at 1:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/79793/biblatex-problem-with-authoryear-comp-style
tex.stackexchange.com
crawl=CC-MAIN-2015-48
70909
application/http; msgtype=response
sha1:YSSNYHY4J4MVPLK73OV5F6WU732ICBMU
<urn:uuid:6368ac2d-6589-4b54-be10-8e095ebdf0fa>
2015-11-26T14:37:31Z
104.16.116.182
sha1:EIVCW7ONZR7HDAO6BI5QCO6FSI677FXL
<urn:uuid:3e9d29da-6097-4310-8a67-ce74206bfc10>
http://tex.stackexchange.com/questions/79793/biblatex-problem-with-authoryear-comp-style
response
<urn:uuid:7305d9dd-7822-4c0e-a170-e20bae4c1908>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf