skills/latex-posters/references/compilation_and_quality_control.md
Compilation commands and engines, then the full pre-print QC procedure: page-size verification, overflow detection, reduced-scale test prints, font embedding, image DPI, file size, and log-warning triage.
Generate high-quality PDF output for printing or digital display:
Compilation Commands:
# Basic compilation
pdflatex poster.tex
# With bibliography
pdflatex poster.tex
bibtex poster
pdflatex poster.tex
pdflatex poster.tex
# For beamer-based posters
lualatex poster.tex # Better font support
xelatex poster.tex # Unicode and modern fonts
Ensuring Full Page Coverage:
Posters should use the entire page without excessive margins. Configure packages correctly:
beamerposter - Full Page Setup:
\documentclass[final,t]{beamer}
\usepackage[size=a0,scale=1.4,orientation=portrait]{beamerposter}
% Remove default beamer margins
\setbeamersize{text margin left=0mm, text margin right=0mm}
% Use geometry for precise control
\usepackage[margin=10mm]{geometry} % 10mm margins all around
% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}
% Remove footline and headline if not needed
\setbeamertemplate{footline}{}
\setbeamertemplate{headline}{}
tikzposter - Full Page Setup:
\documentclass[
25pt, % Font scaling
a0paper, % Paper size
portrait, % Orientation
margin=10mm, % Outer margins (minimal)
innermargin=15mm, % Space inside blocks
blockverticalspace=15mm, % Space between blocks
colspace=15mm, % Space between columns
subcolspace=8mm % Space between subcolumns
]{tikzposter}
% This ensures content fills the page
baposter - Full Page Setup:
\documentclass[a0paper,portrait,fontscale=0.285]{baposter}
\begin{poster}{
grid=false,
columns=3,
colspacing=1.5em, % Space between columns
eyecatcher=true,
background=plain,
bgColorOne=white,
borderColor=blue!50,
headerheight=0.12\textheight, % 12% for header
textborder=roundedleft,
headerborder=closed,
boxheaderheight=2em % Consistent box header heights
}
% Content here
\end{poster}
Common Issues and Fixes:
Problem: Large white margins around poster
% Fix for beamerposter
\setbeamersize{text margin left=5mm, text margin right=5mm}
% Fix for tikzposter
\documentclass[..., margin=5mm, innermargin=10mm]{tikzposter}
% Fix for baposter - adjust in document class
\documentclass[a0paper, margin=5mm]{baposter}
Problem: Content doesn't fill vertical space
% Use \vfill between sections to distribute space
\block{Introduction}{...}
\vfill
\block{Methods}{...}
\vfill
\block{Results}{...}
% Or manually adjust block spacing
\vspace{1cm} % Add space between specific blocks
Problem: Poster extends beyond page boundaries
% Check total width calculation
% For 3 columns with spacing:
% Total = 3×columnwidth + 2×colspace + 2×margins
% Ensure this equals \paperwidth
% Debug by adding visible page boundary
\usepackage{eso-pic}
\AddToShipoutPictureBG{
\AtPageLowerLeft{
\put(0,0){\framebox(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){}}
}
}
Print Preparation:
Digital Display:
CRITICAL: Always review the generated PDF before printing or presenting. Use this systematic checklist:
Step 1: Page Size Verification
# Check PDF dimensions (should match poster size exactly)
pdfinfo poster.pdf | grep "Page size"
# Expected outputs:
# A0: 2384 x 3370 points (841 x 1189 mm)
# 36x48": 2592 x 3456 points
# A1: 1684 x 2384 points (594 x 841 mm)
Step 2: OVERFLOW CHECK (CRITICAL) - DO THIS IMMEDIATELY AFTER COMPILATION
⚠️ THIS IS THE #1 CAUSE OF POSTER FAILURES. Check BEFORE proceeding.
Step 2a: Check LaTeX Log File
# Check for overflow warnings (these are ERRORS, not suggestions)
grep -i "overfull\|underfull\|badbox" poster.log
# ANY "Overfull" warning = content is cut off or extending beyond boundaries
# FIX ALL OF THESE before proceeding
Common overflow warnings and what they mean:
Overfull \hbox (15.2pt too wide) → Text or graphic is 15.2pt wider than columnOverfull \vbox (23.5pt too high) → Content is 23.5pt taller than available spaceBadbox → LaTeX struggling to fit content within boundariesStep 2b: Visual Edge Inspection (100% zoom in PDF viewer)
Check ALL FOUR EDGES systematically:
TOP EDGE:
BOTTOM EDGE:
LEFT EDGE:
RIGHT EDGE:
BETWEEN COLUMNS:
If ANY check fails, you have overflow. FIX IMMEDIATELY before continuing:
Fix hierarchy (try in order):
Check AI-generated graphics first:
Reduce sections:
Cut text content:
Adjust figure sizing:
width=\linewidth? → Change to width=0.85\linewidthwidth=1.0\columnwidth? → Change to width=0.9\columnwidthIncrease margins (last resort):
\documentclass[25pt, a0paper, portrait, margin=25mm]{tikzposter}
DO NOT proceed to Step 3 if ANY overflow exists.
Step 3: Visual Inspection Checklist
Open PDF at 100% zoom and check:
Layout and Spacing:
Typography:
Visual Elements:
Content Completeness:
Technical Quality:
Step 4: Reduced-Scale Print Test
Essential Pre-Printing Test:
# Create reduced-size test print (25% of final size)
# This simulates viewing full poster from ~8-10 feet
# For A0 poster, print on A4 paper (24.7% scale)
# For 36x48" poster, print on letter paper (~25% scale)
Print Test Checklist:
Step 5: Digital Quality Checks
Font Embedding Verification:
# Check that all fonts are embedded (required for printing)
pdffonts poster.pdf
# All fonts should show "yes" in "emb" column
# If any show "no", recompile with:
pdflatex -dEmbedAllFonts=true poster.tex
Image Resolution Check:
# Extract image information
pdfimages -list poster.pdf
# Check that all images are at least 300 DPI
# Formula: DPI = pixels / (inches in poster)
# For A0 width (33.1"): 300 DPI = 9930 pixels minimum
File Size Optimization:
# For email/web, compress if needed (>50MB)
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=poster_compressed.pdf poster.pdf
# For printing, keep original (no compression)
Step 6: Accessibility Check
Color Contrast Verification:
Color Blindness Simulation:
Step 7: Content Proofreading
Systematic Review:
Peer Review:
Step 8: Technical Validation
LaTeX Compilation Log Review:
# Check for warnings in .log file
grep -i "warning\|error\|overfull\|underfull" poster.log
# Common issues to fix:
# - Overfull hbox: Text extending beyond margins
# - Underfull hbox: Excessive spacing
# - Missing references: Citations not resolved
# - Missing figures: Image files not found
Fix Common Warnings:
% Overfull hbox (text too wide)
\usepackage{microtype} % Better spacing
\sloppy % Allow slightly looser spacing
\hyphenation{long-word} % Manual hyphenation
% Missing fonts
\usepackage[T1]{fontenc} % Better font encoding
% Image not found
% Ensure paths are correct and files exist
\graphicspath{{./figures/}{./images/}}
Step 9: Final Pre-Print Checklist
Before Sending to Printer:
Printing Specifications to Confirm:
Digital Presentation Checklist:
Review Script (Available in scripts/review_poster.sh):
#!/bin/bash
# Automated poster PDF review script
echo "Poster PDF Quality Check"
echo "======================="
# Check file exists
if [ ! -f "$1" ]; then
echo "Error: File not found"
exit 1
fi
echo "File: $1"
echo ""
# Check page size
echo "1. Page Dimensions:"
pdfinfo "$1" | grep "Page size"
echo ""
# Check fonts
echo "2. Font Embedding:"
pdffonts "$1" | head -20
echo ""
# Check file size
echo "3. File Size:"
ls -lh "$1" | awk '{print $5}'
echo ""
# Count pages (should be 1 for poster)
echo "4. Page Count:"
pdfinfo "$1" | grep "Pages"
echo ""
echo "Manual checks required:"
echo "- Visual inspection at 100% zoom"
echo "- Reduced-scale print test (25%)"
echo "- Color contrast verification"
echo "- Proofreading for typos"
Common PDF Issues and Solutions:
| Issue | Cause | Solution |
|---|---|---|
| Large white margins | Incorrect margin settings | Reduce margin in documentclass |
| Content cut off | Exceeds page boundaries | Check total width/height calculations |
| Blurry images | Low resolution (<300 DPI) | Replace with higher resolution images |
| Missing fonts | Fonts not embedded | Compile with -dEmbedAllFonts=true |
| Wrong page size | Incorrect paper size setting | Verify documentclass paper size |
| Colors look wrong | RGB vs CMYK mismatch | Convert color space for print |
| File too large (>50MB) | Uncompressed images | Optimize images or compress PDF |
| QR codes don't work | Too small or low resolution | Minimum 2×2cm, high contrast |