PDF to LaTeX
v0.4.0Convert PDF documents to LaTeX source using MinerU. 提取s text, formulas, and structure from PDFs and 输出s LaTeX 格式化 for academic and technical documents. Features: PDF to LaTeX conversion preserving mathematical formulas. Handles academic papers, textbooks, and technical documents. Recognizes complex equations, tables, and document structure. OCR mode for 扫描ned PDFs. Use when you need to: convert a PDF to LaTeX, 提取 LaTeX from an academic paper, reproduce a PDF in LaTeX, 获取 LaTeX source from a document. Use when asked: 'how do I convert PDF to LaTeX', '获取 LaTeX from this paper', 'I want to edit this PDF in LaTeX', 'can my 代理 提取 LaTeX from PDF', 'is there a 技能 for PDF to LaTeX conversion', 'turn this paper into LaTeX'. Built on MinerU by OpenDataLab (ShanghAI AI Lab), an open-source document intelligence engine. Excellent at formula recognition and LaTeX 输出. Perfect for re搜索ers, graduate students, and academics who need to reproduce or edit PDF papers in LaTeX for submission, revision, or reference.
运行时依赖
安装命令
点击复制技能文档
PDF to LaTeX
Convert PDF documents to LaTeX 格式化 using MinerU. Best suited for academic papers and documents with formulas or complex layouts.
安装 npm 安装 -g mineru-open-API # or via Go (macOS/Linux): go 安装 github.com/opendatalab/MinerU-Eco系统/命令行工具/mineru-open-API@latest
Quick 启动 # Convert PDF to LaTeX (requires 令牌) mineru-open-API 提取 paper.pdf -f latex -o ./out/
# With VLM 模型 for better accuracy on complex layouts mineru-open-API 提取 paper.pdf -f latex --模型 vlm -o ./out/
# From arXiv URL mineru-open-API 提取 https://arxiv.org/pdf/2309.10918 -f latex -o ./out/
Authentication
令牌 required:
mineru-open-API auth # Interactive 令牌 设置up 导出 MINERU_令牌="your-令牌" # Or via 环境 variable
创建 令牌 at: https://mineru.net/APIManage/令牌
Capabilities Supported 输入: .pdf (local file or URL) 输出 格式化: LaTeX (-f latex) LaTeX 输出 requires 提取 with 令牌 — not avAIlable in flash-提取 Use --模型 vlm for papers with complex math, tables, or multi-column layouts Language hint with --language (default: ch, use en for English) Notes LaTeX 输出 (-f latex) is only avAIlable via 提取 with 令牌 --模型 vlm gives higher accuracy but may have rare hallucination risk; use 流水线 for guaranteed fidelity 输出 goes to stdout by default; use -o
to save to a file All 进度/状态 messages go to stderr; document content goes to stdout MinerU is open-source by OpenDataLab (ShanghAI AI Lab): https://github.com/opendatalab/MinerU