-
Notifications
You must be signed in to change notification settings - Fork 0
/
jips.cls
393 lines (316 loc) · 11.8 KB
/
jips.cls
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
% JIPS Journal Template.
%
% FILENAME: jips.cls
%
% SOURCE: See https://github.com/LokiResearch/JIPS-LatexTemplate for latest official version.
%
% NOTE: If you wish to edit this document, please list edits properly
% in the CHANGELOG section and not scattered through the code.
%
% CHANGELOG:
%
% 2019-11-29 Creation by Marc Baloup
%
% 2019-12-05 Added checklist formatting + renamed JIPSBios to biographies and JIPSBio to biography
%
%
% LICENSE: Public domain: You are free to do whatever you want with
% this template. If you improve this in any way, please submit a
% pull request to the Github repository.
\typeout{}
\typeout{Document Class JIPS}
\typeout{Available at https://github.com/LokiResearch/JIPS-LatexTemplate.}
\typeout{}
\typeout{- <November 29, 2019> Created by Marc Baloup.}
\typeout{}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jips}[2019/12/05 JIPS]
\LoadClass[11pt]{article}
\RequirePackage[french]{babel}
\RequirePackage[T1]{fontenc}
\RequirePackage[bookmarksnumbered,unicode,colorlinks=false,pdfborder={0 0 0},breaklinks=true]{hyperref}
\RequirePackage{graphicx}
\RequirePackage[prologue]{xcolor}
\RequirePackage{colortbl}
\RequirePackage[a4paper, left=2.5cm, right=2.5cm, top=1cm, bottom=1.25cm, head=82pt, headsep=-13pt, foot=60pt, includeheadfoot]{geometry}
\RequirePackage{lastpage}
\RequirePackage{tikz}
\definecolor{orangejips}{RGB}{245,80,47}
\definecolor{orange2jips}{RGB}{244,67,12}
\definecolor{darkorange2jips}{RGB}{163,43,7}
\definecolor{darkdarkorange2jips}{RGB}{81,21,4}
\definecolor{vlightbluejips}{RGB}{219,229,241}
\definecolor{lightbluejips}{RGB}{198,217,241}
\definecolor{bluejips}{RGB}{31,73,125}
\definecolor{darkbluejips}{RGB}{23,54,93}
\RequirePackage[no-math]{fontspec}
\setmainfont{Arial}[
BoldFont=Arial Bold,
ItalicFont=Arial Italic,
BoldItalicFont=Arial Bold Italic
]
\setsansfont{Arial}[
BoldFont=Arial Bold,
ItalicFont=Arial Italic,
BoldItalicFont=Arial Bold Italic
]
\renewcommand{\familydefault}{\sfdefault}
\defaultfontfeatures{Ligatures=TeX}
\newfontfamily\arialblackfont{Arial Black}
\newfontfamily\arialnarrowfont{Arial Narrow}[
BoldFont=Arial Narrow Bold,
ItalicFont=Arial Narrow Italic,
BoldItalicFont=Arial Narrow Bold Italic
]
\RequirePackage{mathtools}
\RequirePackage[italic]{mathastext}
\RequirePackage{icomma}
\RequirePackage{caption, float}
\DeclareCaptionFormat{figcaption}{%
\arialnarrowfont\fontsize{11pt}{12.5pt}\selectfont\color{orange2jips}\bfseries #1#2#3%
\color{bluejips}\rule[21pt]{\textwidth}{0.5pt}%
\vspace{-23pt}
}
\captionsetup[figure]{format=figcaption, name={Figure~}}
\captionsetup{position=top, labelsep=period, margin=\z@}
\RequirePackage[explicit]{titlesec}
\titleformat{\section}{\arialblackfont\fontsize{12pt}{12pt}\selectfont\color{darkbluejips}}{\thesection}{15pt}{\MakeUppercase{#1}}[%
\vspace{1pt}
{\color{darkdarkorange2jips}\titlerule[0.75pt]}%
{\color{darkorange2jips}\titlerule[2.25pt]}%
{\color{orange2jips}\titlerule[0.75pt]}]
\titlespacing{\section}{0pt}{8pt}{3pt}
\titleformat{\subsection}{\fontsize{11pt}{11pt}\selectfont\color{darkbluejips}}{\textbf{\thesubsection}}{15pt}{\textbf{#1}}[%
{\color{orange2jips}\titlerule[1pt]}]
\titlespacing{\subsection}{0pt}{8pt}{2pt}
\titleformat{\subsubsection}{\arialnarrowfont\fontsize{11pt}{11pt}\selectfont\color{darkbluejips}}{\textbf{\textit{\thesubsubsection}}}{15pt}{{\bfseries\itshape #1}}
\titlespacing{\subsubsection}{0pt}{8pt}{0pt}
\RequirePackage[natbibapa]{apacite}
\renewenvironment{APACrefauthors}{%
% total display width of the following line : 23.5pt (the length of \bibhang)
\hspace{5.25pt}\begin{tikzpicture}\fill (0,0) -- (0,0.222) -- (0.111,0.111) -- cycle;\end{tikzpicture}\hspace{15.1pt}%
\begingroup \APACrefauthstyle
}{\endgroup }
\setlength{\bibhang}{23.5pt}
\setlength{\bibsep}{0.5em}
\bibliographystyle{apacite}
\AtBeginDocument{%
\renewcommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}
\urlstyle{same}
\let\oldthebibliography\thebibliography
\let\endoldthebibliography\endthebibliography
\renewenvironment{thebibliography}[1]{
\begin{oldthebibliography}{#1}
\fontsize{10pt}{12pt}\selectfont
}
{
\end{oldthebibliography}
}
}
\newcommand\@infoJIPSVol{}
\newcommand\@infoJIPSNum{}
\newcommand\@infoJIPSArticleNum{}
\newcommand\@infoJIPSYear{}
\newcommand\@infoJIPSMonth{}
\newcommand\@infoJIPSPageBegin{}
\newcommand\@infoTitleFr{}
\newcommand\@infoTitleEn{}
\newcommand\@infoAuthors{}
\newcommand\@infoAbstractEn{}
\newcommand\@infoKeywordsEn{}
\newcommand\@infoAbstractFr{}
\newcommand\@infoKeywordsFr{}
\newcommand\@infoShortTitle{}
\newcommand\@infoShortAuthors{}
\newcommand\@infoJIPSSubmissionDate{}
\newcommand\@infoJIPSAcceptanceDate{}
\newcommand\JIPSVol[1]{
\renewcommand\@infoJIPSVol{#1}
}
\newcommand\JIPSNum[1]{
\renewcommand\@infoJIPSNum{#1}
}
\newcommand\JIPSArticleNum[1]{
\renewcommand\@infoJIPSArticleNum{#1}
}
\newcommand\JIPSYear[1]{
\renewcommand\@infoJIPSYear{#1}
}
\newcommand\JIPSMonth[1]{
\renewcommand\@infoJIPSMonth{#1}
}
\newcommand\JIPSPageBegin[1]{
\renewcommand\@infoJIPSPageBegin{#1}
}
\newcommand\TitleFr[1]{
\renewcommand\@infoTitleFr{#1}
}
\newcommand\TitleEn[1]{
\renewcommand\@infoTitleEn{#1}
}
\newcommand\ShortTitle[1]{
\hypersetup{pdftitle = {#1}}
\renewcommand\@infoShortTitle{#1}
}
\newcommand\Authors[1]{
\renewcommand\@infoAuthors{#1}
}
\newcommand\ShortAuthors[1]{
\hypersetup{pdfauthor = {#1}}
\renewcommand\@infoShortAuthors{#1}
}
\newcommand\AbstractEn[1]{
\renewcommand\@infoAbstractEn{#1}
}
\newcommand\KeywordsEn[1]{
\renewcommand\@infoKeywordsEn{#1}
}
\newcommand\AbstractFr[1]{
\renewcommand\@infoAbstractFr{#1}
}
\newcommand\KeywordsFr[1]{
\renewcommand\@infoKeywordsFr{#1}
}
\newcommand\JIPSSubmissionDate[1]{
\renewcommand\@infoJIPSSubmissionDate{#1}
}
\newcommand\JIPSAcceptanceDate[1]{
\renewcommand\@infoJIPSAcceptanceDate{#1}
}
\newcommand\Author[1]{\vspace{5pt}{\fontsize{11pt}{11pt}\selectfont \color{orange2jips} \textbf{#1}}\\}
\newcommand\Affiliation[1]{\vspace{4pt}{\arialnarrowfont \fontsize{10pt}{0pt}\selectfont \color{darkbluejips} \textbf{#1}}\\}
\newcommand\Mail[1]{\vspace{4pt}{\arialnarrowfont \fontsize{10pt}{10pt}\selectfont \underline{\smash{#1}}}\\}
\renewcommand\maketitle{
\setcounter{page}{\@infoJIPSPageBegin}
\pagestyle{plain}
\noindent \begin{minipage}[t]{15.95cm}
\begin{flushright}
\vspace{18pt}
\arialblackfont \fontsize{16pt}{24pt}\selectfont \color{darkbluejips} \@infoTitleFr
\end{flushright}
\end{minipage}\hspace{6pt}{\color{orangejips} \vrule width 6pt}
\noindent\hspace{-5pt}\begin{tabular}{ll}
\cellcolor{lightbluejips}\begin{minipage}[t]{4.5cm}
\begin{flushleft}
\vspace{-6pt}
\@infoAuthors
\vspace{6pt}
\end{flushleft}
\end{minipage} &
\begin{minipage}[t]{11.1cm}
\begin{flushright}
\arialnarrowfont \fontsize{12pt}{12pt}\selectfont \color{orange2jips} \textbf{\@infoTitleEn}
\end{flushright}
{\arialnarrowfont \fontsize{10pt}{11.5pt}\selectfont
Abstract. \@infoAbstractEn
\setlength{\parskip}{6pt}
Key words: \@infoKeywordsEn
\vspace{6pt}
Résumé. \@infoAbstractFr
Mots-clés : \@infoKeywordsFr
\vspace{6pt}
}
\end{minipage}
\\
\end{tabular}
\vspace{6pt}
\noindent {\color{bluejips} \rule{\textwidth}{0.5pt}}\\
\vspace{-22pt}
\begin{center}{ \arialnarrowfont \fontsize{9pt}{9pt}\selectfont \color{darkbluejips} \textit{%
Édité par Joëlle Coutaz, Université de Grenoble et Patrick Girard, Université de Poitiers\\
\vspace{-3pt}
Soumis le \@infoJIPSSubmissionDate\ – Accepté le \@infoJIPSAcceptanceDate}}
\end{center}
\newpage
\pagestyle{content}
\setlength{\parskip}{6pt}
\setlength{\baselineskip}{12.5pt}
}
\RequirePackage{fancyhdr}
\pagestyle{plain}
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\lhead{\hspace{-5pt}\includegraphics{jips_logo.pdf}\\ \vspace{4pt}}
\rhead{{\arialblackfont \fontsize{12pt}{12pt}\selectfont \color{darkbluejips} Journal d’Interaction Personne-Système}\\
{\arialnarrowfont \fontsize{11pt}{11pt}\selectfont \color{darkbluejips} Volume \@infoJIPSVol, Numéro \@infoJIPSNum, Article \@infoJIPSArticleNum, \@infoJIPSMonth\ \@infoJIPSYear, pages \@infoJIPSPageBegin\ à \pageref{LastPage}}\\
{\arialnarrowfont \fontsize{11pt}{11pt}\selectfont \color{darkbluejips} \href{http://jips.episciences.org}{http://jips.episciences.org}}\\
\vspace{13pt}
{\color{bluejips} \rule{\textwidth}{1pt}}\\
\vspace{-3pt}
{\arialnarrowfont \fontsize{11pt}{13pt}\selectfont \color{orangejips} \textbf{Le journal de l’Association Francophone d’Interaction Homme-Machine}}\hspace{0.5mm}}
\lfoot[L]{\begin{minipage}[b]{4.5cm}\includegraphics[width=4.5cm]{afihm_logo.pdf}\vspace{12pt}\end{minipage}}
\rfoot[R]{\begin{minipage}[b]{11cm}
\setlength{\baselineskip}{8pt}
{\arialnarrowfont \fontsize{7pt}{7pt}\selectfont \color{bluejips} \textit{%
Copyright AFIHM © \@infoJIPSYear, Aucun usage commercial ne peut en être fait sans l’accord des éditeurs ou archiveurs électroniques.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee
provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the
full citation on the first page. Les articles de JIPS sont publiés sous licence Creative Commons Paternité 2.0 Générique.}}
\vspace{9pt}
\end{minipage}}
}
\fancypagestyle{content}{
\fancyhf{}
\newgeometry{left=2.5cm, right=2.5cm, top=1cm, bottom=1.25cm, head=1.5cm, headsep=0cm, foot=1.25cm, includeheadfoot}
\renewcommand{\headrulewidth}{0pt}
\lhead{{\arialnarrowfont \fontsize{8pt}{8pt}\selectfont \color{bluejips} \textit{\@infoShortTitle}}\\
\vspace{-4pt}
{\arialnarrowfont \fontsize{8pt}{8pt}\selectfont \color{bluejips} \textit{\@infoShortAuthors}}\\
\vspace{8pt}}
\rhead{{\arialnarrowfont \fontsize{8pt}{8pt}\selectfont \color{bluejips} \textit{\thepage}\\ \ \\
\vspace{8pt}}}
\lfoot{\hspace{11pt}\begin{minipage}[b]{1.5cm}\includegraphics[width=1.3cm]{afihm_logo.pdf}\end{minipage}}
\cfoot{\vspace{-21pt}{\color{bluejips}\rule{\textwidth}{0.5pt}}}
\rfoot{\begin{minipage}[b]{11cm}
\begin{flushright}
{\arialnarrowfont \fontsize{9pt}{9pt}\selectfont \color{darkbluejips} \textit{Journal d’Interaction Personne-Système - Vol. \@infoJIPSVol, Num. \@infoJIPSNum, \@infoJIPSMonth\ \@infoJIPSYear}}
\vspace{1pt}
\end{flushright}
\end{minipage}\hspace{11pt}}
}
\RequirePackage{enumitem}
\newlist{@checklist}{itemize}{1}
\setlist[@checklist]{itemindent=0pt,itemsep=0pt,labelsep=13pt,topsep=0pt,leftmargin=17pt,label=\includegraphics{check.pdf}}
\newenvironment{checklist}[1]{
\noindent\begin{tabular}{l}
\cellcolor{lightbluejips}\begin{minipage}[b]{15.6cm}
\vspace{2.5pt}
\hspace{-4.5pt}\fontsize{12pt}{12pt}\selectfont \color{darkbluejips} \bfseries \textsc{#1}
\vspace{-1.5pt}
\end{minipage} \\
\cellcolor{vlightbluejips}\begin{minipage}[b]{15.6cm}
\arialnarrowfont \fontsize{11pt}{12pt}\selectfont \color{darkbluejips} \bfseries
\begin{@checklist}
}{
\end{@checklist}
\end{minipage}
\end{tabular}
}
\newenvironment{ack}{%
\section*{Remerciements}
\fontsize{9pt}{9pt}\selectfont\itshape
}{
}
\newenvironment{biographies}{%
\section*{Biographies}
}{
}
\newcommand\biography[3]{
\vspace{-9pt}
\noindent\hspace{1mm}\begin{tabular}{p{3.4cm} p{11cm}}
\vspace{0pt}
\includegraphics[width=3.4cm]{#2}
&
\vspace{0pt}
\begin{minipage}{11cm}
\vspace{3pt}
{\arialblackfont \fontsize{9pt}{9pt}\selectfont \color{orange2jips} #1}
\vspace{7pt}\setlength{\baselineskip}{10pt}
{\arialnarrowfont \fontsize{9pt}{9pt}\selectfont \color{darkbluejips} #3}
\vspace{6pt}
\end{minipage}
\\
\end{tabular}
\vspace{-5pt}
}