I want to modify the format of title field in references entries of both article and phdthesis. It is odd that the modification only applies to article but not to phdthesis. See the MWE:
\documentclass{article}
\usepackage[%
backend=biber,
style=authoryear,
%citestyle=authoryear,
labelnumber=true,
doi=true,
url=true
]{biblatex}
\makeatletter
\input{numeric.bbx}
\makeatother
\DeclareFieldFormat[article,phdthesis]{title}{\textit{#1}}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{Foo,
title={Book title1 whatever whatever whatever and tuff tuff
and gong gong},
author={Author1, AB and Author2, CD and Author3, EF},
year= {Year1},
}
@book{Bar,
title={Book title2},
author={Author2, AB},
year= {Year2},
}
@phdthesis{xyz,
title={why declarefieldformat command doesn't apply to phdthesis},
author={Author4, AB},
year={2000},
}
@article{abc,
author = {Author, New},
year = {2014},
title = {the format of article entry could be changed with D.},
pages = {16--25},
number = {9},
journal = {Biblatex },
}
\end{filecontents}
\addbibresource{test.bib}
\begin{document}
text\footcite{Foo}, and text\footcite{Bar}
text\footcite{xyz}, and text\footcite{abc}
%\nocite{*}
\printbibliography
\end{document}
Did I do something wrong?
\mkbibemph{#1}:-), although I will admit that\newrobustcmd*{\mkbibemph}{\emph}... – moewe Aug 12 '15 at 18:24biblatex.defalways use\mkbibemph{#1}, so I think it is a nice note to also keep doing it in one's modifications. – moewe Aug 12 '15 at 19:18