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.

31,392 stars
Complexity: medium

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

$curl -o ~/.claude/skills/latex-paper-conversion/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/latex-paper-conversion/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/latex-paper-conversion/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How latex-paper-conversion Compares

Feature / Agentlatex-paper-conversionStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/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

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

31392
from sickn33/antigravity-awesome-skills

Document creation, format conversion (ODT/DOCX/PDF), mail merge, and automation with LibreOffice Writer.

Document ProcessingClaude

docx-official

31392
from sickn33/antigravity-awesome-skills

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.

Document ProcessingClaude

visa-doc-translate

144923
from affaan-m/everything-claude-code

将签证申请文件(图片)翻译成英文,并创建包含原文和译文的双语PDF

Document ProcessingClaude

hugging-face-papers

31392
from sickn33/antigravity-awesome-skills

Read and analyze Hugging Face paper pages or arXiv papers with markdown and papers API metadata.

Text AnalysisClaude

hugging-face-paper-publisher

31392
from sickn33/antigravity-awesome-skills

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.

AI Research PublishingClaude

doc-cleaner

162
from notoriouslab/doc-cleaner

Convert PDF, DOCX, XLSX, and text files to clean, structured Markdown. CJK-friendly, table-friendly, privacy-first.

Document Processing

nft-standards

31392
from sickn33/antigravity-awesome-skills

Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.

Web3 & BlockchainClaude

nextjs-app-router-patterns

31392
from sickn33/antigravity-awesome-skills

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Web FrameworksClaude

new-rails-project

31392
from sickn33/antigravity-awesome-skills

Create a new Rails project

Code GenerationClaude

networkx

31392
from sickn33/antigravity-awesome-skills

NetworkX is a Python package for creating, manipulating, and analyzing complex networks and graphs.

Network AnalysisClaude

network-engineer

31392
from sickn33/antigravity-awesome-skills

Expert network engineer specializing in modern cloud networking, security architectures, and performance optimization.

Network EngineeringClaude

nestjs-expert

31392
from sickn33/antigravity-awesome-skills

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.

Frameworks & LibrariesClaude