igbuend/grimbard/graphicx
Claude Code and agent skill by igbuend/grimbard
- community
Checking that the SKILL.md file is still in the repository.
LaTeX graphicx package for image inclusion and manipulation. Use when helping users insert images, resize graphics, create figure environments, or work with subfigures.
Install
npx vskill@latest install igbuend/grimbard/graphicxSKILL.md
graphicx — Image Inclusion & Manipulation
CTAN: https://ctan.org/pkg/graphicx Manual: texdoc graphicx
Setup
\includegraphics Options
| Option | Example | Description | |
|---|---|---|---|
width | width=0.8\textwidth | Scale to width | |
height | height=5cm | Scale to height | |
scale | scale=0.5 | Scale factor | |
angle | angle=90 | Rotate (counterclockwise, degrees) | |
trim | trim=1cm 2cm 1cm 0cm | Crop: left bottom right top | |
clip | clip | Must accompany trim to actually crop | |
page | page=3 | Page of multi-page PDF | |
keepaspectratio | keepaspectratio | Maintain ratio when both width+height set | |
draft | draft | Show filename box instead of image | |
bb | bb=0 0 100 100 | Bounding box (EPS) | |
viewport | viewport=50 50 200 200 | View sub-region (with clip) | |
resolution | resolution=300 | DPI for bitmap without natural size |
Supported Formats by Engine
| Engine | Vector | Raster | |
|---|---|---|---|
| pdfLaTeX | PDF, EPS (auto-converted) | PNG, JPG | |
| XeLaTeX | PDF, EPS | PNG, JPG, BMP | |
| LuaLaTeX | PDF, EPS | PNG, JPG | |
| LaTeX→DVI | EPS | (none natively) |
Best practice: Use PDF for vector graphics, PNG for screenshots/diagrams with transparency, JPG for photos.
Scaling & Rotating Commands
Figure Environment
Placement Specifiers
| Spec | Meaning | |
|---|---|---|
h | Here (approximately) | |
t | Top of page | |
b | Bottom of page | |
p | Separate float page | |
! | Override internal limits | |
H | Exactly here (requires float package) |
Tip: Use [htbp] as default. Avoid [H] unless necessary.
Subfigures
Three Subfigures in a Row
Overlays with overpic
Remove grid, tics=10 after positioning. Coordinates are percentage-based.
Wrapfigure (Text Wrapping)
Common Pitfalls
| Problem | Cause | Fix | |
|---|---|---|---|
| "File not found" | Wrong path or extension | Check \graphicspath, omit extension | |
| "Unknown graphics extension .eps" | pdfLaTeX can't use raw EPS | Use epstopdf package (auto-converts) or switch to PDF | |
| Blurry images | Low resolution raster | Use ≥300 DPI or vector format | |
| Figure floats away | LaTeX float algorithm | Use [htbp!], add \FloatBarrier (placeins pkg) | |
| Overfull hbox with subfigures | Widths sum > \textwidth | Ensure widths + gaps < 1.0\textwidth | |
trim not cropping | Missing clip | Always pair trim with clip | |
| Image upside down | Camera EXIF rotation | Pre-rotate or use angle=180 | |
| Subfigure numbering wrong | Using deprecated subfigure pkg | Switch to subcaption |
Tips
- Omit file extensions — LaTeX picks the best format automatically
- Use
\linewidthinside minipages/columns,\textwidthat top level - For publication: vector (PDF/EPS) for plots, high-DPI PNG/JPG for photos
\DeclareGraphicsExtensions{.pdf,.png,.jpg}to set search prioritydraftoption on\documentclassreplaces all images with boxes (faster compilation)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/graphicx/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/igbuend/grimbard/graphicx)