$npx -y skills add joshua-zyy/academic-paper-writer --skill academic-latex-layoutUse when working on academic paper LaTeX layout, figure/table float placement, draft-to-template LaTeX generation, existing .tex project layout repair, figures piling up, figures far from text, large blank areas, two-column figure/table placement, page-limit layout cleanup, or co
| 1 | # Academic LaTeX Layout |
| 2 | |
| 3 | LaTeX layout and float-placement router for academic papers. Optimize figure/table placement by semantic adjacency and compiled PDF evidence, not by source-level hacks. |
| 4 | |
| 5 | ## Router Protocol |
| 6 | |
| 7 | 1. Read `manifest.yaml`. |
| 8 | 2. Read every file listed under `always_load`. |
| 9 | 3. Detect exactly one mode from the manifest. |
| 10 | 4. Echo the selected mode before executing. |
| 11 | 5. Reach for `references/` only when the manifest condition is satisfied. |
| 12 | |
| 13 | ## Modes |
| 14 | |
| 15 | | Mode | Use when | |
| 16 | |---|---| |
| 17 | | `draft-to-latex-layout` | Draft + template + existing figures/tables must become LaTeX with semantically placed floats | |
| 18 | | `layout-repair` | Existing `.tex` project has float pileups, text/figure drift, blank areas, or two-column layout problems | |
| 19 | | `layout-audit` | User wants diagnosis only, without edits | |
| 20 | |
| 21 | ## Boundaries |
| 22 | |
| 23 | Do not generate data figures; use `academic-figure`. Do not broadly polish prose; use `academic-polishing`. Do not decide which figures the paper should contain. |
| 24 | |
| 25 | ## Completion Criteria |
| 26 | |
| 27 | - Template constraints identified or bounded. |
| 28 | - Figure/table semantic map produced. |
| 29 | - Direct edits follow risk policy. |
| 30 | - Compile and PDF preview loop run when feasible; otherwise bounded assessment explains the blocker. |
| 31 | - Final report follows `references/report-format.md`. |