Converts LaTeX academic papers between publisher templates (Springer, IPOL to MDPI, IEEE, Nature) via extraction, injection, formatting fixes, and PDF compilation.
From antigravity-awesome-skillsnpx claudepluginhub sickn33/antigravity-awesome-skills --plugin antigravity-awesome-skillsThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
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.
.tex file and a new template directory.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).
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.
Perform generic fixes on the extracted body text before writing the final file, or in subsequent calls:
\begin{theorem} to \begin{Theorem}).[!t] or [h!]) to template-supported options. Avoid forcing [H] unless the float package is explicitly loaded.\includegraphics paths are relative to the new .tex file location.\begin{tabular} to \begin{tabularx}{\textwidth} or use \resizebox if moving to a double-column layout.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.
``` 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
.tex and target template.tex.[h!] to [H].pdflatex and verify the .log to ensure the final output compiles.\usepackage{amsmath} if missing).\begin{tabular} and automatically wrap in \resizebox{\columnwidth}{!}{...} or suggest a format change.Paper.log and include the missing \usepackage{} in the converted template.