Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Pdf Math Translate Guide

skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd

★ 4,537pushed 3 days ago
✓SAFEGrade B · 89/100 · 8 Oct 2026 · e1ba289
4,537repo stars · whole brycewang-stanford/Auto-Empirical-Research-Skills

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Translate scientific PDFs with preserved math formatting via PDFMathTranslate

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Pdf Math Translate Guide (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/pdf-math-translate-guide

Trust audit

Audit 0.4.1 · source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Translate scientific PDFs with preserved math formatting via PDFMathTranslate

---
name: pdf-math-translate-guide
description: "Translate scientific PDFs with preserved math formatting via PDFMathTranslate"
metadata:
  openclaw:
    emoji: "📄"
    category: "tools"
    subcategory: "ocr-translate"
    keywords: ["pdf-translation", "math-formatting", "scientific-papers", "multilingual", "latex-preservation"]
    source: "https://github.com/Byaidu/PDFMathTranslate"
---

# PDFMathTranslate Guide

## Overview

PDFMathTranslate is an open-source tool designed specifically for translating scientific and technical PDF documents while preserving mathematical formulas, tables, figures, and the overall layout structure. Traditional PDF translators often mangle equations and destroy formatting, making translated papers difficult to read. PDFMathTranslate solves this problem by intelligently detecting and preserving mathematical content during the translation process.

The tool leverages large language models for high-quality translation while maintaining the integrity of LaTeX-rendered equations, chemical formulas, and complex table structures commonly found in academic publications. It supports translation between dozens of language pairs, making it invaluable for researchers who need to read papers published in languages outside their expertise.

PDFMathTranslate has gained significant traction in the academic community with over 32,000 GitHub stars, reflecting the widespread need for reliable scientific document translation that respects the specialized formatting requirements of research papers.

## Installation and Setup

Install PDFMathTranslate using pip in a Python environment (Python 3.8 or higher required):

```bash
pip install pdf2zh
```

For GPU-accelerated processing, install with CUDA support:

```bash
pip install pdf2zh[cuda]
```

Configure your translation backend by setting the appropriate environment variable. The tool supports multiple LLM providers:

```bash
# Using OpenAI-compatible APIs
export OPENAI_API_KEY=$OPENAI_API_KEY
export OPENAI_BASE_URL=$OPENAI_BASE_URL

# Using Google Translate (free, no key required)
pdf2zh input.pdf -s google

# Using DeepL
export DEEPL_AUTH_KEY=$DEEPL_AUTH_KEY
pdf2zh input.pdf -s deepl
```

You can also launch the web-based GUI for interactive use:

```bash
pdf2zh -g
```

This starts a Gradio interface where you can upload PDFs and configure translation settings through a browser.

## Core Features

PDFMathTranslate provides several capabilities critical for academic workflows:

**Formula Preservation**: The tool detects and preserves inline and display math environments. Equations rendered in LaTeX, MathML, or image-based formats are identified and left untouched during translation, ensuring mathematical accuracy is maintained.

**Layout Retention**: The translated output maintains the original page layout including headers, footers, figure positions, table structures, and column formatting. This produces a readable document that mirrors the source paper structure.

**Batch Processing**: Translate multiple papers at once using wildcard patterns or directory inputs:

```bash
# Translate all PDFs in a directory
pdf2zh ./papers/*.pdf -lo zh -li en

# Specify output directory
pdf2zh input.pdf -o ./translated/
```

**Dual-Document Output**: Each translation generates two files: a fully translated version and a side-by-side bilingual version where original and translated text appear together, useful for verifying translation quality.

**Selective Translation**: Target specific page ranges to avoid translating references, appendices, or supplementary material:

```bash
# Translate only pages 1 through 15
pdf2zh input.pdf -p 1-15
```

## Research Workflow Integration

PDFMathTranslate fits naturally into several academic research scenarios:

**Literature Review Acceleration**: When conducting systematic reviews across multilingual sources, batch-translate candidate papers to quickly assess relevance before investing time in detailed reading. The preserved formatting means figures and data tables remain interpretable.

**Collaboration Across Languages**: Research teams spanning multiple countries can share translated versions of key papers while maintaining the mathematical rigor of the original. The bilingual output mode is particularly useful for group discussions where team members have different language proficiencies.

**Conference Preparation**: When presenting at international conferences, translate your own papers or related works to prepare for questions and discussions in the host language.

**Integration with Reference Managers**: Combine with Zotero or Mendeley workflows by translating downloaded papers and storing both versions in your reference library:

```bash
# Example workflow with a Zotero storage directory
for pdf in ~/Zotero/storage/*/*.pdf; do
  pdf2zh "$pdf" -lo zh -li en -o ~/translated_papers/
done
```

**Quality Verification**: Always use the bilingual output mode when translation accuracy is critical. Cross-reference translated equations with the original to catch any edge cases where formula detection may have been imprecise.

## Configuration and Customization

Fine-tune translation behavior through configuration options:

```bash
# Use a specific model for translation
pdf2zh input.pdf -s openai -m gpt-4o

# Set custom font for translated text
pdf2zh input.pdf --font "Noto Sans CJK SC"

# Adjust thread count for parallel processing
pdf2zh input.pdf -t 4
```

For programmatic use, PDFMathTranslate can be integrated into Python scripts:

```python
from pdf2zh import translate

# Basic translation
translate.translate(
    files=["paper.pdf"],
    lang_out="zh",
    lang_in="en",
    service="google"
)
```

## References

- PDFMathTranslate repository: https://github.com/Byaidu/PDFMathTranslate
- PyPI package: https://pypi.org/project/pdf2zh/
- Supported translation services documentation in the project wiki

Excerpt, first 5,900 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit e1ba289

Download folder ↗
pip install pdf2zh
pip install pdf2zh[cuda]

Commands as the repository documents them: shown, never run by us. Our verdict covers commit e1ba289846fd only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
OpenClawMentioned in its text, not testedSkills for OpenClaw · About OpenClaw
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source e1ba289846fd

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/pdf-math-translate-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/pdf-math-translate-guide/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/pdf-math-translate-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/pdf-math-translate-guide/)

Questions about Pdf Math Translate Guide

What does the Pdf Math Translate Guide skill do?
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Is Pdf Math Translate Guide safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Pdf Math Translate Guide access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Pdf Math Translate Guide work with?
Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.