Skip to main content

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

Project description

scitex-tex

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.0.tar.gz (23.9 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.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_tex-0.1.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_tex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02b08b297a44dea8235d1402eba222db07ab03912621ebe0b94321f8e96dea8a
MD5 5a2595060ac8cc1dc686000931bb2646
BLAKE2b-256 8a2c901ed3ee1f181b910ea1421be12eb38dfdc7e36a9f58ab20ff1e193c26e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scitex_tex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_tex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40f7e5cf622358dd12545ee38e87bfe80bbe6354962bbea933cf16c70c9143df
MD5 3808538d43f5f2218a13f56916ede04d
BLAKE2b-256 23cd7b10d70d64f2af01aa091856970c8624c05cb9a88c02de5166ed2b0265d5

See more details on using hashes here.

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