joshua-zyy/academic-paper-writer / skills/academic-latex-layout
academic-latex-layout
VerifiedUse 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 compiled PDF layout review.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.6 KB |
| manifest.yaml | config | 1.8 KB |
| references/float-placement-patterns.md | markdown | 3.1 KB |
| references/layout-audit-contract.md | markdown | 926 B |
| references/pdf-preview-loop.md | markdown | 2.1 KB |
| references/report-format.md | markdown | 1.6 KB |
| references/template-constraints.md | markdown | 1.6 KB |
| references/workflow-draft-to-latex-layout.md | markdown | 2.1 KB |
| references/workflow-layout-repair.md | markdown | 3.6 KB |
| static/core/anti-patterns.md | markdown | 1.3 KB |
| static/core/output-contract.md | markdown | 1.7 KB |
| static/core/red-lines.md | markdown | 1.1 KB |
| static/core/stance.md | markdown | 2.3 KB |
references/pdf-preview-loop.md
View on GitHub# PDF Preview Loop
Use this loop after draft generation or repair whenever compilation is feasible.
## Loop
1. Discover the build command from project files or user instructions. Prefer existing commands over inventing new ones.
2. If no command exists, use a conservative fallback: try `latexmk -pdf <main.tex>` when available; otherwise use the engine implied by the template or user files.
3. Compile with the least invasive command available. Common options are `latexmk`, `make`, `pdflatex`, or `xelatex`, depending on the project.
4. Inspect logs for missing assets, unresolved references, overfull boxes, underfull vboxes, float warnings, package conflicts, too many unprocessed floats, and page count changes.
5. If compilation fails, fix direct-safe blockers first in this order: missing asset paths, unresolved includes, obvious label/reference mistakes, then over-restrictive float specifiers. Do not comment out scientific content unless the user approves a diagnostic-only compile.
6. Preview or inspect the PDF using available tools. If visual preview is unavailable, verify PDF generation and provide bounded assessment.
7. Check PDF-level layout: evidence near explanation, no severe float clusters, no avoidable large blank regions, readable captions/tables, acceptable page/column breaks, and page-limit status.
8. Map each PDF finding to a direct-safe edit or a confirm-first recommendation.
9. Apply only direct-safe edits and repeat the loop.
10. Stop after three direct-safe compile/PDF iterations, when no direct-safe issue remains, when compilation is blocked, or when further improvement requires confirmation.
## Reporting
Always report the command used, whether compilation succeeded, what PDF review found, what was fixed after preview, and what remains unverified.
If the loop stops at the iteration cap, report the remaining issues as a ranked list rather than continuing to churn.
## Bounded Assessment
If no compiler, PDF tool, or source assets are available, state:
- What source-level checks were completed.
- Why compile/PDF preview could not run.
- Which layout claims remain unverified.
- What the user can provide to continue the loop.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |