-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path#report#.tex
212 lines (159 loc) · 7.24 KB
/
#report#.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
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
%%% Copyright (c) 2016-2020 Thomas Frank ([email protected]).
%%% This program is free software: You can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program (see file named LICENSE). If not, see <https://www.gnu.org/licenses/>.
\documentclass[abstract=true, %include abstract title in Table of Contents
titlepage=true, %includes title page environment
fontsize=12pt,
pagesize=auto, %select an output driver for writing the paper size into the PDF file
DIV=13, BCOR=5mm, %calculates type area (13 stripes division) and includes 5 mm of binding correction
headings=normal, %decrease font size for headings
bibliography=totocnumbered, %reference list to appear as section in Table of Contents
numbers=noenddot, % no dots behind section numbers
parskip=half]{scrartcl} %no paragraph indentation
%==========================================================================
% packages, macros, and properties describing this document
%==========================================================================
\input{#report#-preamble}
\input{#report#-properties}
%==========================================================================
% hyperref settings
%==========================================================================
\definecolor{LinkColor}{RGB}{0,0,255}
\usepackage{xr-hyper}
\usepackage[pdfnewwindow]{hyperref} % option: pagebackref for page numbers in ref. list (not needed)
\hypersetup{
pdfstartview={XYZ null null 0.0},
pdfview={XYZ 0 0 0},
colorlinks=true,
breaklinks=true,
linkcolor=LinkColor,
menucolor=LinkColor,
urlcolor=LinkColor,
citecolor=LinkColor,
filecolor=LinkColor,
bookmarks=true,
bookmarksopen=false,
bookmarksnumbered=true,
linktocpage=true,
backref=false,
hyperfootnotes=false,
hypertexnames=false,
pdfauthor={\author},
pdftitle={\titlec},
pdfsubject={\DOC},
pdfkeywords={\titleb}
} % \hypersetup should not be outsourced to preamble because then PDF metainfo cannot be set
\usepackage[nameinlink, noabbrev,capitalize]{cleveref} %needs to be loaded after the hyperref package and both are to be loaded as the last packages, because they redefine many LaTeX commands
%==========================================================================
% actual start of the document
%==========================================================================
\begin{document}
% TITLE PAGE AND APPROVAL PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\phantomsection % needed for hyperref
%\pdfbookmark[1]{POPULATION PHARMACOKINETIC REPORT}{toc} %change as appropriate
\addcontentsline{toc}{section}{TITLE PAGE}
%\includepdf{#report#-titlepage.pdf} % alternative; to import a single, compiled PDF page, e.g. a title page made from a MS Word-Template or any other program
\input{#report#-titlepage}
\phantomsection% needed for hyperref
%\addcontentsline{toc}{section}{STUDY PLAN APPROVAL SIGNATURES}
\input{#report#-approval}
%\includepdf{#report#-approval.pdf} % alternative; use this command line (and comment out the line above) to include a manually signed page
\newpage
% SUMMARY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\phantomsection % needed for hyperref
%\pdfbookmark[1]{SUMMARY}{toc} % not needed if \usepackage{abstract} is on
\renewcommand{\abstractname}{\sffamily SUMMARY}
%\setcounter{table}{0} % reset counter
%\setcounter{figure}{0}
\begingroup
\let\vfil\relax
\begin{abstract}
\thispagestyle{scrheadings}
\vspace*{-.5em}
\label{abstract}
\input{textblocks/summary}
\end{abstract}
\endgroup
\clearpage
\newpage
% Table of contents, List of figures, List of tables %%%%%%%%%%%%%%%%%%%%%
\phantomsection % needed for hyperref
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\addcontentsline{toc}{section}{\contentsname}
%\pdfbookmark[1]{TABLE OF CONTENTS}{\contentsname}
\tableofcontents
\newpage
\phantomsection %needed for hyperref
\renewcommand{\listtablename}{LIST OF TABLES}
\addcontentsline{toc}{section}{\listtablename}
%\pdfbookmark[1]{LIST OF TABLES}{\listtablename}
\listoftables
\phantomsection %needed for hyperref
\renewcommand{\listfigurename}{LIST OF FIGURES}
\addcontentsline{toc}{section}{\listfigurename}
%\pdfbookmark[1]{LIST OF FIGURES}{\listfigurename}
\listoffigures
\clearpage
\newpage
% List of acronyms %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\phantomsection % needed for hyperref
% \setlength{\glslistdottedwidth}{.35\linewidth} % adapt the width of the dotted line if style=listdotted
\printglossary[type=\acronymtype, style=long, title={ABBREVIATIONS, TERMS, AND SYMBOLS}, toctitle={ABBREVIATIONS, TERMS, AND SYMBOLS}]
\clearpage
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAIN TEXT ::::
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{table}{1} % reset counter (maybe needed if tables are shown in the summary)
\setcounter{figure}{0}
\renewcommand{\angle}{0}
\section{INTRODUCTION}
\label{sec:introduction}
\input{textblocks/introduction}
\section{OBJECTIVES}
\label{sec:objectives}
\input{textblocks/objectives}
\clearpage
\section{DATA}
\label{sec:data}
\input{textblocks/data}
\clearpage
\section{METHODS}
\label{sec:methods}
\input{textblocks/methods}
\clearpage
\section{RESULTS}
\label{sec:results}
\input{textblocks/results}
\clearpage
\section{DISCUSSION}
\label{sec:discussion}
\input{textblocks/discussion}
\clearpage
\section{CONCLUSIONS}
\label{sec:conclusion}
\input{textblocks/conclusion}
\clearpage
%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\bibliographystyle{latex8English}
%\bibliographystyle{vancouver}
%\phantomsection % needed for hyperref
%\addcontentsline{toc}{section}{\refname}
%\bibliography{#report#}
\printbibliography[heading=bibliography, title={REFERENCES}]
%%%%%%%%% Behind-of-text displays and tables %%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\input{#report#-behindoftextdisplays}
%%%% APPENDIX SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\renewcommand{\appendixtocname}{APPENDICES}
\renewcommand{\appendixpagename}{\sffamily APPENDICES}
\appendix
\appendixpage
\addappheadtotoc
\input{#report#-appendix}
%%% LAST PAGE FOOTER printing the path and the PDF creation date %%%%%%%%%
% ------ no \clearpage before !! ------------------------------------------
\lofoot{\scs \basedir/\basefile.tex ; \DTMnow } \rofoot{Page \thepage{}}
\end{document}
\endinput
% END OF FILE