Agent skill · writing content · sickn33

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.

Why this skill is useful

Adds a Python script that automates the conversion of LaTeX papers between different journal formats, which is not commonly available in public resources.

What it needs

Requires python installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

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., convertformat.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). …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/latex-paper-conversion--df4802

View the source on GitHub

Browse the @skills marketplace