ltc-paper-scripts 0.1.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.
Files changed (35) hide show
  1. ltc_paper_scripts/README.md +87 -0
  2. ltc_paper_scripts/TICK_ALGORITHM_LICENSE.txt +26 -0
  3. ltc_paper_scripts/build_latex.py +293 -0
  4. ltc_paper_scripts/data/codex_synthetic/new_release_preview.xlsx +0 -0
  5. ltc_paper_scripts/exhibit_selection.py +52 -0
  6. ltc_paper_scripts/figure_ticks.py +51 -0
  7. ltc_paper_scripts/fonts/DejaVuSans-Bold.ttf +0 -0
  8. ltc_paper_scripts/fonts/DejaVuSans.ttf +0 -0
  9. ltc_paper_scripts/fonts/LICENSE.txt +96 -0
  10. ltc_paper_scripts/latex_figures.py +250 -0
  11. ltc_paper_scripts/latex_requirements.txt +4 -0
  12. ltc_paper_scripts/latex_source/outputs/tables/output/age25_earnings_table.tex +38 -0
  13. ltc_paper_scripts/latex_source/outputs/tables/output/balance_table.tex +54 -0
  14. ltc_paper_scripts/latex_source/outputs/tables/output/college_data_comparison_table.tex +20 -0
  15. ltc_paper_scripts/latex_source/outputs/tables/output/college_enrollment_completion_table.tex +31 -0
  16. ltc_paper_scripts/latex_source/outputs/tables/output/college_heterogeneity_table.tex +36 -0
  17. ltc_paper_scripts/latex_source/outputs/tables/output/college_mediation_additional_specs_table.tex +30 -0
  18. ltc_paper_scripts/latex_source/outputs/tables/output/college_test_score_mediation_table.tex +18 -0
  19. ltc_paper_scripts/latex_source/outputs/tables/output/earnings_heterogeneity_table.tex +54 -0
  20. ltc_paper_scripts/latex_source/outputs/tables/output/earnings_robustness_table.tex +29 -0
  21. ltc_paper_scripts/latex_source/outputs/tables/output/earnings_threshold_table.tex +27 -0
  22. ltc_paper_scripts/latex_source/outputs/tables/output/other_mediators_table.tex +31 -0
  23. ltc_paper_scripts/latex_source/outputs/tables/output/peer_family_comparisons_table.tex +20 -0
  24. ltc_paper_scripts/latex_source/outputs/tables/output/summary_statistics_table.tex +60 -0
  25. ltc_paper_scripts/latex_source/paper/appendix.tex +138 -0
  26. ltc_paper_scripts/latex_source/paper/preamble.tex +502 -0
  27. ltc_paper_scripts/latex_source/paper/tables-and-figures.tex +147 -0
  28. ltc_paper_scripts/mappings.py +328 -0
  29. ltc_paper_scripts/paths.py +23 -0
  30. ltc_paper_scripts/run_latex.sh +4 -0
  31. ltc_paper_scripts/split_inputs.py +163 -0
  32. ltc_paper_scripts/table_bindings.json +4084 -0
  33. ltc_paper_scripts-0.1.0.dist-info/METADATA +94 -0
  34. ltc_paper_scripts-0.1.0.dist-info/RECORD +35 -0
  35. ltc_paper_scripts-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,94 @@
1
+ Metadata-Version: 2.4
2
+ Name: ltc-paper-scripts
3
+ Version: 0.1.0
4
+ Summary: LTC paper PDF scripts and assets only
5
+ Requires-Python: >=3.9
6
+ Description-Content-Type: text/markdown
7
+
8
+ # Paper PDF build scripts - November 4, 2026
9
+
10
+ Standalone snapshot of the approved 17-page paper exhibit builder. Copy this
11
+ entire folder into Census. It does not import anything from the parent
12
+ `ltc_code` package or the separate `paper/` folder.
13
+
14
+ This folder is distributed as `ltc-paper-scripts` 0.1.0. It contains the paper
15
+ scripts and assets only. Installing it has no declared dependencies and does
16
+ not install rendering libraries. There is no `pyproject.toml`, `__init__.py`,
17
+ `uv.lock`, or `.gitignore` in the download. The wheel includes only the required
18
+ PyPI distribution metadata in addition to this folder.
19
+
20
+ To locate the installed folder without an initialization file:
21
+
22
+ ```python
23
+ import ltc_paper_scripts
24
+ print(next(iter(ltc_paper_scripts.__path__)))
25
+ ```
26
+
27
+ Copy the whole folder into your editable Census code directory. The normal
28
+ command `python build_latex.py` uses the libraries already in that environment.
29
+ The requirements file and Bash runner are optional conveniences for setting up
30
+ an environment where dependency installation is permitted.
31
+
32
+ ## Run in Census
33
+
34
+ Use Python 3.9 or newer, the Python libraries in `latex_requirements.txt`, and
35
+ **pdfLaTeX** with the TeX packages listed in `latex_source/paper/preamble.tex`.
36
+ The build requires no R, XeLaTeX, LuaLaTeX, shell escape, or internet access
37
+ once those dependencies are installed. It compiles three pdfLaTeX passes.
38
+
39
+ 1. Supply your real results workbook. The included workbook combines existing
40
+ disclosed/example values and synthetic examples; it is not a new release.
41
+ 2. Edit `paths.py`: set `PENDING_INPUT`, the output location, and `PDFLATEX` if
42
+ the executable is not on PATH. Keep `PAPER_ROOT` at this folder, or adjust
43
+ it when using a shared `paths.py` in a separate code directory.
44
+ 3. Edit `input_mapping()` in `build_latex.py`: sheet/outcome/header names,
45
+ sample/specification names, the network roster, units, and benchmarks as
46
+ needed. Preserve the descriptive mapping keys on the left.
47
+ 4. From this folder, run:
48
+
49
+ ```sh
50
+ python build_latex.py
51
+ ```
52
+
53
+ On a machine with `uv`, the equivalent command is:
54
+
55
+ ```sh
56
+ uv run --no-project --with-requirements latex_requirements.txt python build_latex.py
57
+ ```
58
+
59
+ `run_latex.sh` is an optional convenience for systems with Bash. Census does
60
+ not need Bash or `uv` if Python and the required libraries are already available.
61
+
62
+ The output is `output/charter_exhibits_latex.pdf`, accompanied by an audit JSON.
63
+ The `output/latex_build/` directory contains the generated TeX and compile logs.
64
+ There is no preview banner on the PDF pages.
65
+
66
+ ## Included exhibits and calculations
67
+
68
+ - Figures 1-3, Tables 1-7, Figures A2-A4, and Tables A1-A4.
69
+ - Excludes Figure 4, Figure A1, Tables A5-A7, and Table 1 Panel E.
70
+ - All results default to the new workbook. Table results are red; figures
71
+ preserve their orange/teal colors.
72
+ - Wage percent = `100 * wage coef / wage CCM`. Table 6 uses this same unrounded
73
+ percentage for every mediation denominator; there is no fixed 13.6 value.
74
+ - Real inputs must contain the required results in the mapped units. This
75
+ builder consumes estimates, standard errors, control means, counts, and
76
+ summary statistics; it does not estimate regressions from microdata.
77
+
78
+ ## Files to keep together
79
+
80
+ Keep every included Python file, `table_bindings.json`, the entire
81
+ `latex_source/` tree, and `fonts/`. These are the core renderer and its assets.
82
+ Only `paths.py` and `build_latex.py` need routine configuration. The example
83
+ workbook can be replaced with real results. The old disclosed workbook is not
84
+ required unless you explicitly opt into `reuse_disclosed`.
85
+
86
+ The open DejaVu fonts and their license are bundled for portability. Installed
87
+ Lucida Sans is preferred where available; otherwise typography uses DejaVu.
88
+ Proprietary Office fonts are not included. The tick algorithm's license is in
89
+ `TICK_ALGORITHM_LICENSE.txt`.
90
+
91
+ Copied from `src/ltc_code/paper/` on November 4, 2026. Runtime files and templates
92
+ match that approved builder; the README is specific to this standalone copy.
93
+ The requirements file permits ReportLab 4.5 and newer. On Python 3.9 it selects
94
+ ReportLab 4.x because ReportLab 5.1 requires Python 3.10 at runtime.
@@ -0,0 +1,35 @@
1
+ ltc_paper_scripts/README.md,sha256=Hn6Yhb6lEp9aqdEU9pwg0BQT_UuIJ3PgaO5-x7U2jZM,4184
2
+ ltc_paper_scripts/TICK_ALGORITHM_LICENSE.txt,sha256=9v9bEAoATVcknUHo__2BaHD9vJmB5QXq_aTtQIWyCzM,1478
3
+ ltc_paper_scripts/build_latex.py,sha256=r_SZyKHm70iph-Bv6X6uiZsRjbOQqyRcSCAZzeP7TpM,16791
4
+ ltc_paper_scripts/data/codex_synthetic/new_release_preview.xlsx,sha256=R5WdEehrjlltGMMV0LjzV6YAcnJS38hK7ddMcj_NJ7E,19006
5
+ ltc_paper_scripts/exhibit_selection.py,sha256=6bEtnjbxKc_5BfvuRNMozCW9uVbkKBouopTNARHnX2w,2853
6
+ ltc_paper_scripts/figure_ticks.py,sha256=8vJnZRGpnZ1mfrfNnYXEWv3B57FKTxXacO9ufoJODzs,2132
7
+ ltc_paper_scripts/fonts/DejaVuSans-Bold.ttf,sha256=5kdsG4BQKSQpTu1AiUxbGOBsGBREypU-UzQmLfnCdyQ,705684
8
+ ltc_paper_scripts/fonts/DejaVuSans.ttf,sha256=faGVp0xVvvmI0NSPlQi9XYSUJcF3Dbpde_xs6e2EiVQ,757076
9
+ ltc_paper_scripts/fonts/LICENSE.txt,sha256=8dfpdIHPSsgfLTq4sUpIP7NLC0gko_jSsccKb6hqOwg,4765
10
+ ltc_paper_scripts/latex_figures.py,sha256=RyNHKe_bhvgyHxvvuWQzqBc7vaVSHGFE6nQ2XdQN04w,13957
11
+ ltc_paper_scripts/latex_requirements.txt,sha256=zRqJhCpJAy4IxBZkJeiZbR4HXrWIO9BC4AH6XkjU2Yc,103
12
+ ltc_paper_scripts/latex_source/outputs/tables/output/age25_earnings_table.tex,sha256=TWdH3y4ERP3T8qrnwUC8zO2cvTmWAQ_TOdhCcpKPEZ4,1000
13
+ ltc_paper_scripts/latex_source/outputs/tables/output/balance_table.tex,sha256=vV1ezx2rQ9_SmZLSS8tDqN4Hd2B1CQE3HAxokKc2DR0,2483
14
+ ltc_paper_scripts/latex_source/outputs/tables/output/college_data_comparison_table.tex,sha256=1JQeqXQgn-ghemNsfqDKLbiIbKw90jS-t4j5lkze9us,861
15
+ ltc_paper_scripts/latex_source/outputs/tables/output/college_enrollment_completion_table.tex,sha256=1LozXBklGaRm12T1BZNRDOsp422Ro9JgB-cvXHj1IrQ,1945
16
+ ltc_paper_scripts/latex_source/outputs/tables/output/college_heterogeneity_table.tex,sha256=ZOjCWlztORed_KnaqwvnHEif4li6dNq8d8BSbftrhoA,2615
17
+ ltc_paper_scripts/latex_source/outputs/tables/output/college_mediation_additional_specs_table.tex,sha256=vi-it09I08xtIhUS7DmxNmirlEMkMKGDIx6bs40ZkVk,2181
18
+ ltc_paper_scripts/latex_source/outputs/tables/output/college_test_score_mediation_table.tex,sha256=fuQBNrUJamYPoZ2ZlurTxpAFrfTeGEnlT7HxpWDEE3w,1481
19
+ ltc_paper_scripts/latex_source/outputs/tables/output/earnings_heterogeneity_table.tex,sha256=3YhwgucU2YkuFWl-i0Okaa1duXiK_cPLlPMNHM3-ctU,6147
20
+ ltc_paper_scripts/latex_source/outputs/tables/output/earnings_robustness_table.tex,sha256=uiBefIBDPhmvfzYyvWLz9cS1XA-9X38Xl7qxV1kKb4E,1448
21
+ ltc_paper_scripts/latex_source/outputs/tables/output/earnings_threshold_table.tex,sha256=mgC3BwresJqVcyNs2aCjFj84F783SOljC6JnvSPq-L4,1281
22
+ ltc_paper_scripts/latex_source/outputs/tables/output/other_mediators_table.tex,sha256=EbEHGoQmPhtnNEItoR47ufy314Ws2RuGGirBiNgNavY,1020
23
+ ltc_paper_scripts/latex_source/outputs/tables/output/peer_family_comparisons_table.tex,sha256=roj7yn_srIacRfgQCwH7OjQhzZ5XMqddQsG1J7n0xUA,726
24
+ ltc_paper_scripts/latex_source/outputs/tables/output/summary_statistics_table.tex,sha256=ZaBAqeubI2sK-X0zmlQVicGzG1sU6nT0BTdFGDoeHlA,4837
25
+ ltc_paper_scripts/latex_source/paper/appendix.tex,sha256=AkfTTycHeUl3sKD2pMET9zfNTKMCTfgC3vmJdZVlpsI,12406
26
+ ltc_paper_scripts/latex_source/paper/preamble.tex,sha256=wkouuyCV7Ki8IdXly7jaHc238ftldRnKz_5SOBfTM8c,13788
27
+ ltc_paper_scripts/latex_source/paper/tables-and-figures.tex,sha256=HDySUkCt0i1meCgWnOmhgVBMVbIhUaHnyUqmjrzvb2A,17913
28
+ ltc_paper_scripts/mappings.py,sha256=e6qSSS847EIOrcnivdmYTs_EQk6-nal3dPW3MFQ6DT0,43024
29
+ ltc_paper_scripts/paths.py,sha256=Ut14bNa-Hes-gkDrjIkDwOr6JxdzIvaIc7B_1OuIdjE,1151
30
+ ltc_paper_scripts/run_latex.sh,sha256=vU__8-ydXpkZzs0bmn0IkAXwn2KiUjMFcvDCphamu2c,216
31
+ ltc_paper_scripts/split_inputs.py,sha256=__pHmsFy9TEox6VLoxq1VqPlyuPuRU3lXplxo0QBmFA,8588
32
+ ltc_paper_scripts/table_bindings.json,sha256=-TFhG0v8N50C5IgTSgNocwi_FavnKp-WeiQJ4KGxhBY,114961
33
+ ltc_paper_scripts-0.1.0.dist-info/METADATA,sha256=IPQrdrX8nV86fTiSx6FZGQTMj6-7lz3oZr3vvawA_uY,4356
34
+ ltc_paper_scripts-0.1.0.dist-info/WHEEL,sha256=oUc8wedPiAQ5pml436c01yjvIR8ulCG5b99Qv12-_cA,76
35
+ ltc_paper_scripts-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: wheel
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any