A report I'm writing requires that certain bibliography fields (e.g. book titles) are underlined. I know that some people frown on this, but in this case I have no choice - these are specific requirements for submission.
I first tried this:
Code: Select all
\DeclareFieldFormat[book]{title}{\underline{#1}}
I then tried \uline from ulem, this solves the wrapping/layout problem, but unfortunately the text is double-underlined. Why is this, and how can I avoid it? I would like a single underline only.
Thanks.
Minimal example:
Code: Select all
\documentclass[a4paper,12pt]{book}
\usepackage[normalem]{ulem}
\usepackage[style=authoryear,abbreviate=true,maxnames=2]{biblatex}
\bibliography{refs}
\DeclareFieldFormat[book]{title}{\uline{#1}}
\begin{document}
\textcite{foo}
\printbibliography
\end{document}
Code: Select all
@book{foo,
title = "Book Title",
author = "Book Author",
year = "2011",
}