5

I'd like to typeset my bibliography (which currently contains > 100 entries) and I'm strongly considering using biblatex. I'd like to try some alternatives, being one of them printing the title of an entry in bold. To that end, following the suggestion on the usage of biblatex that another user gave me, I wrote the tex code below that uses \DeclareFieldFormat{title}{\textbf{#1}}. However I only get in bold the titles for books, manuals, miscs, technical reports, but this is ignored for articles, inproceedings and unpublished work.

Which is the field from those type of entries that I need to tune in biblatex in order to print their titles in bold?

\begin{filecontents*}{biblio.bib}
@ARTICLE{ar,
         author    = {Author-ar},
         title     = {ar}}
@inproceedings{inp,
         author    = {Author-inp},
         title     = {inp}}
@unpublished{unp,
         author    = {Author-unp},
         title     = {unp}}
@techreport{tr,
         author    = {Author-tr},
         title     = {tr}}
@misc{mi,
         author    = {Author-mi},
         title     = {misc}}
@MANUAL{ma,
         author    = {Author-ma},
         title     = {manual}}
@BOOK{bo,
         author    = {Author-bo},
         title     = {book}}
\end{filecontents*}

\documentclass{article}
\usepackage[backend=bibtex8]{biblatex}
\bibliography{biblio}
\DeclareFieldFormat{title}{\textbf{#1}}
\begin{document}
Hello ~\cite{ar,inp,unp,tr,mi,ma,bo}.
\printbibliography[title={References}]
\end{document}

Generated output:

Output for the previous code

2
  • 2
    try to use the starred version: \DeclareFieldFormat*{title}{\textbf{#1}} <- overrides existing formats as well
    – musicman
    Commented Jul 15, 2014 at 11:35
  • You're welcome. I've added an answer so we can close this question.
    – musicman
    Commented Jul 15, 2014 at 12:33

1 Answer 1

6

As soon as you set custom field formats, i.e. \DeclareFieldFormat[article]{title}{\textbf{#1}} the version without optional parameter \DeclareFieldFormat{title}{\textbf{#1}} is only applicated to entry types which have no custom format yet: @book, @inproceedings etc. – but not @article!

The starred version \DeclareFieldFormat*{title}{\textbf{#1}} will set the field format for every entry type, and overwrite them if necessary.

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .