The source below, along with the biblatex.cfg shown, produces this bibliography that includes backrefs:
Even without any backrefs, each item in the printed bibliography ends with a period.
How can do the following...
- move the final period so as to go before the backref?
- insert a period after each backref's closing parenthesis?
- change each backref's parentheses to square brackets?
... so that the bibliography will look like this:
The source:
% File backref.tex
\begin{filecontents}{testbib.bib}
@article{article,
author = {Author, An},
title = {An article},
journal = {Articles},
volume = {1}, pages = {1--2}, year = {2021},
}
@book{book,
author = {Writer, Some},
title = {A Book},
publisher = {Publisher}, address = {London},
year = {2021},
}
\end{filecontents}
\begin{filecontents}{backref.lbx}
\ProvidesFile{backref.lbx}
% Added after original MWE post...
% ... included in actual book-length doc:
\InheritBibliographyExtras{english}
\DeclareBibliographyExtras{%
\protected\def\mkbibordinal#1{%
\begingroup%
@tempcnta0#1\relax\number@tempcnta%%
\endgroup}%
\protected\def\mkbibmascord{\mkbibordinal}%
\protected\def\mkbibfemord{\mkbibordinal}%
}
\DeclareBibliographyStrings{%
inherit = {english},
urlseen = {{accessed}{accessed}},
}
\end{filecontents}
\documentclass{article}
\RequirePackage[citestyle=numeric,backref=true]{biblatex}
\RequireBibliographyStyle{standard}
\RequireBibliographyStyle{numeric}
\DefineBibliographyStrings{english}{
backrefpage = {Cited on page},
backrefpages = {Cited on pages},
}
\addbibresource{testbib.bib}
\begin{document}
In \textcite{article} and \textcite{book}\dots
\printbibliography
\end{document}
The biblatex config file [corrected]:
% BIBLATEX.CFG - mimic amsplain
\ProvidesFile{biblatex.cfg}
\DeclareNameAlias{sortname}{family-given}
% Punctuation & delimiter mods:
\DeclareLanguageMapping{english}{backref} % external file!
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand{\subtitlepunct}{\addcolon\addspace}
\renewbibmacro{in:}{%
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}
% Field mods:
\DeclareFieldFormat
[article]
{title}{\mkbibemph{#1}}% no quote marks
\DeclareFieldFormat{journaltitle}{#1}
%
\DeclareFieldFormat
[article]
{volume}{\mkbibbold{#1}}
%
\DeclareFieldFormat{pages}{#1}% no prefix for the pages field
% Book mods:
\renewbibmacro{publisher+location+date}{%
\printlist{publisher}%
\setunit{\addcomma\space}%
\printlist{location}%
\setunit*{\addcomma\space}%
\usebibmacro{date}%
\newunit}
% Article mods:
\DeclareFieldFormat[article,periodical]{number}{\bibstring{number}~#1}% number of a journal
\renewbibmacro{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit{\addspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addspace}}%
\printfield{volume}%
\setunit{\addspace}%
\usebibmacro{issue+date}%
\setunit{\addcomma\space}%
\printfield{number}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\setunit{\addcomma\space}%
\printfield{eid}
\newunit}



![Emma Sigfridsson and Ulf Ryde. “Comparison of methods for deriving atomic charges from the electrostatic potential and moments”. In: Journal of Computational Chemistry 19.4 (1998), pp. 377–395. doi: 10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P. [Cited on pages 1–3.]](../../images/4472e88404ed0156eddfa0687db7fcd3.webp)
.lbxfile does nothing (and I would recommend you choose a name that also reflects the language -english- it is based on), because it is not selected anywhere, much less so because you actually redefine the language strings with the preamble commands. ... – moewe Jul 31 '21 at 05:55\RequireBibliographyStyle. In this specific setup these lines won't do any harm, but the 'correct' way to load a numeric bib style, is to drop the\RequireBibliographyStylelines and replacecitestyle=numeric,withstyle=numeric,(which will set bothbibstyleandcitestyletonumeric). Of course if this is part of a custom.bbxfile, things are different. – moewe Jul 31 '21 at 05:56biblatex.cfgbackref.lbxis used after all. But in its current form it is basically useless and crucially it does not contain the actual string redefinitions you apply tobackrefpageandbackrefpages. – moewe Jul 31 '21 at 16:22