Skip to content
Back to skills

Latex Ocr

ASecurity

"Guides LaTeX-OCR pix2tex image-to-LaTeX OCR, CLI, Python API, GUI,

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
developmentpythonfastapidockerapifrontendbackend

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill latex-ocr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Latex Ocr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Latex Ocr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-latex-ocr/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-latex-ocr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: latex-ocr
description: "Guides LaTeX-OCR pix2tex image-to-LaTeX OCR, CLI, Python API, GUI,
  service API, dataset preparation, training, and troubleshooting workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# LaTeX-OCR / pix2tex Repo Skill

Use this skill when a task involves the LaTeX-OCR repository or the `pix2tex`
Python package: converting equation images to LaTeX, operating the CLI or
Python API, launching the GUI or API service, preparing OCR datasets, training
or evaluating the model, or troubleshooting optional dependencies.

## First Checks

1. Read [references/repo-provenance.md](references/repo-provenance.md) when you
   need to decide whether this skill matches a current checkout.
2. For a fresh runtime, install the smallest needed extra:
   - `pip install pix2tex` for CLI/Python inference.
   - `pip install "pix2tex[gui]"` for the desktop GUI.
   - `pip install "pix2tex[api]"` for FastAPI/Streamlit service workflows.
   - `pip install "pix2tex[train]"` for dataset/training/evaluation workflows.
3. Run [scripts/check_pix2tex_environment.py](scripts/check_pix2tex_environment.py)
   to check imports, package version, CLI availability, selected extras, and
   CPU/CUDA visibility without downloading checkpoints or running inference.
4. Read [references/troubleshooting.md](references/troubleshooting.md) if an
   install/import/backend issue appears before choosing a sub-skill.

## Route Map

- Read [sub-skills/ocr-inference/SKILL.md](sub-skills/ocr-inference/SKILL.md)
  for CLI and Python OCR inference, image preprocessing, checkpoints, `--no-cuda`,
  output rendering, and prediction-quality troubleshooting.
- Read [sub-skills/interactive-apps-and-api/SKILL.md](sub-skills/interactive-apps-and-api/SKILL.md)
  for `latexocr` GUI, screenshot tools, FastAPI `/predict/` and `/bytes/`
  routes, Streamlit frontend, and Docker API recipes.
- Read [sub-skills/data-preparation/SKILL.md](sub-skills/data-preparation/SKILL.md)
  for extracting formulas, de-macroing TeX, tokenizer/dataset pickle creation,
  rendering LaTeX into PNGs, and safe data acquisition planning.
- Read [sub-skills/training-and-evaluation/SKILL.md](sub-skills/training-and-evaluation/SKILL.md)
  for model/resizer training, evaluation metrics, config files, checkpoint
  handling, and GPU-memory planning.

## Operating Boundaries

- Do not assume the original repository checkout is available. Runtime guidance
  lives in this skill tree; the source paths in provenance are evidence, not
  links to open during normal use.
- Do not instantiate `LatexOCR()` unless model checkpoint downloads and compute
  are acceptable. Use helper scripts first when you only need environment or
  input validation.
- Treat GUI, Docker, Streamlit, TeX rendering, scraping, and full training as
  optional side-effectful workflows. Ask before starting servers, desktop
  installers, downloads, scraping, or long runs.
- CPU is valid for CLI/Python inference via `--no-cuda` or an arguments object
  with `no_cuda=True`, but it may be slower than CUDA. Do not claim CUDA works
  unless the target environment has a compatible CUDA PyTorch build and a
  successful device smoke check.

## Repository Metadata

- Structured router placement is in
  [references/repo-routing-metadata.json](references/repo-routing-metadata.json).
- Cross-cutting install and optional dependency guidance is in
  [references/troubleshooting.md](references/troubleshooting.md).

Files in this skill

  • SKILL.md3.4 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json404 B
  • references/troubleshooting.md2.1 KB
  • scripts/check_pix2tex_environment.py2.9 KB
  • sub-skills/data-preparation/SKILL.md2.3 KB
  • sub-skills/data-preparation/references/data-acquisition.md1.2 KB
  • sub-skills/data-preparation/references/data-formats.md1.5 KB
  • sub-skills/data-preparation/references/rendering-and-preprocessing.md1.6 KB
  • sub-skills/data-preparation/references/troubleshooting.md1.6 KB
  • sub-skills/data-preparation/scripts/check_dataset_inputs.py2.4 KB
  • sub-skills/data-preparation/scripts/extract_math_snippets.py1.5 KB
  • sub-skills/interactive-apps-and-api/SKILL.md2.1 KB
  • sub-skills/interactive-apps-and-api/references/api-and-ui.md1.5 KB
  • sub-skills/interactive-apps-and-api/references/gui-workflow.md1.2 KB
  • sub-skills/interactive-apps-and-api/references/troubleshooting.md1.5 KB
  • sub-skills/interactive-apps-and-api/scripts/check_api_dependencies.py1.5 KB
  • sub-skills/ocr-inference/SKILL.md2.3 KB
  • sub-skills/ocr-inference/references/api-reference.md2.1 KB
  • sub-skills/ocr-inference/references/cli-reference.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.