make_latex_model

Align LaTeX template styles to Word baselines and generate comparison reports.

2.6k|247|Updated Feb 12, 2024
One-click install
npx skills add https://github.com/huangwb8/ChineseResearchLaTeX --skill make-latex-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: make_latex_model
Source: https://github.com/huangwb8/ChineseResearchLaTeX/tree/main/skills/make_latex_model
Command: npx skills add https://github.com/huangwb8/ChineseResearchLaTeX --skill make-latex-model

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyMuPDF, python-docx, Pillow, PyYAML, and includes scripts (resource) components.

What problem does it solve?

This Skill provides automated LaTeX template high-fidelity alignment to Word baselines, enabling pixel-accurate consistency of styles, headings, and layout between LaTeX templates and Word templates for scientific documents.

Core Features & Use Cases

  • Style alignment: Automates alignment of fonts, font sizes, line spacing, margins, and heading formats between LaTeX templates and Word baselines.
  • Pixel-level validation: Generates baseline comparisons with HTML/visual reports to verify fidelity and detect deviations.
  • Iterative optimization: Supports workflows that analyze baselines, propose configuration changes, and validate results across NSFC-like project templates.

Quick Start

  • Prepare a Word PDF baseline and a LaTeX project with main.tex and template baselines.
  • Run the skill to compare, align styles, and generate reports; review results and adjust configurations as needed.

Frequently Asked Questions about make_latex_model

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

FAQPage Schema
How do I align LaTeX template formatting to match a Word baseline document?

LaTeX template alignment to a Word baseline involves automating style extraction, comparison, and application. It parses PDFs and Word documents to match fonts, sizes, margins, and heading formats with pixel-level accuracy.

Can I automate pixel-perfect style matching for NSFC project proposals?

Yes, you can automate pixel-perfect style matching for NSFC project proposals. The skill specifically targets NSFC-style templates, extracting styles and validating layout fidelity against Word-derived baselines using PyMuPDF and python-docx.

How do I validate LaTeX to Word layout fidelity and detect formatting deviations?

To validate LaTeX to Word layout fidelity, generate baseline comparisons with HTML visual reports. This detects formatting deviations by analyzing fonts, line spacing, and margins extracted from the PDF and Word baselines.

Do I need PyMuPDF and python-docx to compare LaTeX and Word document styles?

Yes, PyMuPDF and python-docx are required to compare LaTeX and Word document styles. These dependencies parse PDFs and extract Word headings and styles, alongside Pillow and PyYAML, requiring Python 3.8 or higher.

What is the best way to iteratively optimize LaTeX styles against a Word PDF baseline?

The best way to iteratively optimize LaTeX styles against a Word PDF baseline is to analyze the baseline, propose configuration changes, and validate results. This workflow generates review reports to check pixel-accurate consistency across templates.

Why does my LaTeX template layout deviate from the original Word document margins?

Your LaTeX template layout deviates from Word document margins due to unaligned style configurations. Automated extraction and comparison of fonts, line spacing, and margins against the baseline generates reports to identify and fix these pixel-level deviations.