Take the 2-minute tour ×
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.

While trying the different biblatex referencing styles in texlive 2012, I came upon what I think might be a bug in biblatex-chicago. The access phrase "Visited on" was repeated. Has anyone had the same experience?

Here is the code

\documentclass{article}

\usepackage[style=chicago-authordate,backend=bibtex,]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@online{fat,
author = {},
title = {Fat Secret},
date = {2012},
urldate = {2012-02-24},
url = {http://www.fatsecret.com/Diary.aspx?pa=fjrd&rid=2647991}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}


\printbibliography

\end{document}

Sorry but I can't post pictures yet according to moderator. :)

share|improve this question
2  
You can add the picture with the button; just remove the ! in front of the first [ bracket: a user with enough privileges will reinstate it. I can confirm the "double" "visited on" and also that the output is different if one uses TeX Live 2011 or 2012; with TeX Live 2010 it's correct (and different from the other two). –  egreg Jul 23 '12 at 7:40
2  
I get the same thing. The problem seems to be that a call to \printurldate is adding the "visited", but a fieldformat (urldate) is doing it too. Whether it's related to the recent updating of biblatex, I couldn't say. Anyway, it does look like a bug, and would best be reported as such to David Fussner, since it may affect other things too. –  Paul Stanley Jul 23 '12 at 14:23
    
@egreg, thanks for the tip. –  hpesoj626 Jul 24 '12 at 0:51

1 Answer 1

up vote 5 down vote accepted

As mentioned in the comment the bibliography driver online prints the string \urlseen twice. The error occurs by the following line:

\printtext[urldate]{\printurldate}

which is used very often. biblatex v1.6 or newer uses a special field formatting for printdate and printurldate. That means \pinttext[urldate] and \printurldate are printing the string urlseen. So the easiest way to fix this issue is clearing definition. This can be done with the help of the package xpatch.

I think PLK will fix this in the next release:

\usepackage{xpatch}
\xpatchbibdriver{online}{urldate}{}{}{}

Here the complete MWE:

\documentclass{article}
\usepackage[style=chicago-authordate,backend=bibtex,]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{fat,
author = {},
title = {Fat Secret},
date = {2012},
urldate = {2012-02-24},
url = {http://www.fatsecret.com/Diary.aspx?pa=fjrd&rid=2647991}
}
\end{filecontents}

\addbibresource{\jobname.bib}
\usepackage{xpatch}
\xpatchbibdriver{online}{urldate}{}{}{}
\nocite{*}
\begin{document}
\printbibliography
\end{document}

If you want to change the file chicago-authordate.bbx you can simple replace

\printtext[urldate]{\printurldate} 

by

\printurldate

enter image description here

share|improve this answer
    
thank you very much. At this point I have completely given up trying to understand the source files for the packages. I noticed that the syntax in those files appear like they were written in TeX so I am trying to learn it but it seems it will not be an easy task. Your answer is one less problem for me. Thanks! –  hpesoj626 Aug 6 '12 at 2:11

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.