summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gzt/tex/latex/gzt/gzt.dbx
blob: 3850451c9e8f7a8e0c106b5794d2038661fade42 (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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
%%
%% This is file `gzt.dbx',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% gzt.dtx  (with options: `datamodel')
%% -----------------------------------------------------------------------------
%% gzt --- SMF bundle of classes for the French journal "La Gazette des
%%         Math'ematiciens"
%% 
%% E-mail: denis.bitouze@univ-littoral.fr
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% -----------------------------------------------------------------------------
\DeclareDatamodelFields[type=list,datatype=name]{interviewee}
\DeclareDatamodelEntryfields[interview]{
  interviewee,
  author
}
\DeclareBibliographyDriver{interview}{%
  \printnames{author}~interviewent~\printnames{interviewee}%
  \usebibmacro{finentry}%
}
\DeclareBibliographyDriver{bookreview}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{maintitle+title}%
  \newline\nopunct\newblock
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}
  \newline\nopunct\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \printlist{language}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \iftoggle{bbx:related}
    {\usebibmacro{related:init}%
     \usebibmacro{related}}
    {}%
    \usebibmacro{finentry}}
\DeclareDatamodelFields[type=list,datatype=name]{reviewer}
\DeclareDatamodelFields[type=list,datatype=literal]{reviewerinstitution}
\DeclareDatamodelEntryfields[bookreview]{
  reviewer,
  reviewerinstitution
}
\DeclareDatamodelFields[type=field,datatype=literal]{publicprice}
\DeclareDatamodelFields[type=field,datatype=literal]{smfprice}
\DeclareDatamodelFields[type=field,datatype=literal]{frenchabstract}
\DeclareDatamodelFields[type=field,datatype=literal]{englishabstract}
\DeclareDatamodelFields[type=list,datatype=literal]{copublisher}
\DeclareDatamodelFields[type=field, datatype=verbatim]{thumbnail}
\DeclareDatamodelEntryfields[bookadvertisement]{
  publicprice,
  smfprice,
  frenchabstract,
  englishabstract,
  copublisher,
  thumbnail
}
\newcommand*{\insertbibimage}[1]{\includegraphics[width=45mm]{#1}}
\DeclareBibliographyDriver{bookadvertisement}{%
  \begin{tcolorbox}[
    lefthand width=47.5mm
    ,sidebyside
    ,colback=white
    ,fontlower=\large
    ,flushleft lower
    ,boxrule=0mm
    ,frame hidden%
    ,leftright skip=0mm
    ,before skip=0mm
    ,lower separated=false
    ]
    \iffieldundef{thumbnail}
    {}
    {
      \usefield{\insertbibimage}{thumbnail}
    }
    \tcblower
    \xpatchfieldformat{title}{mkbibemph}{textbf}{}{}%
    \def\abx@str{abx@lstr}%
    \noindent
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
    \textbf{\printfield{series}}%
    % \usebibmacro{series+number}%
    \bigskip\newline\nopunct\newblock
    {%
      \Large%
      \printfield{title}%
      \newunit\newblock
    }%
    \iffieldundef{volume}
    {}%
    {\textbf{\printfield{volume}}}
    \iffieldundef{titleaddon}
    {}%
    {%
      \newline\nopunct\newblock
      \textbf{\printfield{titleaddon}}%
    }
    \iffieldundef{subtitle}
    {}%
    {%
      \newline\nopunct\newblock
      \printfield{subtitle}%
    }
    \newline\nopunct\newblock
    \newline\nopunct\newblock
    \usebibmacro{author/editor+others/translator+others}%
    \setunit{\labelnamepunct}
    \newline\nopunct\newblock
    \usebibmacro{byauthor}%
    \newunit\newblock
    \usebibmacro{byeditor+others}%
    \newunit\newblock
    \printfield{edition}%
    \newunit\newblock
    \printfield{note}%
    \newunit\newblock
    \usebibmacro{publisher+location+date}%
    \newunit\newblock
    \usebibmacro{chapter+pages}%
    \newunit
    \printfield{pagetotal}%
    \newunit\newblock
    \printlist{language}%
    \iftoggle{bbx:isbn}
    {%
      \newline\nopunct\newblock
      \printfield{isbn}
    }
    {}%
    \newunit\newblock
    \usebibmacro{doi+eprint+url}%
    \newunit\newblock
    \usebibmacro{addendum+pubstate}%
    \setunit{\bibpagerefpunct}\newblock
    \usebibmacro{pageref}%
    \def\abx@str{abx@sstr}%
  \end{tcolorbox}
    \iflistundef{copublisher}
    {}%
    {%
      \bigskip
      % \newline\nopunct\newblock%
      \normalsize
      Publi\'e avec le concours de : \printlist{copublisher}%
      \par
    }
    \iffieldundef{frenchabstract}
    {}%
    {%
      \bigskip
      \printfield{frenchabstract}%
      \par
      \medskip
      %
      \begin{center}
        Prix~public~:\c_space_tl
        \EUR{\printfield{publicprice}}
        \c_space_tl\textendash\c_space_tl Prix~membre~\smf{}~:\c_space_tl
        \EUR{\printfield{smfprice}}
        \c_space_tl\textendash\c_space_tl Frais~de~port~non~compris
      \end{center}
    }
    \iffieldundef{englishabstract}
    {}%
    {%
      \par
      \bigskip
      \begin{otherlanguage}{english}
        \itshape
        \printfield{englishabstract}%
        %
        \par
        \medskip
        %
        \begin{center}
          Public~price:\c_space_tl
          \EUR{\printfield{publicprice}}
          \c_space_tl\textendash\c_space_tl \smf{}~member~price:\c_space_tl
          \EUR{\printfield{smfprice}}
          \c_space_tl\textendash\c_space_tl Shipping~costs~not~included
        \end{center}
      \end{otherlanguage}
    }
  \usebibmacro{finentry}
}
%% ----------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Denis Bitouz'e.
%% 
%% This work consists of the file  gzt.dtx
%%           and the derived files gzt.cls,
%%                                 gztarticle.cls,
%%                                 gzt.ins,
%%                                 gzt.pdf,
%%                                 and a number of configuration files.
%%
%% End of file `gzt.dbx'.