/
RiskyContrib.sty
83 lines (69 loc) · 3.02 KB
/
RiskyContrib.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
\usepackage{xr-hyper}
\usepackage{refcount}
\newcommand{\onlyinsubfile}[1]{#1}
\newcommand{\notinsubfile}[1]{}
\newcommand\labelprefix{} % https://tex.stackexchange.com/questions/463699/proper-reference-numbers-with-subfiles
\newcommand\localorexternallabel[1]{%
\expandafter\ifx\csname r@#1\endcsname\relax
\labelprefix
\fi #1%
}
% Ensure that you're in math mode when using the \cancel command (otherwise tex4ht produces bad output)
\newcommand\cncl[1]{\ensuremath{\cancel{#1}}}
% Date of final version of paper
\renewcommand{\forcedate}{November 17, 2019}
% Define the handles for the various conditions
\newcommand{\PFGIC}{{\mbox{PF-GIC}}}
\newcommand{\AIC}{{\mbox{AIC}}}
\newcommand{\PFFVAC}{{\mbox{PF-FVAC}}}
\newcommand{\FVAC}{{\mbox{FVAC}}}
\newcommand{\GIC}{{\mbox{GIC}}}
\newcommand{\RIC}{{\mbox{RIC}}}
\newcommand{\WRIC}{{\mbox{WRIC}}}
\newcommand{\FHWC}{{\mbox{FHWC}}}
% Some symbols
\providecommand{\Adj}{\text{Adj}}
\providecommand{\NAdj}{\cancel{\text{Adj}}}
\providecommand{\Contr}{\zeta}
\providecommand{\Reb}{\mathtt{Reb}}
\providecommand{\Sha}{\mathtt{Sha}}
\providecommand{\Cns}{\mathtt{Cns}}
\providecommand{\dFrac}{\underline{d}}
% Other tools
\newcommand{\BoydT}{\mathsf{T}} % Contraction mapping operator
\newcommand{\Shrinker}{\alpha} % Contraction mapping shrinker
% Locations of various resources
\providecommand{\EqDir}{Equations} % Accessible to Slides; if changed in main text, propagates
\providecommand{\FigsTeX}{Figures}
\providecommand{\FigsRaw}{Code/Mathematica/Results/BufferStockTheory/Figures} % Use figures generated by Mathematica
\renewcommand{\FigsRaw}{Code/Python/Figures} % Comment this line to switch to using figs generated by Mathematica
\providecommand{\CodeDir}{Code}
\providecommand{\CalibrationDir}{Calibration}
\providecommand{\TableDir}{Tables}
\providecommand{\ApndxDir}{Appendices}
% Appendices and body are subfiles
\usepackage{subfiles}
% Diagrams
\usepackage{tikz}
% Implement a standard setup and shortcuts, e.g. for the \CRRA
\usepackage{\econtexSetup}\usepackage{\econtexShortcuts}\usepackage{makecell}
\provideboolean{Shorter} % Flag to produce shorter version of paper
\setboolean{Shorter}{true}
\setboolean{Shorter}{false}
\providecommand{\ShorterYN}{\ifthenelse{\boolean{Shorter}}}
\usepackage{rotating}\usepackage{subfigure}
% Embed metadata
\hypersetup{pdfauthor={Christopher D. Carroll <ccarroll@jhu.edu>},
pdftitle={Theoretical Foundations of Buffer Stock Saving},
pdfkeywords={Precautionary saving, buffer-stock saving, consumption, marginal propensity to consume, permanent income hypothesis},
pdfcreator = {ccarroll@jhu.edu}
}
\bibliographystyle{\econtexBibStyle}
% \externaldocument{\ApndxDir/ApndxLiqConstr}
% \externaldocument{\ApndxDir/ApndxConcaveCFunc}
% \externaldocument{\ApndxDir/ApndxEuclidian}
% \externaldocument{\ApndxDir/ApndxCGroIsPGro}
% \externaldocument{\ApndxDir/ApndxMPCLimits}
% \externaldocument{\ApndxDir/ApndxLiqConstrAsLimit}
% \externaldocument{\ApndxDir/ApndxSolnMethEndogGpts}
% \externaldocument{\ApndxDir/ApndxSolnMethTermFunc}