blob: bcedf42dbeba6c526c0451fb96f170af4b88b40f (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
%%
%% This is file `nwejm.cbx',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% nwejm.dtx (with options: `citestyle')
%% -------:| -----------------------------------------------------------------
%% nwejm:| Class for the journal "North-Western European Journal of Mathematics"
%% Author:| Denis Bitouze
%% E-mail:| denis.bitouze@univ-littoral.fr
%% License:| Released under the LaTeX Project Public License v1.3c or later
%% See:| http://www.latex-project.org/lppl.txt
%%
\ProvidesFile{nwejm.cbx}
[2016/04/01 v 0.1 nwejm citation style (DB)]
\RequireCitationStyle{authoryear}
\ExecuteBibliographyOptions{giveninits,ibidtracker=constrict,pagetracker=page}
\renewrobustcmd{\blx@mkbibfootnote}[2]{%
\iftoggle{blx@footnote}%
{\blx@warning{Nested notes}%
\addspace\mkbibparens{#2}}%
{\unspace%
\ifnum\blx@notetype=\tw@%
\expandafter\@firstoftwo%
\else%
\expandafter\@secondoftwo%
\fi%
{\csuse{blx@theendnote#1}{\protecting{\blxmkbibnote{end}{#2}}}}%
{%
\patchcmd\@makefnmark%
{\normalfont}%
{\normalfont\bfseries}%
{}{}%
\csuse{footnote#1}{\protecting{\blxmkbibnote{foot}{#2}}}%
}%
}%
}
\renewcommand*{\mkcitation}[1]{%
\patchcmd\@makefnmark%
{\normalfont}%
{\normalfont\bfseries}%
{}{}%
\footnote{#1}%
}
\newbibmacro*{cite:title}{%
\printfield[citetitle]{labeltitle}}
\providecommand*{\mkibid}[1]{#1}
\newbibmacro*{cite:ibid}{%
\printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}%
}
\newbibmacro*{nwejm:cite}{%
\iffieldundef{shorthand}{%
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}%
{\usebibmacro{cite:ibid}}%
{%
\ifthenelse{%
\ifnameundef{labelname}%
}{%
\usebibmacro{cite:label}%
\setunit{\addcomma\space}%
}{%
\ifthenelse{%
\iffieldundef{labelyear}%
}{%
\printtext[bibhyperref]{\printnames{labelname}}%
}{%
\printtext[bibhyperref]{\printnames{labelname}%
\setunit{\addcomma\space}%
\usebibmacro{cite:labeldate+extradate}}%
\ifthenelse{%
\iffieldundef{labeltitle}%
}{%
}{%
\setunit{\addcomma\space}%
\usebibmacro{cite:title}%
}%
}%
}%
}%
}%
}{%
\usebibmacro{cite:shorthand}%
}%
}
\DeclareCiteCommand{\nwejmfootcite}[\mkbibfootnote]
{\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{nwejm:cite}}
{%
\ifcurrentbaselanguage{french}{%
\parindent=\parindentFFN%
\addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}%
}{%
\parindent=\footnotemargin%
}%
\multicitedelim\newline\indent%
}
{\usebibmacro{postnote}}%
\DeclareMultiCiteCommand{\nwejmfootcites}[\mkbibfootnote]{\nwejmfootcite}
{\addsemicolon\space}
\DeclareAutoCiteCommand{nwejmfootcite}{\nwejmfootcite}{\nwejmfootcites}
\DeclareCiteCommand{\textcite}
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\iffirstcitekey
{\setcounter{textcitetotal}{1}}
{\stepcounter{textcitetotal}%
\textcitedelim}%
\iffootnote{\usebibmacro{nwejm:cite}}{\printtext[bibhyperref]{\usebibmacro{textcite}}}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}}
{\usebibmacro{textcite:postnote}}
\ExecuteBibliographyOptions{autocite=nwejmfootcite}
%%
%% Copyright (C) 2015-2018 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in the file:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% This work is "maintained" (as per LPPL maintenance status) by
%% Denis Bitouze.
%%
%% This work consists of the file nwejm.dtx and a Makefile.
%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls.
%% Running "make inst" installs the files in the user's TeX tree.
%% Running "make install" installs the files in the local TeX tree.
%%
%%
%% End of file `nwejm.cbx'.
|