Skip to content

Commit 487d354

Browse files
JihaoXinclaude
andcommitted
Writer prompt: FloatBarrier before last section to prevent figure overflow
Add rule: writer must place \FloatBarrier immediately before the last body section (e.g., Conclusion). This ensures all pending figures render before the final section, preventing blank figure-only pages at the end. Figures can still float freely between earlier sections — only the boundary before the last section is protected. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 1e15c3e commit 487d354

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ark/templates/agents/writer.prompt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ After every modification, compile and check that:
6969
- Moving the `\begin{figure}` declaration earlier in the text
7070
- Reducing figure height with `\includegraphics[width=...,height=...]`
7171
- Using `[!htbp]` placement specifier instead of `[t]`
72-
2. **No figures after the last section** — all figures must appear within or between body sections, never between the last section and `\clearpage`/References
72+
2. **`\FloatBarrier` before the last section** — add `\FloatBarrier` (from `\usepackage{placeins}`) immediately before the last body section (usually Conclusion). This guarantees all figures appear before the final section, not after it. Example:
73+
```
74+
\FloatBarrier
75+
\section{Conclusion}
76+
```
7377
3. **Figures match their context** — a figure referenced in Section 3 should appear on or near Section 3's pages, not 2 pages later
7478
4. **Multi-panel figures use correct environment** — figures with 2+ panels (side-by-side) should use `\begin{figure*}` (full width) in multi-column templates, so fonts are readable
7579

0 commit comments

Comments
 (0)