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.3.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.3-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_tex-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a37fd530e04c7b14f41e4ea928cbd4cb3270bcefe178cc88c23ade7c7a544667
MD5 7a650b82b4c3a6fc4e622f1ae3959dd1
BLAKE2b-256 3b1ed67888d9d2cb2f26296aeed6e8b6c2b78ae143bd62e178462711d126ea59

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scitex_tex-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9524fb242c8cb96f4f9a7fa3b176c63677c4f80b4157d21ae469760b570d29d6
MD5 5ac8dcc51bc7c633659e707db01f19af
BLAKE2b-256 aa815c2c0c0d14ac9ab6a5a25f59591ee4f44ebbc7df43082fa0fa41daa4cf1a

See more details on using hashes here.

Provenance

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