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

SciTeX

LaTeX helpers — export to .tex, compile to PDF, preview images, vector formatting.

Full Documentation · pip install scitex-tex


Installation

pip install scitex-tex

Quick Start

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)

1 Interfaces

Python API
import scitex_tex as tx

# Export — writer doc → .tex string + file
tx.export_tex(doc, "manuscript.tex")

# Compile — .tex → .pdf via pdflatex/xelatex; returns CompileResult
res = tx.compile_tex("manuscript.tex")
print(res.pdf_path, res.log)

# Preview — render a snippet to a PNG
tx.preview(r"$\frac{1}{2}\sum x_i$", "preview.png")

# Vector formatting helpers
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.

Part of SciTeX

scitex-tex is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0-only (see LICENSE).


SciTeX

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_tex-0.1.5.tar.gz
  • Upload date:
  • Size: 26.4 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.5.tar.gz
Algorithm Hash digest
SHA256 26a7d2ea582617ad217e0951d0dfd21ddbb5b2f09b9ae9b5fe4bed8bc36ddfe9
MD5 6e98baa1e20978524cf0d9a964d98bbd
BLAKE2b-256 5a3c237741bc60cff5a804d1c76a87ecb5f53aaa7cd9c4dbd8e9406b7bfdb01b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scitex_tex-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 26.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d17527e9908158a259ad05da1af0b340b1fd3765d62c25b2220c946f7e7e19cf
MD5 447225a5fd84da8747e3f997f6461d82
BLAKE2b-256 e7dba69f56168a160503e069b9b60f20754a8eb6a55a17c4da6fb45442fcd7fa

See more details on using hashes here.

Provenance

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