Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
\documentclass{article}
\usepackage[style=numeric]{biblatex}
\renewbibmacro*{event+venue+date}{%
\printfield{eventtitle}%
\newunit
\printfield{eventtitleaddon}%
\newunit
\printfield{venue}%
\setunit*{\addcomma\space}%
\printeventdate%
\newunit}
\makeatletter
\DefineBibliographyExtras{english}{%
\protected\def\mkbibdatelong#1#2#3{%
\iffieldbibstring{#1}
{\bibstring{\thefield{#1}}}
{\dateeraprintpre{#1}\stripzeros{\thefield{#1}}}%
\iffieldundef{#2}
{}
{\iffieldundef{#1}{}{\space}%
\mkbibmonth{\thefield{#2}}%
\iffieldundef{#3}
{}
{\nobreakspace}}%
\iffieldundef{#3}
{}
{\stripzeros{\thefield{#3}}}%
}%
%
\protected\gdef\lbx@us@mkdaterangetrunc@long#1#2{%
\begingroup
\blx@metadateinfo{#2}%
\iffieldundef{#2year}
{}
{\printtext[#2date]{%
\datecircaprint
\iffieldundef{#2season}
{\csuse{mkbibdate#1}{#2year}{#2month}{#2day}%
\blx@printtime{#2}{}}%
{\csuse{mkbibseasondate#1}{#2year}{#2season}}%
\dateeraprint{#2year}%
\dateuncertainprint
\iffieldundef{#2endyear}
{}
{\iffieldequalstr{#2endyear}{}
{\mbox{\bibdaterangesep}}
{\bibdaterangesep
\enddatecircaprint
\iffieldundef{#2season}
{\iffieldsequal{#2year}{#2endyear}
{\iffieldsequal{#2month}{#2endmonth}
{\csuse{mkbibdate#1}{}{}{#2endday}}
{\csuse{mkbibdate#1}{}{#2endmonth}{#2endday}}}
{\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
\blx@printtime{#2}{end}}
{\iffieldsequal{#2year}{#2endyear}
{\csuse{mkbibseasondate#1}{}{#2endseason}}
{\csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}}%
\enddateuncertainprint
\dateeraprint{#2endyear}}}}}%
\endgroup}%
%
\protected\gdef\lbx@us@mkdaterangetruncextra@long#1#2{%
\begingroup
\blx@metadateinfo{#2}%
\iffieldundef{#2year}
{}
{\printtext[#2date]{%
\datecircaprint
\iffieldundef{#2season}
{\csuse{mkbibdate#1}{#2year}{#2month}{#2day}%
\blx@printtime{#2}{}}%
{\csuse{mkbibseasondate#1}{#2year}{#2season}}%
\dateeraprint{#2year}%
\dateuncertainprint
\iffieldundef{#2endyear}
{\printfield{extradate}}
{\iffieldequalstr{#2endyear}{}
{\printfield{extradate}%
\mbox{\bibdaterangesep}}
{\bibdaterangesep
\enddatecircaprint
\iffieldundef{#2season}
{\iffieldsequal{#2year}{#2endyear}
{\iffieldsequal{#2month}{#2endmonth}
{\csuse{mkbibdate#1}{}{}{#2endday}}
{\csuse{mkbibdate#1}{}{#2endmonth}{#2endday}}}
{\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
\blx@printtime{#2}{end}}
{\iffieldsequal{#2year}{#2endyear}
{\csuse{mkbibseasondate#1}{}{#2endseason}}
{\csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}}%
\printfield{extradate}%
\enddateuncertainprint
\dateeraprint{#2endyear}}}}}%
\endgroup}%
%
}
\makeatletter
\usepackage{filecontents}
\begin{filecontents*}{database.bib}
@inproceedings{Baker2011,
author = {Baker, Christopher R. and Dolan, John M. and Wang, Shige and Litkouhi, Bakhtiar B.},
bookpagination = {page},
booktitle = {2011 IEEE Int. Conf. Robotics and Automation},
doi = {10.1109/ICRA.2011.5980355},
eventdate = {2011-05-09/2011-05-13},
eventtitle = {2011 IEEE International Conference on Robotics and Automation (ICRA 2011)},
isbn = {978-1-61284-386-5},
keywords = {software architecture},
pages = {6071--6077},
publisher = {IEEE},
location = {Piscataway, NJ},
title = {Toward adaptation and reuse of advanced robotic software},
venue = {Shanghai, China},
year = {2011}
}
\end{filecontents*}
\addbibresource{database.bib}
\begin{document}
\nocite{Baker2011}
\printbibliography
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.