Skip to main content Switch to mobile version Yanked This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified. Consider using release 1.0.3 instead.
Translate scientific papers (TeX source or born-digital PDF) into another language with the original layout, for AI agent harnesses
pip install rosettex==1.0.1 Copy PIP instructions
Translate scientific papers into 19+ languages — and keep the paper's own layout.
Quick Install • Features • How It Works • Connect Your Agent • Languages • Manual Install
A born-digital PDF (left) and rosettex's Vietnamese output (right): same page, same figure, same fonts for names and formulas. Paper: Berestov et al., CEUR-WS Vol-3550 (CC BY 4.0).
rosettex lets an AI coding agent translate a whole scientific paper — from its TeX source or from a born-digital PDF — and returns a PDF with the paper's own layout.
rosettex does not translate by itself — your agent is the translator. rosettex does the engineering around it: it splits the paper into question sheets with protected placeholders, checks every answer against strict rules, and typesets the result so formulas, figures, citations and links stay real, selectable and clickable. It ships as a CLI, an MCP server and an Agent Skill, packaged as a plugin for the major agent harnesses.
flowchart LR A[📄 TeX source
or PDF] --> B[🧩 rosettex prepare
sheets + placeholders] B --> C[🤖 Your agent
translates] C --> D[🛡️ rosettex check
placeholders · numbers · terms] D --> E[🏗️ rosettex build
LuaLaTeX] E -->|needs_repair| C E --> F[📑 Translated PDF] rosettex fetch 2108.07760 -o work # folder, archive, arXiv ID/link, or a local .pdf rosettex prepare work --lang vi # question sheets in work/read/, glossary in work/terms.md # … the agent appends "sNNNN
Install rosettex (https://github.com/20235106-huynk/rosettex) and connect it to yourself: install uv if it is missing, then `uv tool install rosettex`, `rosettex setup` (follow its next_argv), `rosettex doctor`, and the rosettex plugin for your harness from the README (or `rosettex install-skill`). No sudo; ask me before any download or installer. Then just ask, for example: "Translate arXiv 1512.03385 into Simplified Chinese and save it as ~/papers/resnet.zh.pdf." The agent fetches the paper, picks the field and key terms, translates sheet by sheet, runs check until it passes, builds the PDF, shortens any text build reports as too long, and tells you where the PDF is.
🔌 Connect Your Agent
This repository is a plugin at its root: one skill (skills/rosettex) and one MCP server that uvx starts from the tagged release (the manual snippets below start it from PyPI), so uv must be on PATH. The first run of setup installs TeX (the agent asks you first).
Skill + MCP server (every other harness)
Install the skill: rosettex install-skill (writes ~/.agents/skills, ~/.claude/skills, ~/.gemini/config/skills, and the Cline, Kiro, Qoder, Trae and CodeBuddy skill folders when they exist), or npx skills add 20235106-huynk/rosettex.
Add the MCP server. Most harnesses (Cursor, Cline, Kiro, Qoder, Kimi Code, Pi, CodeBuddy, Warp, Junie, Auggie, Tabnine, Trae, JetBrains AI Assistant) take the standard block in their MCP settings:
{ "mcpServers": { "rosettex": { "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } } } Harnesses with their own MCP syntax Harness Where Entry OpenCode opencode.json "mcp": { "servers": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } } } Kilo kilo.jsonc "mcp": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } } Crush crush.json "mcp": { "rosettex": { "type": "stdio", "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } } goose config.yaml extensions: { rosettex: { name: rosettex, type: stdio, enabled: true, cmd: uvx, args: [--from, rosettex, rosettex-mcp], envs: {}, timeout: 300 } } Mistral Vibe config.toml [[mcp_servers]] with name = "rosettex", transport = "stdio", command = "uvx", args = [...] Amp CLI amp mcp add rosettex -- uvx --from rosettex rosettex-mcp Zed settings.json "context_servers": { "rosettex": { "command": "uvx", "args": [...] } } Zencoder VS Code settings.json "zencoder.mcpServers" with the standard block Visual Studio %USERPROFILE%\.mcp.json "servers": { "rosettex": { "command": "uvx", "args": [...] } } GitHub Copilot cloud agent repository Settings › Copilot › MCP servers "type": "local", "tools": ["*"], and install uv in copilot-setup-steps.yml Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run this stdio server; use the skill and the CLI there. Without any integration, tell the agent: "Run rosettex guide and follow it."
Python ≥ 3.11 and uv.
LuaLaTeX: rosettex setup installs a private TinyTeX into ~/.rosettex (asks first; retries flaky CTAN mirrors), or rosettex setup --tex system uses an existing TeX Live.
uv tool install rosettex rosettex setup # or: rosettex setup --tex system rosettex doctor rosettex install-skill Environment variables
ROSETTEX_HOME: where rosettex keeps its TeX toolchain and state (default ~/.rosettex).
Update and uninstall
uv tool upgrade rosettex && rosettex install-skill --force rosettex install-skill --remove && uv tool uninstall rosettex # then delete the folder ~/.rosettex 🌍 Languages
Language data covers about 50 target languages (src/rosettex/data/langs/). Tested end to end:
The PDF route needs a born-digital PDF with a text layer (no OCR) and keeps the writing direction: a left-to-right paper cannot become right-to-left there — use the TeX source for that.
Table contents are not translated; scanned PDFs, vertical writing and PDF forms are not supported.
Very tight layouts may need shorter translations (needs_repair) or a slightly smaller font.
MIT — see LICENSE. Bundled fonts are under the SIL Open Font License 1.1 (src/rosettex/data/fonts/LICENSES/). Release notes: CHANGELOG.md.
Released: Nov 27, 2026
Yanked: Nov 27, 2026
Author: Nguyễn Kim Huy
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
agents latex mcp pdf scientific-papers translation
Development Status 5 - Production/Stable
Intended Audience Science/Research
License OSI Approved :: MIT License
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering
Text Processing :: Markup :: LaTeX
Release files for rosettex 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 25.7 MB
Release files / rosettex-1.0.1.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Release files / rosettex-1.0.1-py3-none-any.whl
Security for rosettex 1.0.1
Both files in this release have been uploaded with provenance metadata.
With provenance rosettex-1.0.1.tar.gz Nov 27, 2026
With provenance rosettex-1.0.1-py3-none-any.whl Nov 27, 2026
Attestation for rosettex-1.0.1.tar.gz
Attestation for rosettex-1.0.1-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 27, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











