LaTeX figures and tables that land where you want them
Why your figure jumped to the next page, how wide it should be, where captions go, and how to make tables that look professional. A practical guide with the settings that fix each problem.

Every LaTeX user has seen it happen. You put a figure right after the paragraph that discusses it, compile, and it shows up two pages later, after a section heading it has nothing to do with.
LaTeX isn't ignoring you. It's following placement rules you didn't set. Once you know the rules, figures and tables go where you want them.
Why figures move
Figures and tables are floats. LaTeX moves them to avoid ugly page breaks, such as half a page of white space because a figure didn't fit at the bottom. Where it's allowed to put them depends on the placement option:
Option | Meaning |
|---|---|
| Here, if there's room |
| Top of a page |
| Bottom of a page |
| On a page of floats only |
Luzbase's figure toolbar offers these as Automatic (htbp), Here (h) and the other combinations. Click a figure in Visual mode to change it.
Use Automatic (htbp) by default. It gives LaTeX the most freedom, which is why it produces the best-looking pages. Use Here (h) only when a figure genuinely has to sit inside a specific step of an explanation. If you force h on every figure, you'll get large gaps whenever a figure doesn't fit.
If a figure still drifts too far, the fix is usually in the writing, not the placement: refer to it as "Figure 3" with \ref, never as "the figure below". Then it doesn't matter exactly where it lands.
Get the width right once
Set figure widths relative to the text, never in centimetres:
\includegraphics[width=0.8\linewidth]{figures/accuracy.pdf}0.8\linewidth means 80% of the text width, and it stays correct if you switch to a different template or a two-column layout. That's the default when you use Insert figure, and you can change it from the figure toolbar.
For a figure that should span both columns of a two-column paper, turn on Span columns. Luzbase uses figure* instead of figure, which is the standard way to do it. Wide plots and overview diagrams usually need it. Bear in mind that most two-column classes place spanning figures at the top of a page.
Use the right file type
- PDF for charts and diagrams. Vector graphics stay sharp at any zoom and in print. Export plots from Python, R or MATLAB as PDF.
- PNG for screenshots, or anything with sharp edges and flat colour.
- JPG for photographs.
Luzbase also accepts GIF, WEBP and EPS. SVG isn't supported, so convert SVG figures to PDF first. Drag an image into the editor or paste it from your clipboard and it's uploaded and inserted in one step (up to 10 MB per file).
Captions: above tables, below figures
This is the convention in most style guides, and reviewers do notice:
- Figures: caption below.
- Tables: caption above, because readers scan a table's title before its contents.
Luzbase's table toolbar lets you move the caption above, below, or remove it. Also put \label after \caption. If it comes before, \ref points to the section number instead of the figure number.
Tables that look professional
The fastest upgrade for any table is to remove the vertical lines and most of the horizontal ones. The booktabs style uses just three rules: top, middle and bottom.
\begin{tabular}{lrr}
\toprule
Model & Accuracy & Params \\
\midrule
Baseline & 71.2 & 11M \\
Ours & 76.4 & 12M \\
\bottomrule
\end{tabular}In Visual mode, click into any table and choose Booktabs rules from the borders menu. Luzbase rewrites the rules for you. If booktabs isn't in your preamble yet, add it with Add LaTeX package, or let the compile error tell you the one line to add. Then right-align number columns so decimal points line up, which is what the r in {lrr} does.
Quick checklist
- Placement: Automatic (htbp) unless you have a reason.
- Width: relative to
\linewidth. - Charts as PDF, screenshots as PNG.
- Captions below figures, above tables.
\labelafter\caption. - Tables: booktabs, no vertical lines, numbers right-aligned.



