forked from michal-h21/biblatex-iso690
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiso-numeric.bbx
30 lines (26 loc) · 939 Bytes
/
iso-numeric.bbx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\ProvidesFile{iso-numeric.bbx}
[2022/03/20 v0.4.1 ISO 690 biblatex bibliography style]
\RequireBibliographyStyle{iso}
\ExecuteBibliographyOptions{%
sorting=none,% bib entries in the bibliography are in their citation order
labelnumber,% enable numbers for bib entries
}
% The numbers of bib entries are printed with a dot after number
% in the bibliography.
\DeclareFieldFormat{labelnumberwidth}{#1\adddot}
% Copy-pasted from 'numeric.bbx'
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{labelprefix}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
\endinput