- Improve dark mode.
- Pass options to book class.
This commit is contained in:
86
Graphics.sty
86
Graphics.sty
@@ -1,56 +1,52 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{PrimeTeX/Graphics}[2025-07-09]
|
||||
|
||||
\RequirePackage{PrimeTeX/Layout}
|
||||
\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}
|
||||
}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage[hypcap=true]{caption}
|
||||
\RequirePackage{calc}
|
||||
|
||||
\newcommand{\cfig}[4]{%
|
||||
\begin{figure}[ht]%
|
||||
\centering%
|
||||
#4{#1}%
|
||||
\caption{#3}%
|
||||
\label{fig:#2}%
|
||||
\end{figure}%
|
||||
}
|
||||
\newcommand{\centerfig}[3]{\cfig{#1}{#2}{#3}{\includegraphics}}
|
||||
\newcommand{\centerfigw}[4][\textwidth]{
|
||||
\cfig{#2}{#3}{#4}{
|
||||
\includegraphics[keepaspectratio,width=#1]
|
||||
}
|
||||
}
|
||||
\newcommand{\ig}[2][0.5in]{
|
||||
\includegraphics[keepaspectratio,width=#1]{#2}
|
||||
}
|
||||
|
||||
\newcommand{\bigfig}[4][\twoscreenshotmaxwidth]{%
|
||||
\bigfloat[#1]{figure}{htp}{%
|
||||
\captionsetup{type=figure}%
|
||||
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
|
||||
\centering\captionof{figure}{#4}\par%
|
||||
\label{fig:#3}%
|
||||
}%
|
||||
\newcommand{\cfig}[4]{%
|
||||
\begin{figure}[ht]%
|
||||
\centering%
|
||||
#4{#1}%
|
||||
\caption{#3}%
|
||||
\label{fig:#2}%
|
||||
\end{figure}%
|
||||
}
|
||||
\newcommand{\centerfig}[3]{\cfig{#1}{#2}{#3}{\includegraphics}}
|
||||
\newcommand{\centerfigw}[4][\textwidth]{
|
||||
\cfig{#2}{#3}{#4}{
|
||||
\includegraphics[keepaspectratio,width=#1]
|
||||
}
|
||||
}
|
||||
|
||||
% \RequirePackage{float}
|
||||
% \newfloat{fullpage}{htpb}{dbf}[chapter]
|
||||
% \floatname{fullpage}{Figure}
|
||||
\newcommand{\bigfig}[4][\twoscreenshotmaxwidth]{%
|
||||
\bigfloat[#1]{figure}{htp}{%
|
||||
\captionsetup{type=figure}%
|
||||
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
|
||||
\centering\captionof{figure}{#4}\par%
|
||||
\label{fig:#3}%
|
||||
}%
|
||||
}
|
||||
|
||||
\newcommand{\doublebigfig}[7][\twoscreenshotmaxwidth]{%
|
||||
\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}%
|
||||
}%
|
||||
}
|
||||
\newcommand{\doublebigfig}[7][\twoscreenshotmaxwidth]{%
|
||||
\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
|
||||
|
||||
Reference in New Issue
Block a user