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.

I've just recently started using the biblatex package (with the biblatex-ieee style), and I've run into a small problem. I've looked at the .bbx file, and it seems like it should be easy to change, although I'm perhaps not familiar enough with this to see how.

I have a citation with a title ending in a question mark, such as:

@article{Doe2012,
author={Doe, J.},
title={This title is a question?},
journal={Proc. IEEE},
year={2012},
volume={1234},
number={12},
pages={345--678},
month={Dec.},
}

This produces the something looking like:

[1] J. Doe, “This title is a question?,” Proc. IEEE, vol. 1234, no. 12, pp. 345–678, Dec. 2012.

I would like to remove the comma following the question mark. The bibtex version of the IEEE style does not do this, and I don't remember seeing this kind of double-punctuation in any IEEE publications. Naturally, I would like to keep the comma if the title does not end in a punctuation mark. Otherwise, I think I could just use \nopunct.

Can anyone see how I might modify the style file to change this behaviour?

share|improve this question
    
Probably a bug in biblatex-ieee: I will take a look. –  Joseph Wright Dec 4 '12 at 6:56
1  
Fixed in upcoming release: you can just use \uspunctuation in your preamble as a fix without needing babel. –  Joseph Wright Dec 4 '12 at 20:50
    
Okay, that's good to have as well. Thanks for your help! –  Tyler Dec 4 '12 at 23:21
add comment

1 Answer

up vote 4 down vote accepted

You need to load the babel package.

\documentclass{article}
\usepackage[style=ieee,backend=biber]{biblatex}
\usepackage[american]{babel}
\begin{filecontents}{\jobname.bib}
@article{Doe2012,
author={Doe, J.},
title={This title is a question?},
journal={Proc. IEEE},
year={2012},
volume={1234},
number={12},
pages={345--678},
month={Dec.},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{Doe2012}
\printbibliography
\end{document}

biblatex is aware of babel and uses it when deciding on how to deal with punctuation inside quotation marks.

output of code

share|improve this answer
    
Ah, brilliant! Thank you very much! –  Tyler Dec 4 '12 at 14:13
add comment

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.