# Living Reviews in Relativity Biblatex style (simplified [DOI], [ADS], [ARXIV] identifiers)

I would like to emulate this style of bibliography present in numerous Living Reviews in Relativity(Springer). Specifically, the Arxiv, DOI and ADS identifier all simplified in square brackets like the picture. I am familiar with the use of biblatex, but I couldn´t find a way to correctly implement this style. Currently I have

\usepackage[backend=bibtex,style=numeric,citestyle=numeric-comp,natbib=true,sorting=nyt,language=english,bibstyle=numeric,backref=true,giveninits=true]{biblatex}
with e.g.

@ARTICLE{2016PhRvD..94l4038D,
author = {{De Laurentis}, Mariafelicia and {Porth}, Oliver and {Bovard}, Luke and
title = "{Constraining alternative theories of gravity using GW150914 and GW151226}",
journal = {\prd},
keywords = {General Relativity and Quantum Cosmology},
year = "2016",
month = "Dec",
volume = {94},
number = {12},
eid = {124038},
pages = {124038},
doi = {10.1103/PhysRevD.94.124038},
archivePrefix = {arXiv},
eprint = {1611.05766},
primaryClass = {gr-qc},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}


• Welcome to TeX.SE! Please show us a short compilable tex code you have tried so far and do not forget to add two used bib entries to your question! – Mensch Jul 2 at 22:26

You'll have to redefine the relevant field formats. You can find the defaults in biblatex.def, ll. 445-501 in v3.12.

The main changes involve adding \mkbibbrackets and changing the text argument of \href. Note that I removed the \ifhyperref test in some formats, which means that the code now requires hyperref (and indeed it makes little sense just to print "DOI" if no link can be attached to it, so I think this is an acceptable change).

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

\usepackage[backend=bibtex, style=numeric-comp, sorting=nyt,
giveninits=true,
natbib=true, backref=true]{biblatex}

\DeclareFieldFormat{doi}{%
\mkbibbrackets{%
\href{https://doi.org/#1}{\mkbibacro{DOI}}}}

\makeatletter
\DeclareFieldFormat{eprint:arxiv}{%
\mkbibbrackets{%
\ifhyperref
{\href{https://arxiv.org/\abx@arxivpath/#1}{%
\iffieldundef{eprintclass}
{}
\iffieldundef{eprintclass}
{}
\makeatother

\mkbibbrackets{%

\begin{document}
\cite{sigfridsson,baez/article,wassenberg,kastenholz,wilde}
\printbibliography
\end{document}


from the original livrevrel.bst file:

% shows DOI and links doi
FUNCTION {format.doi}
{ doi empty${ "" } {"{\small[\href{http://dx.doi.org/" doi * "}{DOI" * "}]}" *} if$
}

• The question is how I can implement this in the Biblatex environment. – Hodek Mealstrom Jul 3 at 21:18