Loading...
Loading...
High-fidelity Optimizer for LaTeX Templates, supporting style parameter alignment, title text alignment, title format comparison (bold), HTML visualization reports, automatic LaTeX repair suggestions, and pixel-level PDF comparison verification for any LaTeX template
npx skill4agent add huangwb8/chineseresearchlatex make_latex_modelskills/make_latex_model/docs/WORKFLOW.mdskills/make_latex_model/docs/BASELINE_GUIDE.mdskills/make_latex_model/scripts/README.mdskills/make_latex_model/docs/FAQ.md@config.texmain.tex\section{}\subsection{}main.tex\input{}main.texprojects/{project}/.make_latex_model/skills/make_latex_model/docs/WORKFLOW.mdskills/make_latex_model/scripts/README.md| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Project name (e.g., |
| string | Yes | Word template year (e.g., |
| string | No | Optimization level: |
| boolean | No | Preview mode, no actual file modification, default is |
python3 skills/make_latex_model/scripts/check_state.py projects/{project}--projectNSFC_Youngprojects/NSFC_Youngcd skills/make_latex_model
./scripts/validate.sh --project projects/{project}python3 skills/make_latex_model/scripts/enhanced_optimize.py --project projects/{project} --max-iterations 30 --report# Fully automated iterative optimization
python3 skills/make_latex_model/scripts/enhanced_optimize.py \
--project projects/NSFC_Young \
--max-iterations 30 \
--reportpython3 skills/make_latex_model/scripts/enhanced_optimize.py \
--project projects/NSFC_Young \
--max-iterations 30 \
--ai --ai-mode heuristicNote: The script currently uses heuristic decision-making by default; for "host AI full participation", use(which generates--ai-mode manual_file, waiting forprojects/<project>/.make_latex_model/iterations/iteration_XXX/ai_request.jsonto be written before continuing).ai_response.json
| Condition | Threshold | Description |
|---|---|---|
| Compilation Failure | - | Stop immediately, manual repair required |
| Pixel Difference Convergence | | Achieve pixel-level alignment |
| No Continuous Improvement | 5 rounds | Metrics no longer optimize, convergence achieved |
| Maximum Iterations | 30 rounds | Force stop |
| Script | Function |
|---|---|
| One-click iterative optimization entry |
| Preprocess/restore main.tex |
| Generate Word PDF baseline |
| Convergence detection and reporting |
| AI optimizer (single-round debugging entry) |
| Intelligent parameter adjustment suggestions (legacy heuristic, retained as fallback path) |
CHANGELOG.md@config.texprojects/{project}/extraTex/@config.tex\ifwindowsprojects/{project}/main.tex\input{}cd skills/make_latex_model
./scripts/validate.sh --project projects/{project}main.tex\input{extraTex/*.tex}main.texextraTex/*.texmain.tex\section{Title Text}\subsection{Title Text}% ✅ Allowed modification: title text
\section{{\bfseries(一)立项依据与研究内容}(建议8000字以内):} % Modified to
\section{{\bfseries(一)研究依据与内容}(建议8000字以内):}
% ❌ Forbidden modification: main content
\input{extraTex/1.1.立项依据.tex} % Do not change the reference relationship
% Do not modify the specific content in extraTex/1.1.立项依据.texmoderatethorough\ifwindows./fonts/xelatex -> bibtex -> xelatex -> xelatexskills/make_latex_model/config.yamlskills/make_latex_model/docs/FAQ.md