diff --git a/Graphics.sty b/Graphics.sty index 1d23aaa..9ee34db 100644 --- a/Graphics.sty +++ b/Graphics.sty @@ -5,9 +5,17 @@ % Graphics package for including images \RequirePackage{graphicx} -\RequirePackage[hypcap=true]{caption} + +\RequirePackage[ + hypcap=true, + justification = centering, +]{caption} +\captionsetup{font = {color=PrimeBlue}} + \RequirePackage{calc} +\newcommand{\iconsize}{0.25in} + \newcommand{\ig}[2][0.5in]{ \includegraphics[keepaspectratio,width=#1]{#2} } @@ -24,7 +32,7 @@ \end{figure}% } -\newcommand{\bigfig}[4][\bigfloatwidth]{% +\newcommand{\bigfig}[4][\bigfloatoverhang]{% \bigfloat[#1]{figure}{htp}{% \captionsetup{type=figure}% \includegraphics[keepaspectratio,width=\textwidth]{#2}% @@ -33,7 +41,7 @@ }% } -\newcommand{\doublebigfig}[7][\bigfloatwidth]{% +\newcommand{\doublebigfig}[7][\bigfloatoverhang]{% \bigfloat[#1]{figure}{p}{% \captionsetup{type=figure}% \includegraphics[keepaspectratio,width=\textwidth]{#2}% @@ -46,4 +54,14 @@ \label{fig:#6}% }% } -%#endregion + +\newcommand{\wrapfig}[6][0in]{% + \begin{wrapfigure}{#3}[#1]{#4}% + \includegraphics[% + keepaspectratio,% + width = #4,% + ]{#2}% + \centering\caption{#6}% + \label{fig:#5}% + \end{wrapfigure}% +} diff --git a/Layout.sty b/Layout.sty index ba749e3..bd9876b 100644 --- a/Layout.sty +++ b/Layout.sty @@ -33,10 +33,10 @@ \setlength{\bigfloatoffset}{0.25in} % Maximum width adjustment to fit 2 16x9 screensots on one page. -\newlength{\bigfloatwidth} -\setlength{\bigfloatwidth}{0.81in} +\newlength{\bigfloatoverhang} +\setlength{\bigfloatoverhang}{0.81in} -\newcommand{\bigfloat}[4][\bigfloatwidth]{% +\newcommand{\bigfloat}[4][\bigfloatoverhang]{% \begin{#2}[#3]% \begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}% \begin{minipage}{#1 * 2 + \textwidth}% @@ -48,20 +48,7 @@ \RequirePackage{wrapfig} -% \newcommand{\boxout}[7][\bigfloatwidth]{ -% \bigfloat[#1]{figure}{#2}{ -% \captionlistentry[figure]{#6.} -% \label{fig:#5} - -% \begin{tblrBoxout}{} -% \SetCell[c=2]{c}{\sbfamily\bfseries #6}\\ -% \includegraphics[#4]{#3} -% & #7\\ -% \end{tblrBoxout} -% } -% } - -\newcommand{\boxout}[4][\bigfloatwidth]{% +\newcommand{\boxout}[4][\bigfloatoverhang]{% \bigfloat[#1]{figure}{#2}{% \fcolorbox{PrimeBlue}{PrimePaleBlue}{% \begin{minipage}{\textwidth}% diff --git a/MarginNotes.sty b/MarginNotes.sty index bd4f24c..0e81d0e 100644 --- a/MarginNotes.sty +++ b/MarginNotes.sty @@ -48,13 +48,13 @@ \captionsetup{% type = figure,% font = {color=marginTextColor},% - justification = raggedright,% + justification = centering,%raggedright,% }% }{% \captionsetup{% type = figure,% font = {color=marginTextColor},% - justification = raggedleft,% + justification = centering,%raggedleft,% }% }% {\centering\includegraphics[keepaspectratio,#3]{#2}\par}%