-
Notifications
You must be signed in to change notification settings - Fork 2
/
configurations.tex
109 lines (96 loc) · 2.79 KB
/
configurations.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
\usepackage[english]{babel}
\title{\textbf{\textsf{ADEMP-PreReg \\ Template for Simulation Studies}}}
\date{\today}
\author{}
% math
\usepackage{amsmath, amssymb}
% references
\usepackage[style=apa, backend=biber]{biblatex}
\addbibresource{bibliography.bib}
% fonts
\usepackage{helvet}
\usepackage{sectsty}
\allsectionsfont{\sffamily} % for section titltes use sans-serif
% \renewcommand{\familydefault}{\sfdefault} % comment out for sans-serif font
% \usepackage{sansmath} % comment out for sans-serif math font
% \sansmath % comment out for sans-serif math font
% margins
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=25mm,
right=25mm,
top=30mm,
bottom=30mm,
}
% no indentation when a new paragraph starts
\setlength{\parindent}{0cm}
% links
\usepackage{hyperref} % better links
\usepackage{color} % nicer link colors
\definecolor{pigment}{rgb}{0.2, 0.2, 0.6}
\hypersetup{
colorlinks = true, % Color links instead of ugly boxes
urlcolor = pigment, % Color for external hyperlinks
linkcolor = black, % Color for internal links
citecolor = pigment % Color for citations
}
% headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{ADEMP-PreReg Template for Simulation Studies}
\chead{}
\rhead{}
% example boxes
\usepackage{tcolorbox}
\newtcolorbox{examplebox}{
colback=white,
colframe=gray!30,
title=Example,
sharp corners,
boxrule=0.5pt,
coltitle=black
}
% conditionals
\usepackage{ifthen}
\newboolean{showinstructions}
\newboolean{showexamples}
\newboolean{showexplanations}
\renewenvironment{examplebox}{%
\ifthenelse{\boolean{showexamples}}%
{\begin{tcolorbox}[colback=white, colframe=gray!30, title=Example, sharp corners, boxrule=0.5pt, coltitle=black]}%
{\expandafter\comment}%
}{%
\ifthenelse{\boolean{showexamples}}%
{\end{tcolorbox}}%
{\expandafter\endcomment}%
}
% Define a new environment for explanations
\newcommand{\explanation}[1]{%
\ifthenelse{\boolean{showexplanations}}%
{\textit{Explanation:} #1}%
{\ignorespaces}%
}
% Define a new environment for instructions
\newcommand{\instructions}[1]{%
\ifthenelse{\boolean{showinstructions}}%
{#1}%
{\ignorespaces}%
}
\makeatletter
\newcommand{\maketitlepage}{%
\begin{titlepage}
\maketitle
\thispagestyle{empty}
\vfill
\centering
Version: 1.0 \\
Last updated: 2024-10-10 \\
Template based on the paper: \\
Siepe, B. S., Bartoš, F., Morris, T. P., Boulesteix, A.-L., Heck, D. W., \& Pawel, S. (2024). Simulation Studies for Methodological Research in Psychology: A Standardized Template for Planning, Preregistration, and Reporting. \textit{Psychological Methods}. \url{https://doi.org/10.1037/met0000695}, \url{https://doi.org/10.31234/osf.io/ufgy6}
\vfill
\end{titlepage}
\newpage
}
\makeatother