[Tex/LaTex] biblatex & references: unpublished style with eprint

biblatex

The biblatex unpublished style does not offer the eprint & eprinttype fields. Would you know how to add them (if possible).

Best Answer

I'm not sure if this is a good idea (a work with eprint information may be considered as "published"), but here's how to do it: In the bibliography driver for @unpublished, the bibmacro url+urdate needs to be replaced by the bibmacro doi+eprint+url (which also includes url+urldate).

\documentclass{article}

\usepackage{biblatex}

\DeclareBibliographyDriver{unpublished}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \printfield{howpublished}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{location+date}%
%  \newunit\newblock% DELETED
%  \iftoggle{bbx:url}% DELETED
%    {\usebibmacro{url+urldate}}% DELETED
%    {}% DELETED
  \newunit\newblock% NEW
  \usebibmacro{doi+eprint+url}% NEW
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@unpublished{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
  eprint = {(eprint_information)},
}
\end{filecontents}

\bibliography{\jobname}

\begin{document}

\nocite{*}

\printbibliography

\end{document}
Related Question