sttex
Venue-aware LaTeX paper templates, build modes, and reading themes
Downloads & Community Adoption
Health & Engineering Analysis (5 Pillars)
1. Governance & Community50 / 200 ▾
2. PEP Metadata & Packaging100 / 200 ▾
3. Security & Supply Chain150 / 200 ▾
4. Documentation, SEO & Ecosystem60 / 200 ▾
5. Engineering, CI & Quality0 / 200 ▾
Official Documentation & Usage Guide — sttex
Show full original documentation (English README) ▾
STTeX (sttex)
A pip-installable LaTeX paper build and template manager, built on the official publishers' TeX packages rather than replacing TeX or modifying journal styles.
Supported venues and publication modes
| Venue | preprint |
print |
incognito |
|---|---|---|---|
basic |
One-column author-visible article | Two-column article | Two-column anonymous article |
physrev |
REVTeX preprint |
REVTeX reprint |
REVTeX preprint, anonymized author placeholder |
jhep |
Official JHEP layout, named authors | Same official layout | Anonymous author placeholder (not official blind mode) |
neurips |
Official [preprint] |
Official [final], accepted papers only |
Official anonymous review (no option) |
icml |
Official [preprint] |
Official [accepted], accepted papers only |
Official anonymous review (no option) |
iclr |
Official \iclrfinalcopy, author-visible reading copy |
Official \iclrfinalcopy, accepted papers only |
Official anonymous review (no final-copy command) |
The modes express intent, not a guarantee of submission eligibility. See the current venue rules before submitting. For example, print for NeurIPS / ICML / ICLR should not be used to imply acceptance when a manuscript is still under review. incognito for JHEP/REVTeX only masks the generated author block; it is not a full metadata, acknowledgments, figures, or self-citation anonymizer.
Independent appearance: light (default, submission-oriented) and night (personal reading copy). The night overlay does not modify official .sty files and changes colors but not venue layout. Explicitly colored images or artwork may still need adjustments.
Install and use
pip install . # in this repository (before PyPI publishing)
sttex list
sttex sources
sttex new my-paper --venue iclr --mode incognito --theme light
sttex fetch my-paper # publisher-owned styles downloaded on demand
sttex doctor my-paper
sttex build my-paper
Use pip install sttex after the project is published to PyPI (not published yet).
Reuse an existing paper without editing its source
If xgemm-paper/paper/main.tex inputs the section files introduction.tex, xgemm.tex, fung.tex, etc.:
sttex prepare xgemm-paper --venue physrev --mode preprint --theme night \
--output /tmp/xgemm-physrev-night
sttex build /tmp/xgemm-physrev-night
Output: /tmp/xgemm-physrev-night/paper-physrev-preprint-night.pdf. Copy the result to your repository root or upload it from Actions. The source xgemm-paper/paper/main.tex and sections remain unchanged. prepare reads standalone \input{...} directives in the original main.tex and copies the files in paper/ to a build copy. More complex custom document-class macros may need an extra adapter later.
Style layout within the installed wheel
src/sttex/resources/styles/
sttex-common.sty # math, graphics, TikZ, PGFPlots; avoids geometry changes
sttex-theme.sty # light/night color handling
sttex-basic.sty
sttex-physrev.sty
sttex-jhep.sty
sttex-neurips.sty
sttex-icml.sty
sttex-iclr.sty
src/sttex/resources/bib/
sttex.bst # LPPL-modified plainnat: optional linked metadata
sttex-links.sty
The sttex-<venue>.sty adapter files load the common science packages and optional night overlay. Original official publisher files are not modified or bundled into the PyPI wheel. REVTeX is provided by TeX Live; other assets are downloaded by sttex fetch and recorded in sttex-official-assets.json with SHA-256 hashes.
Official asset sources
- REVTeX 4.2: https://journals.aps.org/revtex
- JHEP: https://jhep.sissa.it/jhep/help/JHEP_TeXclass.jsp
- NeurIPS 2026: https://neurips.cc/Conferences/2026/MainTrackHandbook
- ICML 2026: https://icml.cc/Conferences/2026/AuthorInstructions
- ICLR 2027: https://iclr.cc/Conferences/2027/AuthorGuidelines
Sources and archive filenames are codified in src/sttex/assets.py. Official sources must be available on the machine running sttex fetch; checksums are created after downloading rather than falsely asserting predetermined hashes.
GitHub Actions
A manual workflow example is included in examples/xgemm-paper/.github/workflows/latexbuild.yml. Once you have published sttex to PyPI, copy it into xgemm-paper to select a venue and compile either a single mode/theme or all six combinations. No Modal GPU is needed for TeX compilation.
Notes
The basic bibliography sttex.bst is derived from plainnat.bst and retains its LPPL notice; the other original Python and TeX adapter files are MIT-licensed. Official venue bibliography styles always take precedence when the target is not basic.
Version 0.2.0 was tested offline for generated wrappers and for basic/REVTeX compilation. Downloading and building all four external venue archives is not validated in this environment; run sttex fetch and sttex doctor in an environment with internet access before relying on the resulting PDFs.
STTeX themes and notes migration (v0.2)
Your original dacnotes.sty became three layers:
sttex-common.styimports safe math/graphics packages, without changing page layout.sttex-theme.styhandles light/night colors, neon PGFPlots cycle, captions, hyperlinks, headers, and footnotes. Night mode uses background#1C1F24, foreground#D6D9DE, and cyan links#7FB4E6.sttex-theorems.styprovides your semantic theorem/lemma/definition/corollary boxes; it is opt-in for publisher templates to avoid conflicting with venue theorem environments.sttex-notation.styprovides your common mathematics macros.sttex-notes.stymirrorsdacnotesfor ordinary notes, acceptingnight,nothms, andnogeometry. Do not use it with official journal classes; prefersttex-physrev,sttex-iclr, etc.
% Generic notes (geometry and theorem boxes included):
\usepackage[night]{sttex-notes}
% Physical Review (theme only; no venue layout override):
\documentclass[aps,preprint]{revtex4-2}
\usepackage[night]{sttex-physrev}
% Optional theorem boxes in venue papers when not already defined:
\usepackage{sttex-theorems}
In night mode, PGFPlots adopts a cyan/magenta/lime/amber/violet cycle unless you set explicit plot colors. The author identity mode is chosen by the CLI and venue wrapper, not by the palette package. --mode incognito is an optional anonymized draft for Physical Review, not a publisher-required blind review setting; it masks generated author blocks and metadata but cannot remove identifying references, acknowledgments, and user-supplied graphics.