mergeron 2024.739125.3__py3-none-any.whl → 2024.739127.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mergeron might be problematic. Click here for more details.
- mergeron/__init__.py +8 -9
- mergeron/core/ftc_merger_investigations_data.py +2 -2
- mergeron/core/guidelines_boundaries.py +2 -2
- mergeron/demo/visualize_empirical_margin_distribution.py +2 -3
- mergeron/gen/data_generation.py +21 -21
- mergeron/gen/enforcement_stats.py +3 -538
- mergeron/gen/upp_tests.py +19 -18
- {mergeron-2024.739125.3.dist-info → mergeron-2024.739127.1.dist-info}/METADATA +6 -6
- mergeron-2024.739127.1.dist-info/RECORD +24 -0
- mergeron/data/jinja2_LaTeX_templates/clrrate_cis_summary_table_template.tex.jinja2 +0 -121
- mergeron/data/jinja2_LaTeX_templates/ftcinvdata_byhhianddelta_table_template.tex.jinja2 +0 -82
- mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summary_table_template.tex.jinja2 +0 -57
- mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summarypaired_table_template_tabularray.tex.jinja2 +0 -81
- mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summarypaired_table_template_tikz.tex.jinja2 +0 -142
- mergeron/data/jinja2_LaTeX_templates/mergeron.cls +0 -155
- mergeron/data/jinja2_LaTeX_templates/mergeron_table_collection_template.tex.jinja2 +0 -93
- mergeron/data/jinja2_LaTeX_templates/setup_tikz_tables.sty +0 -129
- mergeron-2024.739125.3.dist-info/RECORD +0 -32
- {mergeron-2024.739125.3.dist-info → mergeron-2024.739127.1.dist-info}/WHEEL +0 -0
mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summarypaired_table_template_tikz.tex.jinja2
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
\begin{table}[bt]
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
((* if tmpl_data.test_regime == 'Enforcement' *))
|
|
5
|
-
((* set prop_title = "Proportion Enforced" *))
|
|
6
|
-
((* else *))
|
|
7
|
-
((* set prop_title = "Proportion Cleared" *))
|
|
8
|
-
((* endif *))
|
|
9
|
-
((* set prop_title = prop_title|replace(" ", "\\\\") *))
|
|
10
|
-
|
|
11
|
-
((* if tmpl_data.obs_merger_class_0 == 'All Markets' *))
|
|
12
|
-
((* set obs_merger_class_0 = "All Markets" *))
|
|
13
|
-
((* else *))
|
|
14
|
-
((* set obs_merger_class_0 = "Markets with, ``" + tmpl_data.obs_merger_class_0 + "''" *))
|
|
15
|
-
((* endif *))
|
|
16
|
-
|
|
17
|
-
((* if tmpl_data.obs_summary_type == 'ByConcZone' *))
|
|
18
|
-
((* set hdrcol_align = "left" *))
|
|
19
|
-
((* else *))
|
|
20
|
-
((* set hdrcol_align = "center" *))
|
|
21
|
-
((* endif *))
|
|
22
|
-
|
|
23
|
-
((* set obs_merger_class_1 = "Markets with, ``" + tmpl_data.obs_merger_class_1 + "''" *))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
\centering
|
|
28
|
-
\caption{FTC Merger Investigations Data}\label{tbl:FTCInvData_\JINVAR{- tmpl_data.obs_summary_type }}
|
|
29
|
-
{\footnotesize
|
|
30
|
-
\JINVAR{ tmpl_data.obs_summary_type_title } \\
|
|
31
|
-
Grouped by Entry Conditions and Reporting Period \\[0.5\baselineskip]
|
|
32
|
-
}
|
|
33
|
-
\begin{tikzpicture}[auto, font = \sffamily]
|
|
34
|
-
\matrix[
|
|
35
|
-
datatable,
|
|
36
|
-
nodes = {text width = 27pt,},
|
|
37
|
-
column 1/.style = {nodes = {
|
|
38
|
-
hdrtext,
|
|
39
|
-
text width=\JINVAR{ tmpl_data.hdrcol_width -}, fill=OBSHDRFill,
|
|
40
|
-
align=\JINVAR{ hdrcol_align -},
|
|
41
|
-
},},
|
|
42
|
-
record matrix dimensions,
|
|
43
|
-
] (invres_rate_raw) {
|
|
44
|
-
\JINVAR{ tmpl_data.invdata_datstr -}
|
|
45
|
-
};
|
|
46
|
-
% Horizontal scoring for totals
|
|
47
|
-
\draw[color = OBSHDRFill, line width = 1pt]
|
|
48
|
-
($(invres_rate_raw-\the\tnr-2.north west) + (- \JINVAR{ tmpl_data.hdrcol_width } - 6pt + 0.25\pgflinewidth, 0pt)$)
|
|
49
|
-
-- (invres_rate_raw-\the\tnr-\the\tnc.north east)
|
|
50
|
-
;
|
|
51
|
-
% Vertical scoring for column groups
|
|
52
|
-
\draw[color = OBSHDRFill, line width = 1pt] (invres_rate_raw-1-3.north east) -- (invres_rate_raw-\the\tnr-3.south east);
|
|
53
|
-
\draw[color = OBSHDRFill, line width = 1pt] (invres_rate_raw-1-5.north east) -- (invres_rate_raw-\the\tnr-5.south east);
|
|
54
|
-
\draw[color = OBSHDRFill, line width = 1pt] (invres_rate_raw-1-7.north east) -- (invres_rate_raw-\the\tnr-7.south east);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
%% Header column - row heads - description
|
|
58
|
-
\matrix[
|
|
59
|
-
hcol,
|
|
60
|
-
above right=0pt of invres_rate_raw.north west,
|
|
61
|
-
nodes = {
|
|
62
|
-
text width=\JINVAR{- tmpl_data.hdrcol_width -},
|
|
63
|
-
text depth=10pt,
|
|
64
|
-
},
|
|
65
|
-
] (hdrcol_desc) {
|
|
66
|
-
\node[align = center,] { \JINVAR{- tmpl_data.hdrcol_desc_text } \\ }; \\
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
% Header row - column heads
|
|
70
|
-
\matrix[
|
|
71
|
-
hrow,
|
|
72
|
-
above right = 0 pt of hdrcol_desc.south east,
|
|
73
|
-
nodes = {
|
|
74
|
-
rotate = 90,
|
|
75
|
-
minimum height = 33pt,
|
|
76
|
-
text depth = 10pt,
|
|
77
|
-
align = left,
|
|
78
|
-
}, %
|
|
79
|
-
] (hdrrow_raw) {
|
|
80
|
-
{Relative \\ Frequency} &
|
|
81
|
-
{\JINVAR{ prop_title }} &
|
|
82
|
-
{Relative \\ Frequency} &
|
|
83
|
-
{\JINVAR{ prop_title }} &
|
|
84
|
-
{Relative \\ Frequency} &
|
|
85
|
-
{\JINVAR{ prop_title }} &
|
|
86
|
-
{Relative \\ Frequency} &
|
|
87
|
-
{\JINVAR{ prop_title }} \\
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
%% Header row - columns description -- Markets 0 - period 1-2
|
|
91
|
-
\matrix[hrow, above right = 0pt of hdrrow_raw.north west, nodes = {minimum height = 12.5pt, text width = 59.6pt,},] (descrow_pds) {
|
|
92
|
-
\JINVAR{ tmpl_data.obs_periods_str } & \JINVAR{ tmpl_data.obs_periods_str } \\
|
|
93
|
-
\JINVAR{ tmpl_data.mkt_counts_str_class_0 } & \JINVAR{ tmpl_data.mkt_counts_str_class_1 } \\
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
% Header row - Market-1
|
|
97
|
-
\matrix[hrow, above right = 0pt of descrow_pds.north west, nodes = {minimum height = 12.5pt, text width = 124.8pt},] (descrow_mkts) {
|
|
98
|
-
\JINVAR{ obs_merger_class_0 } & \JINVAR{ obs_merger_class_1 } \\
|
|
99
|
-
};
|
|
100
|
-
% Header row - columns description
|
|
101
|
-
\matrix[hrow, above right = 0pt of descrow_mkts.north west, nodes = {minimum height = 12.5pt, text width = 255.2pt},] (descrow_obs) {
|
|
102
|
-
Observed Data \\
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
%% Vertical scoring delineating column groups
|
|
106
|
-
\draw[color = white, line width = 1pt] (descrow_pds-1-1.north east) -- (invres_rate_raw-1-3.north east);
|
|
107
|
-
\draw[color = white, line width = 1pt] (descrow_mkts-1-1.north east) -- (invres_rate_raw-1-5.north east);
|
|
108
|
-
\draw[color = white, line width = 1pt] (descrow_pds-1-3.north east) -- (invres_rate_raw-1-7.north east);
|
|
109
|
-
|
|
110
|
-
%% Fill along header
|
|
111
|
-
\draw[color = OBSHDRFill, fill = OBSHDRFill,]
|
|
112
|
-
(hdrcol_desc.north west |- descrow_obs.north west)
|
|
113
|
-
rectangle
|
|
114
|
-
(hdrcol_desc.north east)
|
|
115
|
-
;
|
|
116
|
-
|
|
117
|
-
\end{tikzpicture}
|
|
118
|
-
|
|
119
|
-
\setlist{nosep}
|
|
120
|
-
\vspace{\baselineskip}
|
|
121
|
-
{\raggedright\sffamily\tiny%
|
|
122
|
-
%
|
|
123
|
-
% NOTES:
|
|
124
|
-
% \begin{itemize}
|
|
125
|
-
% \item Data for period, 2004--2011 calculated by subtracting reported figures for 1996--2003 from reported figures for 1996--2011
|
|
126
|
-
% \item Ranges of $\Delta HHI$ are defined as half-open intervals with \(\Delta_L \leqslant \Delta HHI < \Delta_H\), except that \(2500 \text{ pts.} \leqslant \Delta HHI \leqslant 5000 \text{ pts.}\) in the closed interval [2500, 5000] pts.
|
|
127
|
-
% \end{itemize}
|
|
128
|
-
|
|
129
|
-
% SOURCES:
|
|
130
|
-
% \begin{itemize}
|
|
131
|
-
% % \item \fullcite{FTCInvData2003}, Table~4.1 and Table~10.2
|
|
132
|
-
% \item Fed. Trade Comm'n (2003), at note~\cref{fn:FTCInvData1996to2003}
|
|
133
|
-
% \item Fed. Trade Comm'n (2011), at note~\cref{fn:FTCInvData1996to2011}
|
|
134
|
-
% \end{itemize}
|
|
135
|
-
\JINVAR{ tmpl_data.invdata_notestr }
|
|
136
|
-
\vspace{\baselineskip}
|
|
137
|
-
\JINVAR{ tmpl_data.invdata_sourcestr }
|
|
138
|
-
}
|
|
139
|
-
\vspace{\baselineskip}
|
|
140
|
-
\end{table}
|
|
141
|
-
|
|
142
|
-
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
\ProvidesClass{mergeron}
|
|
2
|
-
|
|
3
|
-
\LoadClass{scrartcl}
|
|
4
|
-
\RequirePackage[singlespacing=true]{scrlayer-scrpage}
|
|
5
|
-
\KOMAoptions{
|
|
6
|
-
draft=off,
|
|
7
|
-
fontsize=12pt,
|
|
8
|
-
paper=letter,
|
|
9
|
-
DIV=12,
|
|
10
|
-
footnotes=multiple,
|
|
11
|
-
numbers=withendperiod,
|
|
12
|
-
headsepline=on,
|
|
13
|
-
footsepline=off,
|
|
14
|
-
abstract=on,
|
|
15
|
-
headheight=36pt,
|
|
16
|
-
footheight=48pt,
|
|
17
|
-
}
|
|
18
|
-
\RequirePackage[l2tabu, orthodox]{nag}
|
|
19
|
-
|
|
20
|
-
\RequirePackage{polyglossia}
|
|
21
|
-
\setdefaultlanguage[variant=american]{english}
|
|
22
|
-
% Appendix prefix for scrartcl
|
|
23
|
-
\newcommand*{\appendixmore}{%
|
|
24
|
-
\renewcommand*{\sectionformat}{%
|
|
25
|
-
\appendixname~\thesection\autodot\enskip%
|
|
26
|
-
}%
|
|
27
|
-
\renewcommand*{\sectionmarkformat}{%
|
|
28
|
-
\appendixname~\thesection\autodot\enskip%
|
|
29
|
-
}%
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
\RequirePackage[doublespacing]{setspace}
|
|
33
|
-
\RequirePackage[noorphans, listvskip, font=singlespacing]{quoting}
|
|
34
|
-
\RequirePackage{csquotes}
|
|
35
|
-
\AtBeginEnvironment{quoting}{\vspace{-1\baselineskip}}
|
|
36
|
-
|
|
37
|
-
\RequirePackage[en-US,calc]{datetime2}
|
|
38
|
-
\RequirePackage{fontawesome5}
|
|
39
|
-
\RequirePackage{etoolbox}
|
|
40
|
-
\RequirePackage{auxhook}
|
|
41
|
-
\RequirePackage{xurl}
|
|
42
|
-
\RequirePackage[table]{xcolor}
|
|
43
|
-
\RequirePackage{tikz}
|
|
44
|
-
\usetikzlibrary{backgrounds, calc, matrix, positioning}
|
|
45
|
-
|
|
46
|
-
\RequirePackage{titling}
|
|
47
|
-
\setlength{\droptitle}{-1.0in}
|
|
48
|
-
|
|
49
|
-
% Define CAP Economics official color
|
|
50
|
-
\definecolor{CAPEconPurple}{HTML}{200054}
|
|
51
|
-
% https://htmlcolorcodes.com/color-picker/
|
|
52
|
-
\definecolor{CAPEconPurpleTint4}{HTML}{9080aa}
|
|
53
|
-
\definecolor{CAPEconPurpleTint6}{HTML}{c7bfd4}
|
|
54
|
-
\definecolor{CAPEconPurpleTint7}{HTML}{e3dfea}
|
|
55
|
-
|
|
56
|
-
% Fonts and math
|
|
57
|
-
\RequirePackage{fontspec}
|
|
58
|
-
\setmonofont[Scale=MatchLowercase,]{Roboto Mono}
|
|
59
|
-
\setsansfont{Roboto}
|
|
60
|
-
\setmainfont{STIXTwoText}
|
|
61
|
-
|
|
62
|
-
\RequirePackage[standard]{ntheorem}
|
|
63
|
-
\RequirePackage{mathtools}
|
|
64
|
-
\RequirePackage{unicode-math}
|
|
65
|
-
\setmathfont{STIXTwoMath}[math-style=ISO]
|
|
66
|
-
% Separate \mathscr from \mathcal
|
|
67
|
-
\setmathfont{STIXTwoMath}[range={scr,bfscr},StylisticSet=01]
|
|
68
|
-
|
|
69
|
-
\defaultfontfeatures[\rmfamily,\sffamily]{
|
|
70
|
-
Ligatures={TeX, Common},
|
|
71
|
-
Numbers={proportional, lining}
|
|
72
|
-
}
|
|
73
|
-
\RequirePackage[
|
|
74
|
-
activate={true,nocompatibility},
|
|
75
|
-
tracking=true,
|
|
76
|
-
]{microtype}
|
|
77
|
-
|
|
78
|
-
\RequirePackage{tabularray}
|
|
79
|
-
\UseTblrLibrary{booktabs}
|
|
80
|
-
%% Tables need sansserif font
|
|
81
|
-
%% https://tex.stackexchange.com/questions/286733/change-content-font-in-tabular-environments
|
|
82
|
-
\makeatletter
|
|
83
|
-
\appto\@floatboxreset{%
|
|
84
|
-
\ifx\@captype\andy@table
|
|
85
|
-
\sffamily\addfontfeatures{Numbers={Monospaced, Lining},}
|
|
86
|
-
\fi
|
|
87
|
-
}
|
|
88
|
-
\def\andy@table{table}
|
|
89
|
-
\makeatother
|
|
90
|
-
|
|
91
|
-
%% Don't want full page figures to be vertically centered
|
|
92
|
-
%% https://tex.stackexchange.com/questions/28067/automatic-vertical-alignment-of-a-single-float-on-a-dedicated-page
|
|
93
|
-
\makeatletter
|
|
94
|
-
\setlength{\@fptop}{0pt}
|
|
95
|
-
\setlength{\@fpbot}{0pt plus 1fil}
|
|
96
|
-
\makeatother
|
|
97
|
-
|
|
98
|
-
%% Captions in Sans Serif
|
|
99
|
-
\addtokomafont{caption}{\sffamily}
|
|
100
|
-
\addtokomafont{caption}{\fontsize{10pt}{12pt}\selectfont}
|
|
101
|
-
|
|
102
|
-
%% Tweak footnotes
|
|
103
|
-
\setlength{\footnotesep}{1.5ex}
|
|
104
|
-
% \interfootnotelinepenalty=10000 % Force note text together
|
|
105
|
-
%% Read KOMA-Script documentation
|
|
106
|
-
\setfootnoterule[0.4pt]{\linewidth}
|
|
107
|
-
\deffootnote{2.5em}{2.5em}{%
|
|
108
|
-
\makebox[2.5em][l]{\hspace{1ex}\thefootnotemark.}%
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
%% For highlighting text with a colored background, soul
|
|
112
|
-
\RequirePackage{soul}
|
|
113
|
-
\sethlcolor{yellow}
|
|
114
|
-
|
|
115
|
-
%% Properly typset intervals, and avoid messages about unmatched parentheses
|
|
116
|
-
\RequirePackage{interval}
|
|
117
|
-
\intervalconfig{
|
|
118
|
-
soft open fences,
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
%%% custom commands, environments and symbols
|
|
122
|
-
\renewcommand{\ge}{\geqslant}\renewcommand{\geq}{\geqslant}
|
|
123
|
-
\renewcommand{\le}{\leqslant}\renewcommand{\leq}{\leqslant}
|
|
124
|
-
\DeclarePairedDelimiter\abs{\lvert}{\rvert}%
|
|
125
|
-
\DeclarePairedDelimiter\norm{\lVert}{\rVert}%
|
|
126
|
-
|
|
127
|
-
%% Define a paired-delimiter for defining sets
|
|
128
|
-
%% https://tex.stackexchange.com/questions/268766/curly-braces-in-math-mode
|
|
129
|
-
\DeclarePairedDelimiter\set\{\}
|
|
130
|
-
%% http://mirrors.ctan.org/macros/latex/contrib/mathtools/mathtools.pdf, 27--28
|
|
131
|
-
\DeclarePairedDelimiterX\SetSuchThat[2]{\lbrace}{\rbrace}{%
|
|
132
|
-
#1 \, \delimsize\vert \, \mathopen{}#2
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
%% Sometimes, you just want to comment out several lies of text
|
|
136
|
-
%% https://tex.stackexchange.com/questions/44282/multiline-comment
|
|
137
|
-
\newcommand{\mycomment}[1]{}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
%% Need a datetime package for various date related inserts
|
|
141
|
-
\RequirePackage[en-US,calc]{datetime2}
|
|
142
|
-
|
|
143
|
-
\RequirePackage{xurl}
|
|
144
|
-
\RequirePackage{hyperref}
|
|
145
|
-
\ProcessOptions\relax
|
|
146
|
-
\hypersetup{%
|
|
147
|
-
bookmarksnumbered=false,
|
|
148
|
-
hidelinks,
|
|
149
|
-
}
|
|
150
|
-
\RequirePackage[capitalize, noabbrev]{cleveref}
|
|
151
|
-
|
|
152
|
-
\AtBeginDocument{%
|
|
153
|
-
\SetBlockEnvironment{quoting}
|
|
154
|
-
}
|
|
155
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
\DocumentMetadata{pdfversion=1.7, lang=en-US, pdfstandard=A-3u}
|
|
2
|
-
\documentclass{mergeron}
|
|
3
|
-
|
|
4
|
-
%% Get column- and row-counts for tikz matrix
|
|
5
|
-
\newcount\tnr
|
|
6
|
-
\newcount\tnc
|
|
7
|
-
\makeatletter
|
|
8
|
-
\tikzset{record matrix dimensions/.style={execute at end matrix={
|
|
9
|
-
\global\tnc=\pgf@matrix@numberofcolumns
|
|
10
|
-
\global\tnr=\pgfmatrixcurrentrow
|
|
11
|
-
}}}
|
|
12
|
-
\makeatother
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
% Specify location for includegraphics files:
|
|
16
|
-
\graphicspath{{~/mergeron}}
|
|
17
|
-
|
|
18
|
-
%% Define some symbols
|
|
19
|
-
\newcommand{\mktshr}[1]{\emph{s}\textsubscript{#1}}
|
|
20
|
-
\newcommand{\safeharb}[1]{\ensuremath{\overline{#1}}}
|
|
21
|
-
\newcommand{\Conc}[0]{HHI}
|
|
22
|
-
\newcommand{\Deltah}[0]{ΔHHI}
|
|
23
|
-
% \newcommand{\Deltah}[0]{\ensuremath{\Delta HHI}}
|
|
24
|
-
|
|
25
|
-
%% A square-root symbol that scales with the arguments (varies with font, sadly)
|
|
26
|
-
%% https://www.pgdp.net/wiki/LaTeX_formatting_tips_and_tricks
|
|
27
|
-
%% https://mirrors.ibiblio.org/CTAN/fonts/stix2-type1/stix2.pdf
|
|
28
|
-
%% If you need bigger surds, you can also use {largesymbols}{"75} or {"76}
|
|
29
|
-
\DeclareMathDelimiter{\bigsurd}{\mathopen}{largesymbols}{"F9}{largesymbols}{"74}
|
|
30
|
-
\NewDocumentCommand\FlexSurd{m}{\ensuremath{\left\bigsurd #1\right.}}
|
|
31
|
-
\NewDocumentCommand\ExpSqRoot{m}{\ensuremath{#1^{1/2}}}
|
|
32
|
-
|
|
33
|
-
%% Define colors for tables
|
|
34
|
-
\definecolor{table_bar_green}{HTML}{dfeadf}
|
|
35
|
-
|
|
36
|
-
\usepackage{enumitem}
|
|
37
|
-
|
|
38
|
-
%% BibLaTex/APA style citation
|
|
39
|
-
\usepackage[
|
|
40
|
-
sorting=nyt,
|
|
41
|
-
style=apa,
|
|
42
|
-
natbib,
|
|
43
|
-
maxcitenames=2,
|
|
44
|
-
]{biblatex}
|
|
45
|
-
\addbibresource{HorizontalMergerAnalysis.bib}
|
|
46
|
-
\AtBeginDocument{%
|
|
47
|
-
\SetCiteCommand{\parencite}%
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
\NewDocumentCommand\casecitefull{m m m}{%
|
|
51
|
-
\ifblank{#1}{}{#1~}%
|
|
52
|
-
\citefield{#3}[mkbibemph]{title},~%
|
|
53
|
-
\citelist{#3}{citation}%
|
|
54
|
-
\ifblank{#2}{~}{,~#2~}%
|
|
55
|
-
(\citelist{#3}{organization} \citefield{#3}{year})%
|
|
56
|
-
}
|
|
57
|
-
\NewDocumentCommand\casecitetitle{m m m}{%
|
|
58
|
-
\ifblank{#1}{}{#1~}%
|
|
59
|
-
\citefield{#3}[mkbibemph]{shorttitle}%
|
|
60
|
-
\ifblank{#2}{}{ at~#2}%
|
|
61
|
-
}
|
|
62
|
-
\NewDocumentCommand\casecite{O{} O{} m}{%
|
|
63
|
-
\ifentryseen{#3}%
|
|
64
|
-
{\casecitetitle{#1}{#2}{#3}}%
|
|
65
|
-
{\casecitefull{#1}{#2}{#3}}%
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
%% Set some page typesetting parameters, recalculate the type area, and go
|
|
70
|
-
\clubpenalty=10000
|
|
71
|
-
\widowpenalty=10000
|
|
72
|
-
\displaywidowpenalty=10000
|
|
73
|
-
\tolerance 1414
|
|
74
|
-
\hbadness 1414
|
|
75
|
-
\emergencystretch 1.5em
|
|
76
|
-
\hfuzz 0.3pt
|
|
77
|
-
\vfuzz
|
|
78
|
-
\hfuzz
|
|
79
|
-
\raggedbottom{}
|
|
80
|
-
\recalctypearea{}
|
|
81
|
-
|
|
82
|
-
% -----------------------------------------------------------------------------
|
|
83
|
-
\begin{document}
|
|
84
|
-
|
|
85
|
-
\include{mergeron_TikZTableSettings.tex}
|
|
86
|
-
((* for item in tmpl_data.path_list *))
|
|
87
|
-
\include{ \JINVAR{ item } }
|
|
88
|
-
((* endfor *))
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
% -----------------------------------------------------------------------------
|
|
92
|
-
\end{document}
|
|
93
|
-
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
% Tables in tikz, but first we need to define some colors for nonwhite text backgrounds
|
|
2
|
-
\definecolor{OBSHDRFill}{HTML}{0a6c97}
|
|
3
|
-
\definecolor{SIMHDRFill}{HTML}{646464}
|
|
4
|
-
\definecolor{DataFill}{HTML}{dfeadf}
|
|
5
|
-
% The below are definition's from Paul Tol's website, https://personal.sron.nl/~pault/
|
|
6
|
-
\definecolor{VibrBlue}{HTML}{0077bb}
|
|
7
|
-
\definecolor{BrightGreen}{HTML}{228833}
|
|
8
|
-
\definecolor{HiCoYellow}{HTML}{ddaa33}
|
|
9
|
-
\definecolor{VibrRed}{HTML}{cc3311}
|
|
10
|
-
|
|
11
|
-
%% Rotating text in a tabularray cell
|
|
12
|
-
%% https://tex.stackexchange.com/questions/101686/rotating-text-in-a-cell
|
|
13
|
-
%%https://tex.stackexchange.com/questions/464170/how-to-rotate-text-in-table
|
|
14
|
-
\usepackage{rotating}
|
|
15
|
-
\usepackage{makecell}
|
|
16
|
-
|
|
17
|
-
%% https://github.com/lvjr/tabularray/discussions/85#discussioncomment-3397197
|
|
18
|
-
\setlength\rotheadsize{1.5cm}
|
|
19
|
-
\renewcommand\theadfont{}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
\newcount\tnr
|
|
24
|
-
\newcount\tnc
|
|
25
|
-
% \makeatletter
|
|
26
|
-
% \tikzset{record matrix dimensions/.style={execute at end matrix={
|
|
27
|
-
% \global\tnc=\pgf@matrix@numberofcolumns
|
|
28
|
-
% \global\tnr=\pgfmatrixcurrentrow
|
|
29
|
-
% }}}
|
|
30
|
-
% \makeatother
|
|
31
|
-
|
|
32
|
-
% Some useful documents from grokking various options used below
|
|
33
|
-
% https://courses.helsinki.fi/sites/default/files/course-material/4611024/LaTeXandFriendsCourseInHelsinki_9_v2.pdf
|
|
34
|
-
% https://tug.org/TUGboat/tb39-1/tb121duck-tikz.pdf
|
|
35
|
-
% https://tug.org/TUGboat/tb41-1/tb127duck-matrix.pdf
|
|
36
|
-
% https://tex.stackexchange.com/questions/22286/coloring-every-other-row-of-a-table-with-vertical-lines
|
|
37
|
-
% https://tex.stackexchange.com/questions/354043/swot-matrix-with-multicolumn-and-multirow
|
|
38
|
-
% https://tex.stackexchange.com/questions/20599/horizontal-row-separation-line-in-tikz-matrix-like-hline-in-tabular
|
|
39
|
-
% https://tex.stackexchange.com/questions/63560/how-to-use-x-coordinate-of-a-point-and-y-coordinate-of-other-point
|
|
40
|
-
% https://tex.stackexchange.com/questions/167944/auto-word-wrapping-in-a-node-in-tikz
|
|
41
|
-
% https://tex.stackexchange.com/questions/132741/typewriter-in-tikz-node
|
|
42
|
-
\tikzset{
|
|
43
|
-
green_bar_filler/.code={
|
|
44
|
-
\pgfmathtruncatemacro{\itest}{ifthenelse(%
|
|
45
|
-
\pgfmatrixcurrentcolumn==1,0,%
|
|
46
|
-
ifthenelse(iseven(\pgfmatrixcurrentrow),1,3))}
|
|
47
|
-
%\typeout{\the\pgfmatrixcurrentcolumn,\pgfmatrixcurrentrow->\itest}
|
|
48
|
-
\ifcase\itest
|
|
49
|
-
\tikzset{fill=none}%
|
|
50
|
-
\or
|
|
51
|
-
\tikzset{fill=DataFill}%
|
|
52
|
-
\else
|
|
53
|
-
\tikzset{fill=white}%
|
|
54
|
-
\fi
|
|
55
|
-
},
|
|
56
|
-
get_matrix_dims/.code={
|
|
57
|
-
\global\tnc=\pgf@matrix@numberofcolumns
|
|
58
|
-
\global\tnr=\pgfmatrixcurrentrow
|
|
59
|
-
},
|
|
60
|
-
record matrix dimensions/.style={
|
|
61
|
-
execute at end matrix={get_matrix_dims},
|
|
62
|
-
% execute at end matrix={
|
|
63
|
-
% \global\tnc=\pgf@matrix@numberofcolumns
|
|
64
|
-
% \global\tnr=\pgfmatrixcurrentrow
|
|
65
|
-
% }
|
|
66
|
-
},
|
|
67
|
-
% If you only have numbers, text depth = 0ex; if text, text depth = 0.25ex, (may need tweaking for alignment across cells)
|
|
68
|
-
anytext/.style = {
|
|
69
|
-
font = \sffamily\scriptsize\addfontfeatures{Numbers={Monospaced,Lining}},
|
|
70
|
-
align = center,
|
|
71
|
-
inner sep = 3pt,
|
|
72
|
-
text depth = 0pt,
|
|
73
|
-
},
|
|
74
|
-
hdrtext/.style = {
|
|
75
|
-
anytext,
|
|
76
|
-
text = white,
|
|
77
|
-
fill = OBSHDRFill,
|
|
78
|
-
},
|
|
79
|
-
notetext/.style = {
|
|
80
|
-
anytext,
|
|
81
|
-
font = \sffamily\tiny,
|
|
82
|
-
align = left,
|
|
83
|
-
},
|
|
84
|
-
anytable/.style = {
|
|
85
|
-
matrix of nodes,
|
|
86
|
-
nodes in empty cells,
|
|
87
|
-
column sep = -1.0\pgflinewidth,
|
|
88
|
-
row sep = -1.0\pgflinewidth,
|
|
89
|
-
inner sep = -0.25\pgflinewidth,
|
|
90
|
-
outer sep = -0.25\pgflinewidth,
|
|
91
|
-
nodes = {anchor = center, minimum height = 12.5pt,}
|
|
92
|
-
},
|
|
93
|
-
datatable/.style = {
|
|
94
|
-
anytable,
|
|
95
|
-
nodes = {
|
|
96
|
-
anytext,
|
|
97
|
-
align = right,
|
|
98
|
-
draw = none,
|
|
99
|
-
fill = none,
|
|
100
|
-
green_bar_filler,
|
|
101
|
-
},
|
|
102
|
-
% execute at end matrix={
|
|
103
|
-
% \global\tnc=\pgf@matrix@numberofcolumns
|
|
104
|
-
% \global\tnr=\pgfmatrixcurrentrow
|
|
105
|
-
% },
|
|
106
|
-
},
|
|
107
|
-
hdrtable/.style = {
|
|
108
|
-
anytable,
|
|
109
|
-
nodes = {
|
|
110
|
-
hdrtext,
|
|
111
|
-
draw = none,
|
|
112
|
-
fill = OBSHDRFill,
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
hrow/.style = {
|
|
116
|
-
hdrtable,
|
|
117
|
-
nodes = {text width = 40pt,},
|
|
118
|
-
},
|
|
119
|
-
hcol/.style = {
|
|
120
|
-
hdrtable,
|
|
121
|
-
nodes = {text width = 60pt,},
|
|
122
|
-
},
|
|
123
|
-
}
|
|
124
|
-
% Define layers for later reference
|
|
125
|
-
% https://tex.stackexchange.com/questions/40840/put-a-node-behind-another-in-a-tikz-diagram
|
|
126
|
-
\pgfdeclarelayer{background}
|
|
127
|
-
\pgfsetlayers{background,main}
|
|
128
|
-
|
|
129
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
mergeron/License.txt,sha256=7iX-y0EyjkbVJKJLS4ZKzuuE1wd0lryfsD_IytLG8lQ,1246
|
|
2
|
-
mergeron/__init__.py,sha256=8ZT4JASAmaM6sYkhAMbKJB7VhljYghDIEaLL4nfFWOE,1479
|
|
3
|
-
mergeron/core/__init__.py,sha256=KtjBlZOl7jwBCAUhrTJB9PdrN39YLYytNiSUSM_gRmA,62
|
|
4
|
-
mergeron/core/damodaran_margin_data.py,sha256=rMrgN1Qtw572a0ftY97OOj4otq8ldlLrcOi-bcE-org,8554
|
|
5
|
-
mergeron/core/ftc_merger_investigations_data.py,sha256=Q8d2N4brY2cwJClibwxOVfLE3WV0XZABssblGN6nOdA,28639
|
|
6
|
-
mergeron/core/guidelines_boundaries.py,sha256=sEvIIaOvWl6tMDYeZCIr8EsBioXOn9RSXKyKlmxnH-k,15610
|
|
7
|
-
mergeron/core/guidelines_boundary_functions.py,sha256=GGn5mwBWmxkqcat4Ya0D-J6-7ujosgCCK3eJ9RFWASI,29749
|
|
8
|
-
mergeron/core/guidelines_boundary_functions_extra.py,sha256=HDwwKZDWlrj3Tw-I0gHm0TCSDcIyb9jDfwbuDvK55B8,11322
|
|
9
|
-
mergeron/core/pseudorandom_numbers.py,sha256=cJEWDTfy9CUTzR_di6Fm1Vl1Le6xWoU8wFHbYVMEuLI,9225
|
|
10
|
-
mergeron/data/__init__.py,sha256=KtjBlZOl7jwBCAUhrTJB9PdrN39YLYytNiSUSM_gRmA,62
|
|
11
|
-
mergeron/data/damodaran_margin_data.xls,sha256=Qggl1p5nkOMJI8YUXhkwXQRz-OhRSqBTzz57N0JQyYA,79360
|
|
12
|
-
mergeron/data/damodaran_margin_data_dict.msgpack,sha256=sr6s4L69kposEpzGI7jpPb4ULz0UpY-bEYfeNi6UlRA,57621
|
|
13
|
-
mergeron/data/ftc_invdata.msgpack,sha256=WBFHgi7Ld4R-h2zL2Zc3TOIlKqVrbVFMH1LoI4-T-M0,264664
|
|
14
|
-
mergeron/data/jinja2_LaTeX_templates/clrrate_cis_summary_table_template.tex.jinja2,sha256=ae4JiciU-pt8YAM8mRbsmt4W6ePuN1y1NPCWD95oXIo,4833
|
|
15
|
-
mergeron/data/jinja2_LaTeX_templates/ftcinvdata_byhhianddelta_table_template.tex.jinja2,sha256=ODEurkC0UHuWpjRUiQpeW85njSeUEUJYRdYg8gqoEq0,3642
|
|
16
|
-
mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summary_table_template.tex.jinja2,sha256=h8_DEE0iskT9tnga5lZtxcoevN7pY4iKF-maErt4UU4,2906
|
|
17
|
-
mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summarypaired_table_template_tabularray.tex.jinja2,sha256=t6dVIYpt82-3h_XL_c15I2HlkdqgtsrZImxbL6qHY-Q,2847
|
|
18
|
-
mergeron/data/jinja2_LaTeX_templates/ftcinvdata_summarypaired_table_template_tikz.tex.jinja2,sha256=OJuvD2urDh3M1HHGHf1Sz32iuMAN_Yb_ltt8ewX3f5c,5511
|
|
19
|
-
mergeron/data/jinja2_LaTeX_templates/mergeron.cls,sha256=aM2nx2GVQayZ8JPtD_OU4zjYlnddYx9k9WumN4WQc6g,4385
|
|
20
|
-
mergeron/data/jinja2_LaTeX_templates/mergeron_table_collection_template.tex.jinja2,sha256=FQ1uEwQv2QlGJS1DqlJwh0nLZp5h8dRjoYfWzbq6uMc,2546
|
|
21
|
-
mergeron/data/jinja2_LaTeX_templates/setup_tikz_tables.sty,sha256=3KYNMDNWaMCN9HuCSayKHfZvWh3v6-rDy5M6n6zTe6k,4775
|
|
22
|
-
mergeron/demo/__init__.py,sha256=KtjBlZOl7jwBCAUhrTJB9PdrN39YLYytNiSUSM_gRmA,62
|
|
23
|
-
mergeron/demo/visualize_empirical_margin_distribution.py,sha256=v1xFJumBX2Ooye82kSSgly-_GpFVkYSDqBwM__rcmZY,2363
|
|
24
|
-
mergeron/gen/__init__.py,sha256=0rfcWpKDhYE_jNsw6xKTGFJqgNtfJ-5JFxHS89CIEuI,16575
|
|
25
|
-
mergeron/gen/data_generation.py,sha256=ZwcVoAfqGTwVBL7PRil_A9kZU8DQK0eCHtsBFA1QElA,16773
|
|
26
|
-
mergeron/gen/data_generation_functions.py,sha256=bP3E0IPXINRc8s0dUxS_Wqo1byVzheZLX811A17WNbU,28571
|
|
27
|
-
mergeron/gen/enforcement_stats.py,sha256=29cwiDNRUX9liwfQu1dAZnS-gfhjPTlPPuegF5ORKmQ,28162
|
|
28
|
-
mergeron/gen/upp_tests.py,sha256=yzEwWK1bVfjtBYMwXnL5uEWWRiR0_9y0wmjNMB-O3rU,12589
|
|
29
|
-
mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
30
|
-
mergeron-2024.739125.3.dist-info/METADATA,sha256=DdYMdez-t9YvyjsMAQ0Hh-jBmqaDInBYbAtotAzdjiQ,13976
|
|
31
|
-
mergeron-2024.739125.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
32
|
-
mergeron-2024.739125.3.dist-info/RECORD,,
|
|
File without changes
|