Package required: You must include
\usepackage{graphicx} in your preamble to work with images.Related topics: Figure positioning | Table creation | Package managementBasic Image Insertion
Simple Image Include
Supported Image Formats
| Compiler | Formats Supported |
|---|---|
| pdfLaTeX | PDF, PNG, JPG/JPEG |
| XeLaTeX | PDF, PNG, JPG/JPEG, EPS* |
| LuaLaTeX | PDF, PNG, JPG/JPEG, EPS* |
| LaTeX (DVI) | EPS, PS |
Scaling Images
Width and Height Control
Common Width References
Figure Environment
Basic Figure
Figure Placement Options
| Option | Meaning | Priority |
|---|---|---|
h | Here (approximately) | Low |
t | Top of page | Medium |
b | Bottom of page | Medium |
p | Page of floats | Low |
H | HERE (exactly)* | Forced |
! | Override LaTeX’s rules | Modifier |
\usepackage{float}
Multiple Images
Side by Side Images
Grid of Images
Image Transformations
Rotation and Flipping
Clipping and Trimming
Advanced Techniques
Wrapping Text Around Images
Image Paths
Draft Mode
Image Formats and Conversion
Working with Different Formats
Best Practices
Troubleshooting
Quick Reference
Essential Commands
| Command | Purpose | Example |
|---|---|---|
\includegraphics{} | Insert image | \includegraphics{pic} |
width= | Set width | width=5cm |
height= | Set height | height=3cm |
scale= | Scale factor | scale=0.5 |
angle= | Rotate | angle=90 |
\caption{} | Add caption | \caption{Description} |
\label{} | Add reference | \label{fig:name} |
Figure Template
Next: Master Figure positioning to control exactly where your images appear, or learn about Creating tables for structured data presentation.
