Agent skill

Latex Translation Guide

by wentorai in wentorai/research-plugins

Translate LaTeX documents preserving math formulas and structure

MITAuto-check passedDocuments & Office

Install Latex Translation Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill latex-translation-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins latex-translation-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tools/ocr-translate/latex-translation-guide .claude/skills/latex-translation-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
latex-translation-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
131 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Translate LaTeX documents preserving math formulas and structure

  • Works in 4 steps: Parse: Extract text segments while… → Protect: Shield math environments… → Translate: Send text segments to… → …
  • Tasks that involve LaTeX
  • SKILL.md covers Overview, LaTeXTrans Approach, MathTranslate Tool and Manual Translation Tips, plus 3 more sections
  • Calls pip

What it does

Latex Translation Guide is an agent skill from wentorai/research-plugins. Translate LaTeX documents preserving math formulas and structure

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering LaTeX and Translation. It works with LaTeX. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve LaTeX
  • Tasks that involve Translation

Example prompts

  • “/latex-translation-guide”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Latex Translation Guide loads about 1.2k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 131 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 131 words, ~1,180 tokens.

Download SKILL.mdSave it as .claude/skills/latex-translation-guide/SKILL.md (or your agent's skills folder).
name
latex-translation-guide
description
Translate LaTeX documents preserving math formulas and structure

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}(\theta)$ is minimized "
    r"using gradient descent with learning rate $\eta$."
)
# Output preserves $\mathcal{L}(\theta)$ and $\eta$ untouched

MathTranslate Tool

bash
# 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
MathTranslate Features
python
# Configuration
import mathtranslate

# Set translation backend
mathtranslate.config.set_translator("google")  # free
mathtranslate.config.set_translator("openai")  # higher quality

# Translate with customization
mathtranslate.translate(
    input_file="paper.tex",
    output_file="paper_zh.tex",
    source_lang="en",
    target_lang="zh-CN",
    threads=4,  # parallel translation
)

Manual Translation Tips

Protecting Math Environments
python
import re

def extract_and_protect(latex_text: str) -> tuple:
    """Extract math environments before translation."""
    math_pattern = r'(\$\$[\s\S]*?\$\$|\$[^$]+\$|\\begin\{equation\}[\s\S]*?\\end\{equation\}|\\begin\{align\}[\s\S]*?\\end\{align\})'

    placeholders = {}
    counter = [0]

    def replace_math(match):
        key = f"__MATH_{counter[0]}__"
        placeholders[key] = match.group(0)
        counter[0] += 1
        return key

    protected = re.sub(math_pattern, replace_math, latex_text)
    return protected, placeholders


def restore_math(translated: str, placeholders: dict) -> str:
    """Restore math environments after translation."""
    for key, value in placeholders.items():
        translated = translated.replace(key, value)
    return translated
Commands to Protect
latex
% Always protect these:
\ref{...}      % Cross-references
\cite{...}     % Citations
\label{...}    % Labels
\eqref{...}    % Equation references
\url{...}      % URLs
\texttt{...}   % Code/monospace

% Math environments to protect:
$...$          % Inline math
$$...$$        % Display math
\[...\]        % Display math
\begin{equation}...\end{equation}
\begin{align}...\end{align}
\begin{theorem}...\end{theorem}  % Custom environments

Bilingual Output

latex
% Create side-by-side bilingual document
\usepackage{paracol}

\begin{paracol}{2}
\switchcolumn[0]
The transformer architecture has become...

\switchcolumn[1]
Transformer架构已经成为...

\switchcolumn[0]
Self-attention computes $\text{Attention}(Q,K,V) = \text{softmax}(\frac{QK^T}{\sqrt{d_k}})V$

\switchcolumn[1]
自注意力计算 $\text{Attention}(Q,K,V) = \text{softmax}(\frac{QK^T}{\sqrt{d_k}})V$
\end{paracol}

Translation Backends

BackendQualityCostSpeed
Google TranslateGoodFreeFast
DeepLBetterFreemiumFast
OpenAI GPT-4BestPaidSlower
ClaudeBestPaidSlower

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/tools/ocr-translate/latex-translation-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Latex Translation Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Latex Translation Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Latex Translation Guide this skillwentorai/research-plugins2981 repos~1.2kAutomated safety check: PassMIT
Typst Paperbahayonghang/academic-writing-skills500—~3.6kAutomated safety check: PassNone
PaperjurySpark-To-Paper-Skills/paperjury-codex223—~351Automated safety check: PassMIT
Sci PptShZhao27208/Aut_Sci_Write209—~757Automated safety check: PassMIT
Translate To Quartobrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~542Automated safety check: NotesCustom licence
PaperjurySpark-To-Paper-Skills/paperjury-codex223—~4.4kAutomated safety check: PassMIT

Similar skills

  • Typst Paper

    bahayonghang/academic-writing-skills

    Typst paper assistant for existing .typ manuscripts in English or Chinese.

    500 GitHub stars~3.6k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Paperjury

    Spark-To-Paper-Skills/paperjury-codex

    Pre-submission CS-conference LaTeX paper editing and adversarial review.

    223 GitHub stars~351 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Sci Ppt

    ShZhao27208/Aut_Sci_Write

    Generate professional academic PowerPoint (PPTX) presentations from paper PDFs, structured outlines, or plain text.

    209 GitHub stars~757 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Translate To Quarto

    brycewang-stanford/Auto-Empirical-Research-Skills

    Translate Beamer LaTeX to Quarto RevealJS. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~542 tokensUpdated 6 days ago
    Documents & OfficeAuto-check: notes
  • Paperjury

    Spark-To-Paper-Skills/paperjury-codex

    Pre-submission CS-conference LaTeX paper editing and adversarial review.

    223 GitHub stars~4.4k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Nature-Style Academic Polishing

    Yuan1z0825/nature-skills

    Polishes, translates or tightens existing academic prose and fixes manuscript LaTeX layout while keeping facts, terminology and evidence boundaries intact.

    47k GitHub stars~1.5k tokensUpdated today
    Writing & ContentAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Questions about Latex Translation Guide

What does Latex Translation Guide do?

Translate LaTeX documents preserving math formulas and structure. Latex Translation Guide is an agent skill from wentorai/research-plugins.

When should I use Latex Translation Guide?

Latex Translation Guide fits situations like: tasks that involve LaTeX; tasks that involve Translation.

How do I install Latex Translation Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill latex-translation-guide -a claude-code`. Or copy the skill folder (skills/tools/ocr-translate/latex-translation-guide in wentorai/research-plugins) into .claude/skills/latex-translation-guide in your project. Claude Code loads it when a task matches its description.

How do I install Latex Translation Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill latex-translation-guide -a codex`. Or copy the skill folder (skills/tools/ocr-translate/latex-translation-guide in wentorai/research-plugins) into .agents/skills/latex-translation-guide in your project. Codex loads it when a task matches its description.

Can I use Latex Translation Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill latex-translation-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/latex-translation-guide, .gemini/skills/latex-translation-guide, .github/skills/latex-translation-guide and .opencode/skills/latex-translation-guide in your project.

What does Latex Translation Guide need to run?

Going by SKILL.md and its folder, Latex Translation Guide needs the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Latex Translation Guide access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Latex Translation Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Latex Translation Guide use?

Latex Translation Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Latex Translation Guide use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Latex Translation Guide?

Skills that share tags, products or a category with Latex Translation Guide: Typst Paper (bahayonghang/academic-writing-skills, 500 stars), Paperjury (Spark-To-Paper-Skills/paperjury-codex, 223 stars), Sci Ppt (ShZhao27208/Aut_Sci_Write, 209 stars) and Translate To Quarto (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Latex Translation Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.