Skip to main content

LaTeX helpers — export to .tex, render preview images, vector formatting — standalone module from the SciTeX ecosystem

Project description

scitex-tex

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

LaTeX helpers (export to .tex, compile to PDF, render preview images, vector formatting) extracted from the SciTeX ecosystem as a standalone package.

Install

pip install scitex-tex

API

import scitex_tex as tx

# Convert a SciTeX-style writer doc → .tex
tx.export_tex(doc, "manuscript.tex")

# Compile .tex → .pdf (returns CompileResult)
result = tx.compile_tex("manuscript.tex")

# Render a snippet to a preview image
tx.preview(r"$\sum_{i=1}^N x_i$", "preview.png")

# Format a numeric value with sig-fig rules
tx.to_vec(1.234e-3, sig_figs=3)

Status

Standalone fork of scitex.tex. Only dep is matplotlib (for preview rendering). The umbrella package's scitex.tex import path is preserved via a sys.modules-alias bridge. 128/128 tests pass.

License

AGPL-3.0-only (see LICENSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_tex-0.1.4.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_tex-0.1.4-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file scitex_tex-0.1.4.tar.gz.

File metadata

  • Download URL: scitex_tex-0.1.4.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_tex-0.1.4.tar.gz
Algorithm Hash digest
SHA256 be29b3580d0d41cc0b387d99220d011782f74c8bd432aec4d1b778d2fdc75181
MD5 8053d31a12cd75a934049485aefa5e9c
BLAKE2b-256 f68c768adcc0a855d1173fa7a75c5f7137f359113351dc572b11fb802a7c4f9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_tex-0.1.4.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-tex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_tex-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: scitex_tex-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_tex-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 655147928be10f0a276f60aa75d5f57c01a55013f85ec71d224cef33b4545b78
MD5 378b3969fb47519beca8eb106c48fb4a
BLAKE2b-256 d4404342b15b14dc207b379f2f31d00d2d49f598895743a61c6182d5041499c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_tex-0.1.4-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-tex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page