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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_tex-0.1.1.tar.gz
  • Upload date:
  • Size: 24.0 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.1.tar.gz
Algorithm Hash digest
SHA256 a5e8117f02c210be7d0235886c13c271c94605499583d2183e3aa329aa654999
MD5 371d82fec12343e83665d997a92f8765
BLAKE2b-256 57a76df606a2552130f32a714fbbb8a4467ddbc029ed0dcd6f754b825751e4ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scitex_tex-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 003f7d7ffa0e47f10339e767fe3f17ab18941fd226f40e741db1cac3056e1311
MD5 bb8a26ed04769f5a7afa5e4bf19e8d87
BLAKE2b-256 fc5404b6046454526f527ad6b1c96cbe792ab381abb9f24a6e18a8c25b6dd3e4

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