I use biblatex
+biber
with some custom orderings. In particular, I desire a very abbreviated bibliography style for my current document as it's very page limited---a grant proposal, basically.
I have been able to set up the fields that I want and in the order that I want. But I don't know how to do two things.
- Remove initials: Instead of
Anonymous Person
being displayed asA. Person
, I would like it to be simplyPerson
. - Remove the
and
conjunction. I'd likeSmith and Thomas
to beSmith, Thomas
.
I am using giveninits=true
as an optional argument which causes Anonymous
to be reduced to A.
. I'm guessing that some adjustment to this is required to solve 1.
.
An extremely hacky \renewcommand{\mkbibnamegiven}[1]{}
removes the initials, however it does replace them with a single whitespace. I guess I can probably remove one piece of whitespace with further hacking. This doesn't seem like the correct way to solve 2.
, though.
I have looked on SE and through our friend the biblatex documentation, but to no avail. It seems like something like
\renewbibmacro{author}{%
\usebibmacro{name:family}
}
should work. But it doesn't not. I get "Error: Bibliography macro '\isdot' undefined" and no names are printed.
I include as minimal a MWE as I dare---I don't want to risk removing more custom commands which may be having an effect.
\documentclass[]{article}
\usepackage[doi=false,isbn=false,url=false,
hyperref=auto,
sorting=nyt,
maxnames=10,
maxcitenames=4,
backend=biber,
texencoding=auto,
giveninits=true,
block=space,
style = numeric,
% style = alphabetic,
% style = authoryear-comp,
% citestyle = authoryear-comp
]{biblatex}
\DeclareNameAlias{sortname}{labelname}
\DeclareDelimFormat{finalnamedelim}{\addcomma\space} % works on biblatex 3.7
%\DeclareDelimAlias{finalnamedelim}{multinamedelim} % doesn't work on 3.7
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{{#1\isdot}}
\DeclareFieldFormat
[article,book,inbook,incollection,inproceedings,patent,thesis,unpublished, online]
{date}{\mkbibparens{#1}}
\DeclareFieldFormat
[article,book,inbook,incollection,inproceedings,patent,thesis,unpublished]
{volume}{\mkbibbold{#1}}
\DeclareFieldFormat
% [article,book,inbook,incollection,inproceedings,patent,thesis,unpublished]
{pages}{\mkbibparens{#1}}
\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author}%
\setunit{\addspace}%
\usebibmacro{date}%
\newunit\newblock
\usebibmacro{title}%
\usebibmacro{finentry}%
}
\usepackage{filecontents}
\begin{filecontents}{foo.bib}
@article{paper,
author = {Me, Andrew and Myself, Bethany and I, Charlie},
title = {BREAKTHROUGH MATHS},
year = {2025}
}
\end{filecontents}
\addbibresource{foo.bib}
\begin{document}
Citation: \cite{paper}
\printbibliography
\end{document}