1 % Copyright (c) 2020 Agnibho Mondal
4 % This file is part of BibLaTex Vancouver.
6 % BibLaTex Vancouver is free software: you can redistribute it and/or modify it
7 % under the terms of the GNU General Public License as published by the Free
8 % Software Foundation, either version 3 of the License, or (at your option) any
11 % BibLaTex Vancouver is distributed in the hope that it will be useful, but
12 % WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 % FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 % You should have received a copy of the GNU General Public License along with
17 % BibLaTex Vancouver. If not, see <http://www.gnu.org/licenses/>.
23 \ProvidesFile{vancouver.bbx}[2020/05/20 v0.1 biblatex vancouver]
26 \RequireBibliographyStyle{numeric}
28 \RequirePackage{ifthen}
30 \ExecuteBibliographyOptions{
38 \renewcommand*{\revsdnamepunct}{}
39 \renewcommand*{\finentrypunct}{}
40 \renewcommand*{\bibpagespunct}{\addspace}
44 \newcommand*{\shortmonth}[1]{
45 \ifthenelse{\NOT\equal{#1}{}}{
63 \DeclareNameAlias{default}{family-given}
65 \DeclareFieldFormat*{title}{#1}
66 \DeclareFieldFormat*{journaltitle}{#1}
67 \DeclareFieldFormat*{labelnumberwidth}{#1\adddot}
68 \DeclareFieldFormat*{pages}{:\mkcomprange{#1}}
69 \DeclareFieldFormat*{url}{Available from: \url{#1}}
70 \DeclareFieldFormat*[article]{number}{(#1)}
71 \DeclareFieldFormat*{date}{
72 \thefield{year}\addspace
73 \shortmonth{\thefield{month}}\addspace
76 \DeclareFieldFormat*{urldate}{
78 \thefield{urlyear}\addspace
79 \shortmonth{\thefield{urlmonth}}\addspace
84 \maps[datatype=bibtex]{
86 \step[fieldsource=journaltitle, match=\regexp{(\.)}, replace={}]
87 \step[fieldsource=journaltitle, match=\regexp{($)}, replace={.}]
92 %no number in ouput of bibliography
93 \renewbibmacro*{volume+number+eid}{
99 %Order year;volume:page
100 \renewbibmacro*{issue+date}{
107 \renewbibmacro*{journal+issuetitle}{
108 \usebibmacro{journal}
109 \iffieldundef{series}
114 \usebibmacro{issue+date}
115 \setunit*{\addsemicolon\addspace}
116 \usebibmacro{volume+number+eid}