So I have a mendeley profile in which I created the bib file for my thesis. For multiple papers i provided multiple URLs (e.g. arxiv and a github repo).
When I cite a paper with multiple URLs the URL key in the bibliogrpahy is messed up. Specifically there is no space inbetween the 2 URLs and on top the link is not correct.
Is there a way to fix this ?
Sample for a bib entry:
@article{ControlNet,
title = {{Adding Conditional Control to Text-to-Image Diffusion Models}},
year = {2023},
author = {Zhang, Lvmin and Rao, Anyi and Agrawala, Maneesh},
month = {2},
url = {http://arxiv.org/abs/2302.05543 https://github.com/lllyasviel/ControlNet},
arxivId = {2302.05543}
}
biblatex setup:
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
citation:
\cite{ControlNet}
============= EDIT
Adapted accordingly to the link provided in the comments: github.com/plk/biblatex/issues/229#issuecomment-279766334
bibtex setup looks like:
%% Setup Bibliography
\usepackage[style=numeric, datamodel=urls]{biblatex}
\DeclareListFormat{urls}{%
\url{#1}%
\ifthenelse{\value{listcount}<\value{liststop}}
{\addcomma\space}
{}}
\renewbibmacro*{url}{\iffieldundef{url}{\printlist{urls}}{\printfield{url}}}
\addbibresource{references.bib}
urls.dbx file:
\DeclareDatamodelFields[type=list, datatype=uri]{urls}
\DeclareDatamodelEntryfields{urls}
Problem still remaining - what am i doing wrong ?