forked from NFDI4Culture/CPS-Demo
-
Notifications
You must be signed in to change notification settings - Fork 7
/
_titlepage.tex
135 lines (110 loc) · 3.13 KB
/
_titlepage.tex
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
% SOURCE: https://github.com/nmfs-opensci/quarto_titlepages_v1/tree/main
% This is a combination of Pandoc templating and LaTeX
% Pandoc templating https://pandoc.org/MANUAL.html#templates
\tcbset{ % parameters for text background
frame code={},
left=0pt, % margins
right=0pt,
top=0pt,
bottom=0pt,
colback=gray!10!black, % box color
width=\dimexpr\textwidth\relax,
boxsep=15pt, % spacing between boxes
arc=0pt, % no rounded edges
opacityback=0.35, % translucent-ish background
fontupper=\color{white}, % fontcolor
fontlower=\color{white}
}
% background image
$if(title-bg-image)$
\This$if(title-bg-location)$$title-bg-location$$else$UL$endif$CornerWallPaper{$if(title-bg-size)$$title-bg-size$$else$0.5$endif$}{$title-bg-image$}
$endif$
\begin{tcolorbox}
$if(titlepage-geometry)$
\newgeometry{$for(titlepage-geometry)$$titlepage-geometry$$sep$,$endfor$}
$endif$
\centering
% Title and subtitle
{\Huge\bfseries\nohyphens{$title$}}\\[1\baselineskip]
$if(subtitle)$
{\huge{$subtitle$}}\\[4\baselineskip]
$endif$
\end{tcolorbox}
\bigbreak
% Authors
\begin{tcolorbox}
$if(by-author/allbutlast)$
$for(by-author/allbutlast)$
{\large{$by-author.name.literal$}}$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$sep$,
$endfor$
$for(by-author/last)$%
{ and \large{$by-author.name.literal$}}%
$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}%
$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$endfor$
$else$
$for(by-author/last)$%
{\large{$by-author.name.literal$}}%
$for(by-author.affiliations)$%
{\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{,*}}%
$endif$%
$endfor$
$endif$
%%%%%% Affiliations
\vspace{2\baselineskip}
\hangindent=1em
\hangafter=1
$for(by-affiliation)$%
{$it.number$}.~$if(by-affiliation.name)${$it.name$}$endif$%
$if(by-affiliation.department)$%
$if(by-affiliation.name)$, $endif$%
{$it.department$}%
$endif$%
$if(by-affiliation.address)$%
$if(by-affiliation.name)$, $else$$if(by-affiliation.department)$, $endif$$endif$%
{$it.address$}%
$endif$%
$sep$\par\hangindent=1em\hangafter=1%
$endfor$
%%%%%% Correspondence
\vspace{1\baselineskip}
$for(by-author)$
$if(by-author.email)$
* \textit{Correspondence:}~$by-author.name.literal$~$by-author.email$\newline
$endif$
$endfor$
\end{tcolorbox}
$if(abstract)$
\begin{tcolorbox}
\textbf{Abstract:\newline}
$abstract$
\end{tcolorbox}
$endif$
%use \vfill instead to get the space to fill flexibly
%\vspace{0.25\textheight} % Whitespace between the title block and the publisher
\vfill
% Whitespace between the title block and the tagline
\vspace{1\baselineskip}
\begin{tcolorbox}
\centering
%%%%%% Tagline at bottom
{
TIB\\
Open Science Lab
}
\end{tcolorbox}
$if(titlepage-geometry)$
\restoregeometry
$endif$