mergeron 2024.739125.2__py3-none-any.whl → 2024.739127.0__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 +1 -1
- mergeron/gen/data_generation.py +21 -21
- mergeron/gen/enforcement_stats.py +3 -553
- mergeron/gen/upp_tests.py +16 -17
- {mergeron-2024.739125.2.dist-info → mergeron-2024.739127.0.dist-info}/METADATA +1 -1
- mergeron-2024.739127.0.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.2.dist-info/RECORD +0 -32
- {mergeron-2024.739125.2.dist-info → mergeron-2024.739127.0.dist-info}/WHEEL +0 -0
|
@@ -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=iUTbN1iDXI_kex3PMtER6uHcikh16GPW07gs7XaPQvk,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=cOmjnXFU1vgOph1sqTobUGhpeZqnYIaSiuLb_ECfxVI,28587
|
|
28
|
-
mergeron/gen/upp_tests.py,sha256=yzEwWK1bVfjtBYMwXnL5uEWWRiR0_9y0wmjNMB-O3rU,12589
|
|
29
|
-
mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
30
|
-
mergeron-2024.739125.2.dist-info/METADATA,sha256=MDIz4Yi5ilvmv0mkx_52SL1m6YNuvWa1wSX-JmToI9U,13976
|
|
31
|
-
mergeron-2024.739125.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
32
|
-
mergeron-2024.739125.2.dist-info/RECORD,,
|
|
File without changes
|