The title for the online entry type will be printed in italic by default when we use \printbibliography in the tex file in which the biblatex package is used. To make the title normal (non italic) we can easily add this line in the preamble:
\DeclareFieldFormat[online]{title}{#1}
What I understand about the meaning of this line (referring to biblatex package page 188) is the following:
- [online] is the entry (reference) type.
- {title} is the field for the [online] entry type.
- The code #1 is the format for which the field (title in this case) will be printed.
I have the following questions:
- Where is the documentation telling us code #1 makes the online title normal instead of italic, the default.
- Is there any other code such as #2, or #3 that makes the field format different?
Below is my tex file:
\documentclass{book}
% to run: step1: pdflatex step 2: biber step3: pdflatex
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{myonline,
author = {my author},
date = {2020},
title = {my title},
url = {https://mywebsite.qrst},
}
\end{filecontents}
\DeclareFieldFormat[online]{title}{#1}
\addbibresource{\jobname.bib}
\begin{document}
\textcite{myonline}
\printbibliography
\end{document}