I have an entry in my bibliography that has a number looking like number = {D-810}.
Biblatex replaces dashes in the number field by \bibrangedash; for normal number ranges like number = {2-3} it is completely correct, but D-810 is not a range, but a special kind of number, and should be displayed with a short dash.
I've found tips how to redefine the style of all occurrences of \bibrangedash, e.g. Custom dash in Biblatex, but what I need is to prevent a dash from being replaced by \bibrangedash just in a single entry.
How could I achieve this?
MWE for the style I need:
\begin{filecontents}{test.bib}
@TECHREPORT{c1,
author = {Author, A.},
title = {Some title},
institution = {Inst. 1},
year = {2000},
type = {Preprint},
number = {D-810},
address = {Some city},
pagetotal = {10},
langid = {english},
}
@TECHREPORT{c2,
author = {Author, B.},
title = {Another title},
institution = {Inst. 2},
year = {2000},
type = {Preprint},
number = {2-3},
address = {Some city},
pagetotal = {10},
langid = {english},
}
\end{filecontents}
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage[style=gost-numeric]{biblatex} % from package biblatex-gost
\addbibresource{test.bib}
\begin{document}
Citations:~\cite{c1,c2}.
\printbibliography
\end{document}
biblatex3.11/Biber 2.11 and I can't reproduce the behaviour you describe there. A-in thenumberfield is not modified. Please consider adding a full MWE/MWEB to your question. That MWE needs to tell show us one.bibentry and thebiblatexstyle you use as well as other settings related to the bibliography. – moewe May 01 '18 at 04:14D\symbol{45}810then you get a hyphen: I understand it's suboptimal, so this can't be an answer. From thebblfile, I gather that Biber knows it's not a range, because it writes\range{number}{-1}, but it replaces-with\bibrangedashnonetheless. – egreg May 01 '18 at 17:35\symbol{45}solution seems completely fine to me for those rare cases when thenumberfield is not a range; actually I have only two such entries in my 200+ bibliography. – Dmitry Tsirkov May 02 '18 at 10:10