← Back to Skills Marketplace
mzlzyca

PDF to LaTeX

by mzlzyCA · GitHub ↗ · v0.4.0 · MIT-0
cross-platform ✓ Security Clean
223
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install pdf-to-latex
Description
Convert PDF documents to LaTeX source using MinerU. Extracts text, formulas, and structure from PDFs and outputs LaTeX format for academic and technical docu...
README (SKILL.md)

PDF to LaTeX

Convert PDF documents to LaTeX format using MinerU. Best suited for academic papers and documents with formulas or complex layouts.

Install

npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest

Quick Start

# Convert PDF to LaTeX (requires token)
mineru-open-api extract paper.pdf -f latex -o ./out/

# With VLM model for better accuracy on complex layouts
mineru-open-api extract paper.pdf -f latex --model vlm -o ./out/

# From arXiv URL
mineru-open-api extract https://arxiv.org/pdf/2309.10918 -f latex -o ./out/

Authentication

Token required:

mineru-open-api auth             # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable

Create token at: https://mineru.net/apiManage/token

Capabilities

  • Supported input: .pdf (local file or URL)
  • Output format: LaTeX (-f latex)
  • LaTeX output requires extract with token — not available in flash-extract
  • Use --model vlm for papers with complex math, tables, or multi-column layouts
  • Language hint with --language (default: ch, use en for English)

Notes

  • LaTeX output (-f latex) is only available via extract with token
  • --model vlm gives higher accuracy but may have rare hallucination risk; use pipeline for guaranteed fidelity
  • Output goes to stdout by default; use -o \x3Cdir> to save to a file
  • All progress/status messages go to stderr; document content goes to stdout
  • MinerU is open-source by OpenDataLab (Shanghai AI Lab): https://github.com/opendatalab/MinerU
Usage Guidance
This skill appears coherent, but before installing: (1) verify mineru-open-api's origin (npm package page and the GitHub repo https://github.com/opendatalab/MinerU) and pin a known-good version; (2) understand that using the CLI with your MINERU_TOKEN will likely upload PDF contents to MinerU's service—avoid sending sensitive or private documents unless you trust the service and its privacy policy; (3) prefer creating a scoped or temporary MINERU_TOKEN if possible; (4) run the CLI in a restricted environment or sandbox if you need to limit potential data leakage; and (5) review MinerU's documentation and terms on mineru.net before providing credentials.
Capability Analysis
Type: OpenClaw Skill Name: pdf-to-latex Version: 0.4.0 The skill is a legitimate wrapper for the MinerU document intelligence engine by OpenDataLab. It facilitates PDF-to-LaTeX conversion via the 'mineru-open-api' CLI tool and requires a standard API token (MINERU_TOKEN). The instructions in SKILL.md are well-defined, align with the stated purpose, and do not contain any evidence of malicious intent, prompt injection, or unauthorized data exfiltration.
Capability Assessment
Purpose & Capability
Name/description (PDF→LaTeX via MinerU) align with required binary (mineru-open-api) and required env var (MINERU_TOKEN). The declared installs (npm package and Go module for mineru-open-api) are consistent with providing that CLI.
Instruction Scope
SKILL.md only instructs the agent to run mineru-open-api commands (extract, auth) against local PDF files or URLs and to set MINERU_TOKEN. This is within scope, but those commands will likely transmit PDF content to MinerU's service/API via the CLI — users should assume document contents may leave the local machine when using the authorized CLI.
Install Mechanism
Install uses standard channels (npm package and a GitHub Go module). These are expected for a CLI. As with any third-party package, verify the package source/version and prefer official releases; npm packages and go modules carry moderate supply-chain risk if untrusted.
Credentials
Only MINERU_TOKEN is required and declared as the primary credential. That single token is proportionate to a CLI that authenticates to an external MinerU service.
Persistence & Privilege
The skill does not request always:true and is user-invocable only; it does not declare system-wide config paths or other skills' credentials. Normal autonomous invocation is allowed but not elevated.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pdf-to-latex
  3. After installation, invoke the skill by name or use /pdf-to-latex
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.4.0
SEO: expand description for better ClawHub vector search discovery
v0.3.0
Rollback to original version
v0.2.1
SEO optimization v0.2.1
v0.2.0
SEO optimization v0.2.0
v1.0.1
Fix: declare MINERU_TOKEN credential in metadata
v1.0.0
Convert PDF documents to LaTeX format using MinerU mineru-open-api
Metadata
Slug pdf-to-latex
Version 0.4.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is PDF to LaTeX?

Convert PDF documents to LaTeX source using MinerU. Extracts text, formulas, and structure from PDFs and outputs LaTeX format for academic and technical docu... It is an AI Agent Skill for Claude Code / OpenClaw, with 223 downloads so far.

How do I install PDF to LaTeX?

Run "/install pdf-to-latex" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is PDF to LaTeX free?

Yes, PDF to LaTeX is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does PDF to LaTeX support?

PDF to LaTeX is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created PDF to LaTeX?

It is built and maintained by mzlzyCA (@mzlzyca); the current version is v0.4.0.

💬 Comments