I'm trying to print all journal titles in my bibliography using title case, while preserving the rest of the entry.
I found this to work for forcing article titles to be sentence case: Sentence case for titles in biblatex
and I was wondering whether a similar thing was possible for title case and journal titles. I'm using biblatex.
Reprex:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape}
\usepackage[T1]{fontenc}
\usepackage[
backend=biber,
style=authoryear,
date=year,
]{biblatex}
% Removes language from entries
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldset=language, null]
}
}
}
% Chapter title formatting and spacing
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\bfseries\Huge}
{\filright}
{1ex}{}[]
\begin{filecontents}[force]{\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}
\addbibresource{\jobname.bib}
\begin{document}
Some text and a ref \autocite{ref1}.
Then another ref with same first author and year \autocite{ref2}
\printbibliography
\end{document}
So in this example the journal title of ref1 would stay the same, while ref2 would have title case.
.bibentries should be carefully curated. – moewe Mar 02 '23 at 16:03.bibentries: https://tex.stackexchange.com/q/386053/35864. Best you can do is always check everything carefully on import. – moewe Mar 04 '23 at 09:50