6

I'm using BibLaTeX for my bibliography, with the the following options:

\usepackage[backend=bibtex8, citestyle=numeric, defernumbers=true, bibstyle=numeric, autocite=superscript]{biblatex}

I would like to know how I could use roman numerals instead of arabic numerals for enumerating bibliography entries. I have already found that question, but the answer doesn't entirely suit my needs.

What I want is something like this:

Some text. [I]

Bibliography

[I] The corresponding reference.

Instead of this:

Some text. [1]

Bibliography

[1] The corresponding reference.

Thanks in advance!

6

It should be enough to have

\DeclareFieldFormat{labelnumber}{\Rn{#1}}

for lowercase numerals, or

\DeclareFieldFormat{labelnumber}{\RN{#1}}

for uppercase numerals.

If a shorthand is present it is used instead of a number, but still the labelnumber format seems to apply, so something like

\DeclareFieldFormat{labelnumber}{\ifinteger{#1}{\RN{#1}}{#1}}

is a bit safer.

MWE

\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=numeric,backend=biber]{biblatex}

\DeclareFieldFormat{labelnumber}{\RN{#1}}

\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,geer,wilde,worman,knuth:ct:a}

\printbibliography
\end{document}

picture of MWE output


Since biblatex version 3.1 and more specifically commit e5c2826 the fix previously contained in this answer is obsolete; it has been removed (but can be of course be found in the revision history).

  • I have added a bug report (#342) about the labelnumberwidth calculation. – moewe Oct 7 '15 at 6:53
  • 2
    Thanks to @moewe for the bug report - this width issue will be fixed in the next biblatex release. – PLK Oct 10 '15 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.