When I publish a preprint on arXiv, I use eprint and eprinttype fields in my bibtex citations. This nicely converts the identifier into a link and the reference is not cluttered with the whole URL of the article. When the paper gets properly published, I just add the doi field and the person who sees such citation finds the original published version, but also can access the preprint which is not behind a paywall.
How can I do this for medrXiv preprint? eprinttype = {medrxiv} does not work (It just thinks it is an ArXiv preprint). The biblatex package manual does not say anything about medrxiv. I know that medrxiv has a DOI which I can use, but when the paper gets published in a journal it will have another DOI. And two doi fields do not make sense in one citation.
To clarify, I am looking for a general solution, which would work out of the box (no custom definitions), because I want to create a bib code which I would put on my web/Git/ORCID for the people to see how they can cite that particular work.
cite,natbib,biblatex, ...) andbiblatexstyle you use. Ideally you would share your bibliography setup in a short example document (https://tex.meta.stackexchange.com/q/228/35864). Inbiblatexit is fairly easy to add a new eprint type (see the first part of https://tex.stackexchange.com/q/155532/35864: you basically only need to provide a suitable definition in\DeclareFieldFormat{eprint:<new eprint type>}{<code where #1 is the eprint identifier>}). – moewe May 06 '20 at 17:48note. – moewe May 18 '20 at 16:03biblatexat https://github.com/plk/biblatex/issues – moewe May 19 '20 at 19:35