30 lines
568 B
TeX
30 lines
568 B
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{PrimeTeX/packages/Caption}[2025-08-20]
|
|
|
|
\RequirePackage[
|
|
hypcap=true,
|
|
]{caption}
|
|
\captionsetup{
|
|
justification = Centering,
|
|
font = {
|
|
small,
|
|
color=caption,
|
|
},
|
|
}
|
|
|
|
% Define a justification style that is ragged on the side toward the outside of
|
|
% the page. I. e. RaggedRight on
|
|
\RequirePackage{changepage}
|
|
%\RequirePackage{ifthen}
|
|
\DeclareCaptionJustification{RaggedOutside}{%
|
|
\ifthenelse{\boolean{isElectronic}}{%
|
|
\RaggedRight%
|
|
}{%
|
|
\checkoddpage%
|
|
\ifoddpage%
|
|
\RaggedRight%
|
|
\else%
|
|
\RaggedLeft%
|
|
\fi%
|
|
}%
|
|
} |