-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnumpex.sty
215 lines (190 loc) · 6.38 KB
/
numpex.sty
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
%% numpex.sty
%%
%% Style file for documents of the embeddia project (adapted from fracas.sty)
%%
%% History:
%% 03/07/94 - MP, created
%% 20th April, 00 - JC adapted to mpiro
%% 4th Dec, 01 - CM adapted to magicster
%% 16th Nov 04, - OL adapted to Talk
%% Wed Nov 17 14:38:29 2004 TB: various fixes
%% Thu Jan 17 07: JA: adapted to i2home
%% Fri May 19 SL: adapted to embeddia
%% 2020/05/18 Adaptations for ERIGrid 2.0 (TS)
%% 2020/10/27 Adaptations for hyperride (TS)
%% 2024/08/17 Adaptations for numpex (TS)
%%%%%%%%%%%%%%%%%%%%%
% package description
%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{numpex}[2024/08/17 numpex style sheet v1.0]
% packages and includes
\usepackage{istprog}
\RequirePackage{a4wide} % A4
\usepackage{etoolbox}
\usepackage{tocloft} % formatting of the table of contents.
\usepackage[linktocpage=true]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=black,
citecolor=black,
urlcolor=blue,
pdftitle=\deliv@stitle,
pdfauthor=\deliv@authors,
pdfsubject=NumPEX Exa-MA Project Deliverable,
pdfkeywords=\deliv@keywords,
pdfcreator=pdflatex,
pdfproducer=Overleaf,
}
\usepackage[
type={CC},
modifier={by},
version={4.0},
imagewidth={6em},
]{doclicense}
\AtBeginDocument{\apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc}{section}{\bibname}}{}{}}
% \input{a4wide.sty}
\typeout{Document Style `NumPEx' <17 August, 2024>.}
\def\deliv@checkmark{ x }
\DeclareOption{checkmark}{\def\deliv@checkmark{$\underline{\checkmark}$}}
%\ExecuteOptions{checkmark}
\ProcessOptions
%%%%%%%%%%%%%%%%%%%%
% Project references
%%%%%%%%%%%%%%%%%%%%
\ProjectRefNo{ANR-22-EXNU-0002}
\ProjectFP{France 2030}
\ProjectAcronym{Exa-MA}
\ProjectFullTitle{Methods and Algorithms at Exascale}
\ProjectInstrument{PEPR}
\ProjectStartDuration{1 Septembre 2023 / 60 Months}
\Security{Public}
% \partners{
% \textbf{AIT Austrian Institute of Technology} \\
% }
% \webAddress{https://numpex.eu}
% \principalContact{ERIGrid 2.0 Project Co-ordinator \\
% Dr.\ Gerhard Jambrich \\
% AIT Austrian Institute of Technology \\
% Electric Energy Systems -- Center for Energy \\
% Giefinggasse 2 \\
% 1210 Vienna, Austria \\
% [email protected] \\
% Phone +43 664 88335404 -- Fax +43 50550 6390
% }
\usepackage{graphicx}
\usepackage[usenames,dvipsnames,svgnames]{xcolor}
\usepackage{colortbl}
\usepackage{geometry}
\usepackage{wallpaper}
\usepackage[format=hang,font={small,it}]{caption}
\usepackage{sfmath}
\usepackage{apacite}
\pagestyle{fancy}
\usepackage[absolute]{textpos}
\usepackage{array} % tabs
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\definecolor{numpexblack}{RGB}{0,0,0}
\definecolor{numpexblue}{RGB}{42,46,128}
\definecolor{numpexfont}{RGB}{54,54,54}
\definecolor{numpexred}{RGB}{250,40,35}
\definecolor{numpexgray}{RGB}{127,127,127}
\definecolor{numpexlightgray}{RGB}{219,219,219}
\definecolor{numpexlightergray}{RGB}{237,237,237}
\geometry{a4paper,top=2.50cm,left=2.50cm,right=2.50cm,bottom=3.30cm,headsep=0.50cm,footskip=0.75cm}
\setlength{\parindent}{0pt}
\usepackage[parfill]{parskip}
%% title page
%%
\usepackage{istcover}
% toc design
\def\settableofcontents{%
\renewcommand{\cftsubsecfont}{\small}
\renewcommand{\cftsecfont}{\normalsize}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\cfttoctitlefont}{\normalfont\fontsize{18}{23}\sffamily\bfseries\color{numpexblue}}
\setlength{\cftbeforetoctitleskip}{-0.4cm}
\setlength{\cftaftertoctitleskip}{3mm}
\setlength{\cftbeforesecskip}{2mm}
\setlength{\cftbeforesubsecskip}{0.5mm}
\setlength{\cftsecindent}{0mm}
\setlength{\cftsubsecindent}{4mm}
\setlength{\cftsubsubsecindent}{8mm}
\renewcommand{\cftsecpagefont}{\normalsize}
\renewcommand{\cftsubsecpagefont}{\small}
\renewcommand{\cftsecaftersnum}{.}
\renewcommand{\cftsecleader}{\cftdotfill{\cftsecdotsep}}
\renewcommand{\cftsubsecleader}{\small\cftdotfill{\cftsubsecdotsep}}
\renewcommand{\cftsecdotsep}{0.5}
\renewcommand{\cftsubsecdotsep}{0.5}
\renewcommand{\cftsubsubsecdotsep}{0.5}
\addtolength{\cftsecnumwidth}{-2mm}
\addtolength{\cftsubsecnumwidth}{-3mm}
\addtolength{\cftsubsubsecnumwidth}{-5mm}
\cftsetpnumwidth{5mm}
}
% lof design
\def\setlistoffigures{%
\renewcommand{\cftfigfont}{\small}
\renewcommand{\cftfigpagefont}{\small}
\setlength{\cftfigindent}{0mm}
\setlength{\cftbeforeloftitleskip}{-0.4cm}
\setlength{\cftafterloftitleskip}{3mm}
\renewcommand{\cftloftitlefont}{\normalfont\fontsize{18}{23}\sffamily\bfseries\color{numpexblue}}
\renewcommand{\cftfigleader}{\small\cftdotfill{\cftfigdotsep}}
\renewcommand{\cftfigdotsep}{\cftdotsep}
\renewcommand{\cftdotsep}{0.5}
\renewcommand*\cftfigpresnum{Figure~}
\settowidth{\cftfignumwidth}{\cftfigpresnum}
\addtolength{\cftfignumwidth}{5mm}
\renewcommand{\cftfigaftersnum}{:~}
}
% lot design
\def\setlistoftables{%
\renewcommand{\cfttabfont}{\small}
\renewcommand{\cfttabpagefont}{\small}
\setlength{\cfttabindent}{0mm}
\setlength{\cftbeforelottitleskip}{-0.4cm}
\setlength{\cftafterlottitleskip}{3mm}
\renewcommand{\cftlottitlefont}{\normalfont\fontsize{18}{23}\sffamily\bfseries\color{numpexblue}}
\renewcommand{\cfttableader}{\small\cftdotfill{\cfttabdotsep}}
\renewcommand{\cfttabdotsep}{\cftdotsep}
\renewcommand{\cftdotsep}{0.5}
\renewcommand*\cfttabpresnum{Table~}
\settowidth{\cfttabnumwidth}{\cfttabpresnum}
\addtolength{\cfttabnumwidth}{5mm}
\renewcommand{\cfttabaftersnum}{:~}
}
\logo{\includegraphics[scale=0.465]{graphics/logo-numpex-exama-vector.png}}
\newcommand{\ignore}[1]{}
% subsubsections processing
\setcounter{secnumdepth}{3} % numbering until subsubsections
\setcounter{tocdepth}{2} % toc depth
\setcounter{topnumber}{20}
\renewcommand{\topfraction}{.99}
\setcounter{bottomnumber}{20}
\renewcommand{\bottomfraction}{.99}
\setcounter{totalnumber}{30}
\renewcommand{\textfraction}{0}
\renewcommand{\floatpagefraction}{0}
% font
% \usepackage[scaled]{uarial}
% \usepackage[scaled]{helvet}
\renewcommand*\rmdefault{phv}
\renewcommand*\sfdefault{phv}
\renewcommand*{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
% sections as chapters
\renewcommand*\thesection{\arabic{section}}
\makeatletter
\def\thebibliography#1{\section*{References\@mkboth
{REFERENCES}{REFERENCES}}\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\makeatother
\endinput