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.2.tar.gz (25.6 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.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_tex-0.1.2.tar.gz
  • Upload date:
  • Size: 25.6 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.2.tar.gz
Algorithm Hash digest
SHA256 998ad55729d08844dab61b5cd6aa5380c482b37bd9e8f6cac42d0cc7a1656a5d
MD5 231bc1325a0954b2e42c1a83bb27c523
BLAKE2b-256 98b37194ea40262d8ef1f491362e03e90e9f6486e68d09ea3135b4927a32288c

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_tex-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: scitex_tex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf4d748b717b8ead31c4f4c046e42ac9c63309ab68943db2a0efc4bfb74593c6
MD5 3166065c4c0789411d500fd45dee52c4
BLAKE2b-256 5df4ce0cfc51165fda0ef9258ce5f59593934fcac545d1c63621ed3a5dd84748

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_tex-0.1.2-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