Files
PrimeTeX/Graphics.sty
Joshua Lucas 60e4d0eccd - Move font files to PrimeTeX.
- Add Roboto as sans serif font and move Roboto Slab to a custom family.
- Customize title formatting.
- Add boxout macro.
2025-07-16 17:27:16 -05:00

50 lines
1.1 KiB
TeX

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PrimeTeX/Graphics}[2025-07-09]
\RequirePackage{PrimeTeX/Layout}
% Graphics package for including images
\RequirePackage{graphicx}
\RequirePackage[hypcap=true]{caption}
\RequirePackage{calc}
\newcommand{\ig}[2][0.5in]{
\includegraphics[keepaspectratio,width=#1]{#2}
}
\newcommand{\cfig}[4]{%
}
\newcommand{\centerfig}[4][]{
\begin{figure}[ht]%
\centering%
\includegraphics[keepaspectratio,#1]{#2}%
\caption{#4}%
\label{fig:#3}%
\end{figure}%
}
\newcommand{\bigfig}[4][\bigfloatwidth]{%
\bigfloat[#1]{figure}{htp}{%
\captionsetup{type=figure}%
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
\centering\captionof{figure}{#4}\par%
\label{fig:#3}%
}%
}
\newcommand{\doublebigfig}[7][\bigfloatwidth]{%
\bigfloat[#1]{figure}{p}{%
\captionsetup{type=figure}%
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
\centering\captionof{figure}{#4}\par%
\label{fig:#3}
\bigskip
\captionsetup{type=figure}%
\includegraphics[keepaspectratio,width=\textwidth]{#5}%
\centering\captionof{figure}{#7}\par%
\label{fig:#6}%
}%
}
%#endregion