I am using BibLaTeX+Biber to generate the bibliography of my thesis. I use a customised bibliography styles (based on BiBLaTeX' numeric-comp
).
For example, here is my style definition for "inproceedings" entries, along with some redefined helper commands:
%load numeric-comp
\RequireBibliographyStyle{numeric-comp} %in turn that one requires standard.bbx
%This redefines the doi+eprint+url macro from standard.bbx (biblatex v1.6).
% Changes: \newblock instead of \newunit\newblock, to avoid periods after DOIs (\newunit = ". ")
% It should be prettier that way because we put DOIs and URLs on a new line (see below).
% Does not print eprint (for now)
\renewbibmacro*{doi+eprint+url}{%
\iftoggle{bbx:doi}
{\printfield{doi}}
{}%
\newblock
%\iftoggle{bbx:eprint}
% {\usebibmacro{eprint}}
% {}%
%\newblock
\iftoggle{bbx:url}
{\usebibmacro{url+urldate}}
{}}
%Override declarations from biblatex.def (biblatex v1.6); Changes: newlines before DOI, URL, ISSN, ISBN and ISRN (+ colon in same font as label)
\DeclareFieldFormat{doi}{%
\\\mkbibacro{DOI\addcolon}\space
\ifhyperref
{\href{http://dx.doi.org/#1}{#1}} %used to be \nolinkurl{#1} instead of #1, which is a clever trick but it I don't want the font mismatch with issn/isbn numbers (since (nolink)urls are using a different font)
{#1}} %idem
\DeclareFieldFormat{url}{\\\mkbibacro{URL\addcolon}\space\url{#1}}
\DeclareFieldFormat{isbn}{\\\mkbibacro{ISBN\addcolon}\space #1}
\DeclareFieldFormat{isrn}{\\\mkbibacro{ISRN\addcolon}\space #1}
\DeclareFieldFormat{issn}{\\\mkbibacro{ISSN\addcolon}\space #1}
%%For (in)proceedings: only print publication date when keyword "-showpubdate" is present (to avoid repetion, date is usually already in booktitle or booksubtitle)
%%Based on publisher+location+date macro from standard.bbx (biblatex v1.6).
\newbibmacro*{publisher+location+pubdate}{%
\printlist{location}%
\iflistundef{publisher}
{\setunit*{\addcomma\space}}
{\setunit*{\addcolon\space}}%
\printlist{publisher}%
\ifkeyword{-showpubdate}%
{\setunit*{\addcomma\space}%
\usebibmacro{date}}%
{}%
\newunit}
% Inproceedings (changes: also print ISSN; disable event+venue+date, in our database this is already in the booktitle field, no time/use to split it off)
\DeclareBibliographyDriver{inproceedings}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{in:}%
\usebibmacro{maintitle+booktitle}%
\newunit\newblock
%%%\usebibmacro{event+venue+date}%!!! (disabled)
%%%\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
\iffieldundef{maintitle}
{\iffieldundef{series}% !!!
{\printfield{volume}}% !!!
{}% !!!
\printfield{part}}
{}%
\newunit
\printfield{volumes}%
\newunit\newblock
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%
\newunit\newblock
\printlist{organization}%
\newunit
\usebibmacro{publisher+location+pubdate}%
\newunit\newblock
\usebibmacro{chapter+pages}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}%
\iftoggle{bbx:isbn}
{\printfield{isbn}
\newblock
\printfield{issn}
}
{}%
\newblock
\usebibmacro{doi+eprint+url}%
}
Now consider this entry:
@INPROCEEDINGS{Stevens2010a,
author = {{M}atthias {S}tevens and {E}llie {D}'{H}ondt},
title = {{C}rowdsourcing of {P}ollution {D}ata using {S}martphones},
booktitle = {Proceedings of the Workshop on Ubiquitous Crowdsourcing, held at
Ubicomp '10 (Copenhagen, Denmark, September 26-29, 2010)},
year = {2010},
month = {September},
url = {http://soft.vub.ac.be/Publications/2010/vub-tr-soft-10-15.pdf}
}
When I cite this somewhere in the text using \cite{Stevens2010a}
, this produces the following entry in the bibliography:
This is what I want it to look like. Notice the "." before the newline and "URL".
But when I put an in-place citation (in the text itself) using \fullcite{Stevens2010a}
, the result is:
Notice that here the "." is missing.
Does anyone know how I can make the \fullcite
result look exactly like the \cite
result? Or in other words, how I can add that "." in the \fullcite
result?
`
to mark your inline code as I did in my edit. So you don't always have to use<code>
. Bigger blocks of code simply indent by 4 spaces instead of writing<code>
and<pre>
(see meta.tex.stackexchange.com/questions/1192/…).