Skip to main content

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

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.sty imports safe math/graphics packages, without changing page layout.
  • sttex-theme.sty handles light/night colors, neon PGFPlots cycle, captions, hyperlinks, headers, and footnotes. Night mode uses background #1C1F24, foreground #D6D9DE, and cyan links #7FB4E6.
  • sttex-theorems.sty provides your semantic theorem/lemma/definition/corollary boxes; it is opt-in for publisher templates to avoid conflicting with venue theorem environments.
  • sttex-notation.sty provides your common mathematics macros.
  • sttex-notes.sty mirrors dacnotes for ordinary notes, accepting night, nothms, and nogeometry. Do not use it with official journal classes; prefer sttex-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.

Metadata

Release files for sttex 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sttex 0.2.0
File Size Uploaded Provenance Actions
sttex-0.2.0.tar.gz 24.9 kB With provenance Details for sttex-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sttex 0.2.0
File Interpreter ABI Platform Actions
sttex-0.2.0-py3-none-any.whl Python 3 none any Details for sttex-0.2.0-py3-none-any.whl

Total release size: 51.1 kB

Release files / sttex-0.2.0.tar.gz

Download URL sttex-0.2.0.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6c90a26b32f62db45efbe670975532b9af2224c728850fa1cace747a53c10a
BLAKE2b-256 checksum
How to use checksums
e5c600e27e177bbc30d1cba48e886251e9e952d01719fc7b924d7d2d36a7c362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / sttex-0.2.0-py3-none-any.whl

Download URL sttex-0.2.0-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e56c7370c73b860da263bca2225ce6b96453d0e61fb88f10556ac662276a3be3
BLAKE2b-256 checksum
How to use checksums
518bce6febc6adc4bab4b3f03acd0fda0ac4d9954aad66ef6c5af636372eca74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for sttex 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sttex-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page