To force reference titles to a sentence case I use the following line in my .bbx
style file:
\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{titlecase}{\MakeSentenceCase*{#1}}
But this also causes the journal name to be written in sentence case, which is unwanted.
Why is that and how can I circumvent that?
A minimal example:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{ref1,
author = {Doe, J. and Dane, D., and Dewy, R.},
year = {2000},
title = {This and That},
journal = {Journal of Deep Understanding of Things},
}
@article{ref2,
author = {Doe, J. and Dewy, D., and Dane, R.},
year = {2000},
title = {The Other},
journal = {Journal of deep understanding of things},
}
\end{filecontents}
\usepackage[style=authoryear-comp,natbib=true,
maxcitenames = 2,
mincitenames = 1,
firstinits = true,
labelyear=true,
uniquename=false,
uniquelist=false,
terseinits = false,
backend=biber]{biblatex}
\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{titlecase}{\MakeSentenceCase*{#1}}
\addbibresource{\jobname.bib}
\begin{document}
Some text and a ref \citep{ref1}.
Then another ref with same first author and year \citep{ref2}
\printbibliography
\end{document}
gives:
instead of: