-
Notifications
You must be signed in to change notification settings - Fork 39
/
Template_Paper.tex
158 lines (121 loc) · 4.13 KB
/
Template_Paper.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
% !TeX program = pdflatex
% !TeX TS-program = pdflatex
% !TeX TXS-program:compile = txs:///pdflatex/
% !BIB program = biber
% !BIB TS-program = biber
% !TeX TXS-program:bibliography = txs:///biber
%%%%%%%%%%%%%%%%
%% PREAMBLE %%
%%%%%%%%%%%%%%%%
% To ``accept'' all changes in the document:
%\PassOptionsToPackage{final}{changes}
%\PassOptionsToPackage{disable}{todonotes}
\documentclass[a4paper, 10pt]{article}
% fleqn: flush-left aligned equations
\newcommand{\papertitle}{A~Template for Academic Manuscripts}
\input{0_0_Preamble/Preamble_Fundamental_packages}
\hypersetup{
pdftitle={\papertitle},
pdfauthor={Adam Smith, Janet Smith, Jeremiah Smith}
}
\input {0_0_Preamble/Preamble_Page_layout_general}
\input {0_0_Preamble/Preamble_Page_layout_paper}
\subimport{0_0_Preamble/}{Preamble_Fonts_Charter_FiraSans}
\input {0_0_Preamble/Preamble_Sansserif_math}
\input {0_0_Preamble/Preamble_BibLaTeX_AER} %\input{0_0_Preamble/Preamble_BibLaTeX_APA}
\input {0_0_Preamble/Preamble_Commenting_and_highlighting}
\input {0_0_Preamble/Preamble_Miscellaneous}
% Add global hyphenation rules to avoid unwelcome linebreaks:
\hyphenation{Bu-shong Della-Vigna inter-tem-po-ral K\H{o}-szegi Spren-ger Bala-krish-nan}
%% If desired, set up deviations from the default bibliography settings:
%\ExecuteBibliographyOptions{
% compresspages = false,
% uniquename = true, uniquelist = true, maxbibnames = 99
%}
%% % Full author list on first citation, ``et al.'' only from second citation onwards:
%% See https://tex.stackexchange.com/questions/478750/biblatex-first-citation-all-names-after-that-et-al:
%\AtEveryCitekey{%
% \ifciteseen
% {}
% {\defcounter{maxnames}{6}}%
%}
\bibliography{Library}
%%%%%%%%%%%%%%%%%%%%%
%% DOCUMENT BODY %%
%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\defcitealias{Koszegi2013}{K\H{o}szegi--Szeidl}
\selectlanguage{USenglish} \frenchspacing
\input{0_1_Titlepage_paper/Titlepage}
% \subimport enables execution of \input commands in subdocuments without having to adjust paths
% Do not use \subimport*{...} (i.e., the asterisk version), since this will lead to
% font issues.
\subimport{1_Example_Content/1_Introduction/}{Introduction}
\subimport{1_Example_Content/2_Methods/}{Design}
\subimport{1_Example_Content/2_Methods/}{Predictions}
\subimport{1_Example_Content/3_Results/}{Results}
\subimport{1_Example_Content/3_Results/}{Structural_Estimation}
\subimport{1_Example_Content/4_Discussion/}{Discussion}
\subimport{1_Example_Content/5_Conclusion/}{Conclusion}
\clearpage
\begin{appendices}
\label{sec:appendix}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{Attention}
\FloatBarrier
\newpage
\subimport{1_Example_Content/9_Appendix/}{Additional_Figures}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{siunitx_Examples}
\FloatBarrier
\newpage
%\begin{ignore}
{%
\setlength{\parindent}{0cm}
%\setlength{\mathindent}{0cm} % Only for ``fleqn'' option
\input{2_Math_Tests/mathtest_defs}
\newpage
\renewcommand{\showfamily}{{\color{magenta}%
Serif%
}}
{\rmfamily\mdseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\newpage
\renewcommand{\showfamily}{{\color{magenta}%
Serif Bold%
}}
{\rmfamily\bfseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\newpage
\renewcommand{\showfamily}{{\color{magenta}%
Sans Serif%
}}
{\sffamily\mdseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\newpage
\renewcommand{\showfamily}{{\color{magenta}%
Sans Serif Bold%
}}
{\sffamily\bfseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}%
}
%\end{ignore}
\end{appendices}
\newpage
\phantomsection % Needed for the bibliography bookmark to point to the correct page
\begin{refcontext}[sorting=nyt] % Sort BIBLIOGRAPHY by alphabet (while CITATIONS are sorted by year)
\printbibliography[heading=bibintoc]
\end{refcontext}
\end{document}