Metadata-Version: 2.3
Name: ltc-paper-pdf
Version: 0.1.1
Summary: Standalone LTC paper exhibit scripts and assets for Python and pdfLaTeX
Requires-Dist: openpyxl>=3.1 ; extra == 'render'
Requires-Dist: reportlab>=4,<5 ; python_full_version < '3.10' and extra == 'render'
Requires-Dist: reportlab>=4 ; python_full_version >= '3.10' and extra == 'render'
Requires-Dist: pypdf>=4 ; extra == 'render'
Requires-Python: >=3.9
Provides-Extra: render
Description-Content-Type: text/markdown

# LTC paper PDF

`ltc-paper-pdf` contains only the approved November 4, 2026 paper PDF scripts
and assets from `ltc-code/20261104_paper_pdf`. It does not depend on `ltc-code`
and contains no CMO apps pipelines or unrelated datasets.

The package includes the seven core Python scripts, LaTeX templates, table
bindings, portable fonts and licenses, example workbook, and build instructions.
The rendering scripts and templates are preserved. Version 0.1.1 removes
mandatory installation dependencies and the old ReportLab 4.5 ceiling.

## Use in Census

Installing the scripts requires Python 3.9 or newer and has **no mandatory
third-party Python dependencies**. This lets you retrieve the scripts without
the installer changing or resolving the libraries in an existing Census
environment.

Running the PDF builder still needs **pdfLaTeX**, openpyxl, ReportLab, and pypdf.
If your environment already provides compatible versions, use those. For a new
environment, the optional `ltc-paper-pdf[render]` extra or the included
`latex_requirements.txt` installs the rendering libraries. The former
`reportlab<4.5` ceiling is removed. pdfLaTeX and its TeX packages must be available
separately; they are not installed by this Python package. Installing the base
package alone does not establish that the rendering dependencies are present.
For Python 3.9, the optional rendering extra selects ReportLab 4.x because
ReportLab 5.1 refuses to run on Python 3.9 despite its published metadata.
Python 3.10 and newer have no ReportLab upper limit in this package.

Install the package with your normal Python package installer, then locate it:

```python
import ltc_paper_pdf
from pathlib import Path

print(Path(ltc_paper_pdf.__file__).parent)
```

Copy that entire folder to your editable Census code directory. In the copy:

1. Set workbook/output/executable paths in `paths.py`.
2. Set sheet, variable, header, sample/specification and network mappings in
   `input_mapping()` inside `build_latex.py`.
3. From the copied folder, run `python build_latex.py`.

The result is `output/charter_exhibits_latex.pdf`, a 17-page exhibit packet,
with an accompanying audit JSON. No preview banner appears on the PDF.
The bundled workbook combines existing disclosed/example values and synthetic
examples; replace it with your real results for a release.

Wage percentages and college mediation denominators are calculated from the
mapped results. Figures use the manuscript's color and layout conventions.
`figure_ticks.py` chooses axis tick positions using the same rule as the
charters R plots; its license is included. It is a required renderer helper,
not an additional analysis script or a file you need to configure.

See the README inside the installed folder for the complete standalone build
instructions. Python scripts require no R or network access at build time
once the Python and TeX dependencies are installed.
