latex-translation-guide
Translate LaTeX documents preserving math formulas and structure
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill latex-translation-guide --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LaTeX Document Translation Guide ## Overview Translating LaTeX academic documents requires preserving mathematical formulas, cross-references, citations, and formatting while converting the text between languages. This guide covers tools and techniques for translating LaTeX papers — from command-line utilities to full document pipelines. Particularly useful for making research accessible across language barriers. ## LaTeXTrans Approach ```bash # Install LaTeXTrans pip install latextrans # Translate a LaTeX file latextrans translate paper.tex --from en --to zh --output paper_zh.tex ``` ### How It Works 1. **Parse**: Extract text segments while preserving LaTeX commands 2. **Protect**: Shield math environments (`$...$`, `\[...\]`, equations) 3. **Translate**: Send text segments to translation API 4. **Reconstruct**: Reassemble with original LaTeX structure ### Python Usage ```python from latextrans import LatexTranslator translator = LatexTranslator( source_lang="en", target_lang="zh", engine="google", # or "deepl", "openai" ) # Translate a file translator.translate_file("paper.tex", "paper_zh.tex") # Translate a string result = translator.translate( r"The loss function $\mathcal{L
- Overview
- LaTeXTrans Approach
- How It Works
- Python Usage
- MathTranslate Tool
- MathTranslate Features
- Manual Translation Tips
- Protecting Math Environments
- Commands to Protect
- Bilingual Output
- Translation Backends
- References
Install LaTeXTrans pip install latextrans Translate a LaTeX file latextrans translate paper.tex --from en --to zh --output paper_zh.tex Install MathTranslate (specialized for math-heavy papers) pip install mathtranslate Translate arXiv paper directly translate_arxiv 2301.00001 -o translated.tex Translate local file translate_tex paper.tex -o paper_translated.tex
What does the latex-translation-guide skill do?
Translate LaTeX documents preserving math formulas and structure
How do I install it?
Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill latex-translation-guide --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.