summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-10 03:01:21 +0000
committerNorbert Preining <norbert@preining.info>2020-09-10 03:01:21 +0000
commit7453287d9233f42e36d981105bc93baf3e2b3a6a (patch)
tree30a36d951175907fd86f6ca09765de79b141cd5d /macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
parent4b315627efc5a6beb1e6c6ec7a98779f215c75eb (diff)
CTAN sync 202009100301
Diffstat (limited to 'macros/latex/contrib/thuthesis/thuthesis-numeric.bbx')
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-numeric.bbx27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx b/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
new file mode 100644
index 0000000000..f0d6234eff
--- /dev/null
+++ b/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
@@ -0,0 +1,27 @@
+\ProvidesFile{thuthesis-numeric.bbx}[2020/08/01 v1.0 ThuThesis biblatex
+ bibliography style]
+
+\RequireBibliographyStyle{gb7714-2015}
+
+\ExecuteBibliographyOptions{
+ gbnamefmt = lowercase,
+ gbpub = false,
+ gbalign = left,
+}
+
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+ {\addtolength{\labelnumberwidth}{\biblabelextend}%
+ \setlength{\labelwidth}{0.9cm}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\labelwidth}%
+ \addtolength{\leftmargin}{\labelsep}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}