graphics-def
Provides essential driver files that enable color and graphics support across different LaTeX output formats and engines.
Overview
Serves as a fundamental infrastructure package that coordinates how graphics and colors are handled in various LaTeX compilation workflows. This collection of driver definition files ensures consistent behavior across different TeX engines and output formats.
- Contains specialized definition files for major engines including dvips, pdftex, luatex, xetex, dvipdfmx, and dvisvgm.
- Works in conjunction with the core graphics and color packages to enable proper rendering of images and colored elements.
- Critical for maintaining compatibility and consistency when documents need to be processed with different TeX engines or output formats.
- Particularly important for document portability and when working with complex publishing workflows that involve multiple output formats.
Getting Started
The graphics-def
package provides driver files for the LaTeX graphics and color packages. You don't need to load it directly as it's automatically loaded by the graphics or color packages based on your LaTeX engine:
\documentclass{article}
\usepackage{graphicx} % or \usepackage{color}
The appropriate driver file (pdftex.def, xetex.def, luatex.def, dvips.def, dvipdfmx.def, or dvisvgm.def) will be selected automatically based on the LaTeX engine you're using.