Spine latex

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Spine latex is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Handles LaTeX project assembly, figure placement, citations, labels, and compile-safe cleanup. (internal /paperspine step)

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产回填自 WUBING2023/PaperSpine@1fe46f0e76aa(单技能拆分重组编排)。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->

PaperSpine LaTeX

Use this skill for LaTeX assembly, template integration, figure placement,

citations, labels, and compile-safety checks. Do not change manuscript logic

unless rewrite/build outputs require it.

Required Inputs

Required Outputs

paper_rewriting_output/final_paper/main.tex

paper_rewriting_output/final_paper/paper.pdf

deliverables

paper_rewriting_output/word_report.md

Rules

exp_lab_en - 副本). Quote every path passed to pandoc/copy commands and avoid

unquoted shell globs; they break silently on such directories. On Windows

prefer PowerShell for file operations.

build_from_materials.

output, follow the target template or use a conservative article template.

skipped in latex_report.md.

first fatal error to latex_report.md, and do not claim the artifact check

passes.

the manuscript uses BibTeX citations, resolve them with citeproc so \cite

commands render as formatted references instead of leaking raw LaTeX:

```bash

cd final_paper

pandoc main.tex -o paper.docx --from latex --to docx \

--resource-path=. --extract-media=./media \

--number-sections --citeproc --bibliography=references.bib

```

reference list; omit only when the manuscript has no citations

--reference-doc=reference.docx built from the target template

(--filter pandoc-crossref); without it they may render as [?]

paper_rewriting_output/word_report.md` and fix failures before presenting

the Word file as usable. If word_guard reports 0 paragraphs, check that

images are in supported formats (PNG/JPG) and the figures/ directory exists.

then convert the flattened file; pandoc does not pull sub-files in reliably.

cannot resolve, silently losing their content.

tables often misalign in docx, so open and verify each table.

unsrt, ieeetr) renders differently in Word. To keep numbered [1]

citations, pass a numeric CSL, e.g. --csl=ieee.csl or --csl=vancouver.csl.

SimSun or Noto Serif CJK) or characters render as boxes.

tables, and references all rendered.

Read references/latex-source-control.md before structural LaTeX edits.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.