latex-paper-conversion
This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.
About this skill
This skill streamlines the complex and often time-consuming process of converting academic papers written in LaTeX from one publisher's template to another. It addresses the significant differences in structural requirements, document classes, margin settings, and bibliography styles found between various journals like Springer, IPOL, MDPI, IEEE, and Nature. The skill executes a structured multi-stage workflow: first extracting the core content (text, figures, tables, bibliography) from the source LaTeX document, then intelligently injecting it into the new target template, automatically fixing common formatting discrepancies, and finally compiling the new LaTeX document into a ready-to-use PDF. This automation significantly reduces manual effort, saves time for researchers and academics, and minimizes human errors associated with template adaptation.
Best use case
Researchers needing to submit a paper to multiple journals with different LaTeX template requirements. Academics reformatting a previously published paper or thesis chapter for a new submission or archival purpose. Students adapting their LaTeX-written assignments or thesis drafts to specific journal formats. Publishers or editors who need to standardize or convert incoming LaTeX submissions.
This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.
A set of LaTeX source files (e.g., `.tex`, `.bib`, figures) correctly formatted according to the specified target publisher's template. A compiled PDF document generated from the converted LaTeX files, reflecting the new template's layout and styles. A report highlighting any areas where manual review or specific content adjustments might still be required due to highly custom or unmappable elements.
Practical example
Example input
I have a research paper in the Springer LaTeX template, and I need to convert it to the IEEE journal format for a new submission. Can you help with that? Please convert my thesis chapter, which is currently in an IPOL LaTeX style, to fit the Nature journal template. Automate the conversion of my academic paper from its current LaTeX format to MDPI style. Here are the source files.
Example output
Understood! I will begin the process of converting your LaTeX paper from the Springer template to the IEEE format. This involves extracting the content, adapting it to the new structure, and ensuring proper compilation. I will provide you with the converted LaTeX source files and a new PDF once it's complete, along with any notes on specific formatting points. Your IPOL LaTeX paper is now being converted to the Nature journal template. This automated process handles content extraction, formatting adjustments, and recompilation. I'll notify you when the new LaTeX files and the compiled PDF are ready for your review.
When to use this skill
- The user explicitly asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature).
- The user references specific publisher or journal templates for LaTeX documents.
- The user indicates a need to reformat a LaTeX document to comply with new style guidelines.
- The task involves extracting content from an existing LaTeX structure and adapting it to a new one.
When not to use this skill
- The user's request involves converting a document that is *not* in LaTeX format (e.g., Word, PDF directly).
- The user needs to create a LaTeX document from scratch without an existing source paper.
- The user's request is for minor LaTeX syntax debugging or simple compilation of a single `.tex` file without template conversion.
- The user needs content translation between languages, rather than format conversion.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/latex-paper-conversion/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How latex-paper-conversion Compares
| Feature / Agent | latex-paper-conversion | Standard Approach |
|---|---|---|
| Platform Support | Claude | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.
Which AI agents support this skill?
This skill is designed for Claude.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
SKILL.md Source
# LaTeX Paper Conversion
## Overview
This skill automates the tedious and recurring process of converting an academic paper written in LaTeX from one publisher's template to another. Different journals (e.g., Springer, MDPI, IEEE) have vastly different structural requirements, document classes, margin settings, and bibliography styles. This skill streamlines these conversions by executing a structured multi-stage workflow, extracting content, mapping it to a new template, and resolving common compilation errors.
## When to Use This Skill
- Use when the user requests to port an existing LaTeX paper to a new journal's format.
- Use when the user provides an existing `.tex` file and a new template directory.
- Use when the user mentions converting from format A (e.g., IPOL/Neural Processing) to format B (e.g., MDPI).
## How It Works
### Step 1: Pre-requisites & Assessment
Identify the **Source LaTeX file** and asking the user for the **Target Template Directory**. Understand the core layout mapping (single-column vs. double-column, bibliography style).
### Step 2: Extraction & Injection Script Generation
Create a Python script (e.g., `convert_format.py`) to parse the source LaTeX file. Use Regular Expressions to extract core text blocks. Merge the new template's `preamble`, the extracted `body`, and the `backmatter`. Write this to a new file in an output directory.
### Step 3: Systematic Fixing
Perform generic fixes on the extracted body text before writing the final file, or in subsequent calls:
- Convert math environment cases (e.g., `\begin{theorem}` to `\begin{Theorem}`).
- Adjust aggressive float placements (e.g., `[!t]` or `[h!]`) to template-supported options. Avoid forcing `[H]` unless the `float` package is explicitly loaded.
- Ensure `\includegraphics` paths are relative to the new `.tex` file location.
- Convert `\begin{tabular}` to `\begin{tabularx}{\textwidth}` or use `\resizebox` if moving to a double-column layout.
### Step 4: Compilation & Debugging
Run a build cycle (`pdflatex` -> `bibtex` -> `pdflatex`). Check the `.log` file using `grep` or `rg` to systematically fix any packages conflicts, undefined commands, or compilation halts.
## Examples
### Example 1: Converting IPOL to MDPI
\```
USER: "I need to convert my paper 'SAHQR_Paper.tex' to the MDPI format located in the 'MDPI_template_ACS' folder."
AGENT: *Triggers latex-paper-conversion skill*
1. Analyzes source `.tex` and target `template.tex`.
2. Creates Python script to extract Introduction through Conclusion.
3. Injects content into MDPI template.
4. Updates image paths and table float parameters `[h!]` to `[H]`.
5. Compiles via pdflatex and bibtex to confirm zero errors.
\```
## Best Practices
- ✅ Always write a Python extraction script; DO NOT manually copy-paste thousands of lines of LaTeX.
- ✅ Always run `pdflatex` and verify the `.log` to ensure the final output compiles.
- ✅ Explicitly ask the user for the structural mapping if the source and target differ drastically (e.g., merging abstract and keywords).
- ❌ Don't assume all math packages automatically exist in the new template (e.g., add `\usepackage{amsmath}` if missing).
## Common Pitfalls
- **Problem:** Overfull hboxes in tables when moving from single to double column.
**Solution:** Detect `\begin{tabular}` and automatically wrap in `\resizebox{\columnwidth}{!}{...}` or suggest a format change.
- **Problem:** Undefined control sequence errors during compilation.
**Solution:** Search the `Paper.log` and include the missing `\usepackage{}` in the converted template.
## Additional Resources
- [Overleaf LaTeX Documentation](https://www.overleaf.com/learn)Related Skills
writer
Document creation, format conversion (ODT/DOCX/PDF), mail merge, and automation with LibreOffice Writer.
docx-official
A user may ask you to create, edit, or analyze the contents of a .docx file. A .docx file is essentially a ZIP archive containing XML files and other resources that you can read or edit. You have different tools and workflows available for different tasks.
visa-doc-translate
将签证申请文件(图片)翻译成英文,并创建包含原文和译文的双语PDF
hugging-face-papers
Read and analyze Hugging Face paper pages or arXiv papers with markdown and papers API metadata.
hugging-face-paper-publisher
Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.
doc-cleaner
Convert PDF, DOCX, XLSX, and text files to clean, structured Markdown. CJK-friendly, table-friendly, privacy-first.
nft-standards
Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.
nextjs-app-router-patterns
Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.
new-rails-project
Create a new Rails project
networkx
NetworkX is a Python package for creating, manipulating, and analyzing complex networks and graphs.
network-engineer
Expert network engineer specializing in modern cloud networking, security architectures, and performance optimization.
nestjs-expert
You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.