Template Migrator Skill

Migrate LaTeX projects across journal templates with atomic patches and visual validation.

334|18|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/OpenRaiser/PaperFit --skill template-migrator-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Template Migrator Skill
Source: https://github.com/OpenRaiser/PaperFit/tree/main/skills/template-migrator
Command: npx skills add https://github.com/OpenRaiser/PaperFit --skill template-migrator-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It fixes cross-template LaTeX migration defects where figures/tables sizing, macro compatibility, and page budget diverge after switching conference or journal templates.

Core Features & Use Cases

  • Category E defect remediation: Repairs E1 (single↔double column figure/table size mismatches), E2 (page budget mismatches), and E3 (template-specific macro/package incompatibilities).
  • Template configuration–driven migration: Loads target template constraints (documentclass, required/forbidden packages, float behavior, expected pages) and applies them coherently to the project’s main .tex.
  • Compile-then-verify loop with visual defect detection: Runs compilation, resolves undefined-control-sequence macro/package failures, and uses layout-detective-agent to confirm remaining E-class issues.
  • Atomic, rollback-safe source updates: Enforces in-memory patch assembly and uses transactional patch writing to prevent partially migrated states.

Quick Start

Ask the agent to migrate your project from the current template to the target template (for example, ECCV2024 or ICLR2025) and adapt figures/tables and macros accordingly.

Frequently Asked Questions about Template Migrator Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a LaTeX project to a new conference template without breaking figures?

Migrating LaTeX templates without breaking figures requires fixing single and double column sizing mismatches. The process loads target template constraints and applies atomic, rollback-safe patches to adjust float behavior and validate layout outcomes.

Why does my LaTeX document fail with undefined control sequence errors after switching templates?

Undefined control sequence errors after switching templates occur due to template-specific macro and package incompatibilities. You must resolve these E3 errors by running a compile-then-verify loop and replacing unsupported macros with target template equivalents.

How do I fix page budget drift when changing journal document classes?

Fixing page budget drift when changing journal document classes involves comparing the expected page count against the target template constraints. You iteratively apply transactional patches to the main .tex file and recompile until the page budget matches.

Can I automatically adjust figure and table sizes for double column LaTeX templates?

Yes, you can automatically adjust figure and table sizes for double column LaTeX templates. The migration process detects E1 sizing mismatches and applies template configuration rules to resize floats appropriately for the target documentclass.

What is the best way to ensure layout safety during a LaTeX template migration?

The best way to ensure layout safety during LaTeX template migration is using atomic transactional patch writing. This prevents partially migrated states by keeping patches in-memory until fully assembled, then applying visual layout detection to verify remediation.

Do I need a layout detective report to switch LaTeX templates?

Yes, you need a layout detective report and target template constraints from a config file to switch LaTeX templates effectively. These inputs allow the migration process to iteratively correct figure sizing, page budget, and macro compatibility issues.