Skip to content

joshua-zyy/academic-paper-writer / skills/academic-latex-layout

academic-latex-layout

Verified

Use 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.

references/float-placement-patterns.md

View on GitHub
# Float Placement Patterns

These are heuristics, not universal rules. Venue templates may override them.

## Placement Specifiers

| Pattern | Use when | Caution |
|---|---|---|
| `[t]` | Most two-column paper figures/tables that should appear near the top of a column | May still drift if float density is high |
| `[tbp]` | Flexible placement is better than exact placement | Can move to float page if backlog grows |
| `[!t]` | A top placement is strongly preferred and template allows mild constraint relaxation | Do not use as a blanket default |
| `[htbp]` | Single-column documents or local floats where here-placement is acceptable | `h` is only a suggestion, not a guarantee |
| `[p]` | A float page is preferable to severe text/float separation or backlog | Use sparingly; explain the reading-flow tradeoff |
| `[H]` | Rare emergency for small floats that must remain exactly in place | Never apply globally; often creates blank space |

## Two-Column Layout

- Use `figure` or `table` for column-width content.
- Use `figure*` or `table*` only when details are unreadable in one column or the claim needs a full-width comparison.
- Full-width floats usually appear at page tops; plan around the PDF result, not the source location.
- Bottom placement for full-width floats may require packages such as `stfloats` or `dblfloatfix`; treat those as confirm-first package changes after template compatibility checks.

## Barriers and Page Breaks

- Prefer moving floats and reducing float density before adding barriers.
- Use `\FloatBarrier` sparingly at meaningful section boundaries.
- Avoid placing barriers so densely that less than a few paragraphs of text can flow between them.
- Avoid `\clearpage` unless the paper intentionally starts a new major part and the user accepts the break.
- `\afterpage{\clearpage}` can be a controlled alternative for deferred float flushing, but it is still confirm-first unless the project already uses the pattern safely.

## Sizes and Captions

- Start with `width=\columnwidth` for column floats and `width=\textwidth` for full-width floats.
- Reduce width only while axis labels, legends, and table text remain readable.
- Captions are content. Shorten only with confirmation unless fixing punctuation or label consistency.
- Caption font or spacing changes are layout changes, not content changes, but still require template compatibility checks.

## Consolidation

- Consolidating related small figures into subfigures can reduce float pressure, but changing figure grouping or numbering is confirm-first.
- Reorganizing panels inside an existing multi-panel figure is direct-safe only when labels, captions, and meaning stay unchanged.

## Readability Guardrails

- Do not shrink plots below the point where axis labels, legends, markers, or table values are readable in the compiled PDF.
- If readability is uncertain, classify the shrink as confirm-first and report the PDF preview uncertainty.

## Float Density

If several floats cluster in one section, first check whether some belong earlier or later according to their semantic map. Do not solve density by pushing evidence away from explanation.
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall