I want to make journal names nonitalic using biblatex. Is there a way to do this using DeclareFieldFormat?
I could change article names to italics using DeclareFieldFormat and I want to make journal names nonitalic in a similar way. I use
\documentclass[11pt]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage[style=alphabetic, backend=biber, giveninits=true]{biblatex}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=2, strside=left, ifnames=1]{labelname}
\field[strwidth=1, strside=left]{labelname}
}
}
\DeclareFieldFormat{extraalpha}{#1}
\DeclareNameAlias{author}{first-last}
\renewbibmacro{in:}{}
\DefineBibliographyExtras{english}{%
\renewcommand*{\finalnamedelim}{\addcomma\addspace}%
}
\DeclareFieldFormat[article]{title}{\textit{#1}}
\DeclareFieldFormat{citetitle}{\textit{#1}}
\DeclareFieldFormat*[article]{title}{\textit{#1}}
\DeclareFieldFormat[article,book]{title}{\textit{#1}}
\DeclareFieldFormat*[article]{citetitle}{\textit{#1}}
\DeclareFieldFormat[article,book, thesis]{citetitle}{\textit{#1}}
\bibliography{sample}
\begin{document}
\printbibliography
\end{document}
When I run this all of the journal names (of articles) in sample.bib are shown in italics.
\DeclareFieldFormat{journaltitle}{#1\isdot}so pretty much using the same strategy as fortitles, but keeping in mind that thejournalfield is internally calledjournaltitle. – moewe Oct 10 '18 at 19:41\mkbibitalic(or\mkbibemph) instead of\textitin bibliography-related stuff like\DeclareFieldFormat– moewe Oct 10 '18 at 19:47[url=false]for biblatex is not working to remove URL tag on online references. Is there a way to getting rig of URL tag? – 512122 Oct 10 '18 at 19:56\textitby\mkbibitalicor\textit{#1}by\mkbibitalic{#1}.url=falsedoes not remove the URLs for@onlineentries by design since it is assumed that they somehow need to retain a URL even if it is suppressed for other types (given that an@onlineentry could potentially have a DOI or aneprintit does not necessarily need a URL to make sense, so that assumption may be seen as infelicitous, but that's how it is). See https://tex.stackexchange.com/q/113039/35864 for more radical solutions. – moewe Oct 10 '18 at 20:00