Biblatex Numeric Style – Replace Square with Round Brackets

biblatex

Suppose you have this MWE using numeric style with Biblatex

\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}

\usepackage[italian]{babel}
\usepackage{csquotes} % needed if also biblatex is used

\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{references.bib}

\begin{document}

\section{Conclusion}
Adams said ``I always thought something was fundamentally wrong with the universe'' \cite{adams1995hitchhiker}.

\printbibliography

\end{document}

What is the best way to replace square brackets with round brackets in both citations and bibliography?

Best Answer

Update

With biblatex-ext styles, things are a little bit easier since you can use their cite delimiter feature.

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=ext-numeric]{biblatex}

\DeclareOuterCiteDelims{parencite}{\bibopenparen}{\bibcloseparen}
\DeclareOuterCiteDelimsAlias{cite}{parencite}
\DeclareInnerCiteDelims{textcite}{\bibopenparen}{\bibcloseparen}

\DeclareFieldFormat{labelnumberwidth}{\mkbibparens{#1}}
\DeclareFieldFormat{shorthandwidth}{\mkbibparens{#1}}

\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem \autocite{sigfridsson}
Lorem \autocites{sigfridsson}{worman}
Lorem \cite{sigfridsson}

\printbibliography
\end{document}

Without biblate-ext

With

\DeclareFieldFormat{labelnumberwidth}{\mkbibparens{#1}}
\DeclareFieldFormat{shorthandwidth}{\mkbibparens{#1}}

you get round brackets in the bibliography, for citations you need to copy the definitions from numeric.cbx and change \mkbibbrackets into \mkbibparens

\DeclareCiteCommand{\cite}[\mkbibparens]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
\DeclareMultiCiteCommand{\cites}[\mkbibparens]{\cite}{\multicitedelim}

\DeclareCiteCommand{\parencite}[\mkbibparens]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
\DeclareMultiCiteCommand{\parencites}[\mkbibparens]{\parencite}{\multicitedelim}

More radical is

\renewrobustcmd{\mkbibbrackets}{\mkbibparens}

or even

\let\bibopenbracket\bibopenparen
\let\bibclosebracket\bibcloseparen

where all square brackets are replaced by round brackets. This can lead to problems if you do want square brackets in other places in your citations/bibliography.


Note that you will need more intricate tricks for some of the more advanced numeric-derived styles and \textcite.

Related Question