Token导航 LogoToken导航TokenDH.com
研究检索可写文件github未标认证来源可访问许可证需确认审计提醒

arxiv-paper-translatorarxiv 论文翻译

Agent Skill

arxiv-paper-translator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,307

周安装

185

GitHub Stars

17

下载量

1,510
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:arxiv-paper-translator(arxiv 论文翻译)
来源仓库:https://github.com/yrom/arxiv-paper-translator
仓库路径:skills/arxiv-paper-translator
安装命令:
npx skills add https://github.com/yrom/arxiv-paper-translator --skill arxiv-paper-translator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yrom/arxiv-paper-translator --skill arxiv-paper-translator

简介

将 arXiv 英文论文翻译成中文并保持技术文档完整性。

  • 先下载 LaTeX 源码再翻译,确保图表、公式准确还原。
  • 编译生成带中文支持的 PDF 报告,附带技术摘要说明。
  • 要求本地安装 xelatex 和 xeCJK 等中日韩字符处理包。
  • arxiv-paper-translator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

arXiv Paper Translator

Translate academic papers from arXiv by downloading LaTeX source, translating content while preserving structure, and generating translated PDFs with technical reports.

Workflow Overview

  1. Download & Extract - Get LaTeX source from arXiv
  2. Translate - Translate English narrative content to Chinese following LaTeX-specific rules
  3. REVIEW PHASE - MUST COMPLETE before compiling
  4. CJK Support & Localize Labels - Add xeCJK, localize labels
  5. Compile.tex Files - Generate translated PDF using XeLaTeX
  6. Report - Create technical summary document

Prerequisites

Check local xelatex installation:

xelatex --version

If not installed, make sure Docker is installed and available.

docker --version

This skill requires XeLaTeX to compile translated PDFs. If not installed locally, Docker will be used instead.

Recommend using xu-cheng/latex-docker Docker images.

e.g. Tex Live full distribution (only linux/amd64):

# NOTICE: ghcr.1ms.run is a mirror of ghcr.io.
docker pull ghcr.1ms.run/xu-cheng/texlive-debian:20260101 --platform linux/amd64
# => docker pull ghcr.io/xu-cheng/latex-debian:20260101 --platform linux/amd64

If both local XeLaTeX and Docker are not installed, then STOP trying to run this skill. And Ask user question: "XeLaTeX or Docker is required to compile translated PDFs. Which one do you want to use? I'll help you to setup."

Step 1: Download LaTeX Source

Extract ARXIV_ID from user input.

Download and extract source code from arXiv:

# Download LaTeX source (replace ARXIV_ID with user-specified paper ID)
ARXIV_ID="2206.04655"
mkdir -p arXiv_${ARXIV_ID}
wget -q https://arxiv.org/e-print/${ARXIV_ID} -O arXiv_${ARXIV_ID}/paper_source.tar.gz
mkdir -p arXiv_${ARXIV_ID}/paper_source
tar -xzf arXiv_${ARXIV_ID}/paper_source.tar.gz -C arXiv_${ARXIV_ID}/paper_source

Verify extraction:

# List files to understand structure
tree arXiv_${ARXIV_ID}/paper_source

Step 2: Translate LaTeX Files

IMPORTANT: Before translating, read references/translation_guidelines.md for detailed rules.

Translation Workflow

Step 2.1. Copy all files from paper_source/ to paper_cn/:

Option 1 - Using cp (standard):

cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
cp -r paper_source/* paper_cn/

Option 2 - Using rsync (better for incremental sync):

cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
rsync -av paper_source/ paper_cn/

All.tex files in paper_cn/ will be translated in-place later.

Step 2.2. Gather Context (MANDATORY):

Before ANY translation, you MUST extract:

  1. Paper Title: From \title{...} in main file
  2. Abstract: From \begin{abstract}...\end{abstract} or \abstract{...} in main file
  3. Paper Structure: List all sections and which.tex file contains each
  4. Key Terminologies: Build terminology table from paper content

For some glossaries or terminologies you don't know how to translate, you can ASK user question for definition.

This information is REQUIRED for translation tasks.

Read references/translation_prompt.md for the prompt template.

Step 2.3. Dispatch Translation Tasks

Identify files to translate:

  • Find main file (contains \documentclass{...}, usually main.tex, paper.tex, template.tex, etc.)
  • Filter.tex files that need translation (skip macro-only files if any, or user specified files)
  • Create list of files to translate

Translation Strategy:

  1. Translate main file first (sequential)

- Builds shared terminology context - Ensures consistency for other files

  1. Translate other files:

- If 3+ files: Dispatch in parallel - If 1-2 files: Sequential translation

Each translation Task:

  • Task type: general-purpose subagent
  • Input: File path in paper_cn/ directory
  • Action: Read file → Translate → Edit file (Update file content with translated text)
  • Must follow references/translation_prompt.md
  • Must use gathered context (title, abstract, structure, terminologies)

Example command to find main.tex file:

find paper_cn/ -name "*.tex" -exec grep -l '\\documentclass' {} \; | head -1

Step 3: Review Translation

After all translation Tasks are completed, you MUST review the translated content following references/review_checklist.md to verify:

  1. File Completeness Check
  2. LaTeX Command Spelling
  3. CJK Catcode Issues
  4. Translation Quality Check
  5. Content Spot-Check

Perform fixes as needed based on review findings.

CRITICAL: Before proceeding to Step 4, you must confirm:

  • All review checks completed
  • Any issues identified and fixed
  • Translation quality verified

Step 4: Add Chinese Support

IMPORTANT: Follow references/chinese_support.md to configure CJK fonts and localize labels.

Modify main.tex file to include xeCJK package and set CJK fonts.

e.g. for Fandol font (which is included in TexLive Docker image):

\usepackage{xeCJK}
\setCJKmainfont{FandolSong}[ItalicFont=FandolKai]  % 宋体 - 正文,\emph 用楷体
\setCJKsansfont{FandolHei}    % 黑体 - 标题、\textsf
\setCJKmonofont{FandolFang}   % 仿宋 - 代码、\texttt

If running locally, Ask user for font preference before configuring. Check available fonts with fc-list:lang=zh family.

Step 5: Compile Translated PDF

Option 1: Local XeLaTeX

# Basic compilation
xelatex main.tex

# If paper has bibliography (recommended approach)
xelatex main.tex
bibtex main
xelatex main.tex
xelatex main.tex

Or use latexmk for automated compilation:

latexmk -xelatex main.tex

Option 2: Docker with TeX Live

# change working directory to arXiv_${ARXIV_ID}
cd /path/to/arXiv_${ARXIV_ID}
docker run --rm \
  -v "$(pwd)/paper_cn":/workspace \
  -w /workspace \
  ghcr.1ms.run/xu-cheng/texlive-debian:20260101 \
  latexmk -xelatex main.tex

Step 6: Generate Technical Report

If user requests a technical summary, spawn a subagent following references/summary_prompt.md to create a technical summary using assets/report_template.md.

Save report: arXiv_${ARXIV_ID}/technical_report.md

Final Deliverables

  1. Translated PDF: paper_cn/<main-file>.pdf
  2. Technical report: arXiv_${ARXIV_ID}/technical_report.md
  3. TeX Source: paper_cn/ directory with all translated LaTeX files

Common Issues & Solutions

IssueSolution
Downloaded file is single.tex, not.tar.gzmv paper_source.tar.gz paper_source.tex and create directory
Main file not named main.texfind. -name "*.tex" -exec grep -l "\\documentclass" {} \;
Compilation fails with encoding errorfile *.tex to check, iconv -f ISO-8859-1 -t UTF-8 to convert
Command misspelling (e.g. \footnotext)See review checklist step 2 — diff command sets to find typos
Undefined control sequence - \xmax概率xeCJK catcode issue — insert {} to separate custom macro from CJK text → \xmax{}概率
Undefined control sequence - \chinese{弋}Original uses CJK package's \chinese macro; add \newcommand{\chinese}[1]{#1} after xeCJK config to prevent catcode issue
Custom.sty/.cls filesCopy to paper_cn/, check for hard-coded English text
Missing $ inserted in translated tablesMixed CJK/Latin characters may cause xeCJK font switching errors (e.g. (xyz) be treated as math mode), restore original content in table cells
Undefined references (e.g., \ref{fig:joint-train})Ensure ALL referenced files are present in paper_cn/, even if NOT translated files.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.75%
按下载量换算555

Claude

31.28%
按下载量换算472

Cursor

18.97%
按下载量换算286

Gemini CLI

8.8%
按下载量换算133

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills