Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,8 @@ template = [

# Tex Module - LaTeX utilities
# Use: pip install scitex[tex]
tex = [
"matplotlib",
]
# Real implementation lives in the standalone scitex-tex package.
tex = ["scitex-tex>=0.1.0"]

# Tunnel Module - SSH reverse tunnel for NAT traversal
# Use: pip install scitex[tunnel]
Expand Down
34 changes: 20 additions & 14 deletions src/scitex/tex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#!/usr/bin/env python3
"""LaTeX utilities module for scitex."""

from ._export import CompileResult, compile_tex, export_tex
from ._preview import preview
from ._to_vec import to_vec

__all__ = [
"export_tex",
"compile_tex",
"CompileResult",
"preview",
"to_vec",
]
"""SciTeX tex — thin compatibility shim for scitex-tex.

Aliases ``scitex.tex`` to the standalone ``scitex_tex`` package via ``sys.modules``.
``scitex.tex is scitex_tex``.

Install: ``pip install scitex[tex]`` (or ``pip install scitex-tex``).
See: https://github.com/ywatanabe1989/scitex-tex
"""

import sys as _sys

try:
import scitex_tex as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.tex requires the 'scitex-tex' package. "
"Install with: pip install scitex[tex] (or: pip install scitex-tex)"
) from _e

_sys.modules[__name__] = _real
Loading
Loading