104 lines
2.6 KiB
TeX
104 lines
2.6 KiB
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{PrimeTeX/Layout}[2025-07-09]
|
|
|
|
% Suppress warning about \showhyphens being changed.
|
|
\let\CheckCommand\providecommand
|
|
|
|
\RequirePackage{microtype}
|
|
|
|
% Page Layout
|
|
\RequirePackage[
|
|
letterpaper,
|
|
twoside,
|
|
nohead,
|
|
width = 342pt,
|
|
height = 576pt,
|
|
inner = 108pt,
|
|
top = 108pt,
|
|
marginparwidth = 126pt,
|
|
marginparsep = 12pt,
|
|
footskip = 36pt,
|
|
]{geometry}
|
|
|
|
\RequirePackage{calc}
|
|
\RequirePackage[strict]{changepage}
|
|
% \RequirePackage{caption}
|
|
% \RequirePackage{graphicx}
|
|
% \RequirePackage{PrimeTeX/Tables}
|
|
|
|
\newlength{\contentwidth}
|
|
\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}
|
|
|
|
\newlength{\bigfloatoffset}
|
|
\setlength{\bigfloatoffset}{0.25in}
|
|
|
|
% Maximum width adjustment to fit 2 16x9 screensots on one page.
|
|
\newlength{\bigfloatwidth}
|
|
\setlength{\bigfloatwidth}{0.81in}
|
|
|
|
\newcommand{\bigfloat}[4][\bigfloatwidth]{%
|
|
\begin{#2}[#3]%
|
|
\begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
|
\begin{minipage}{#1 * 2 + \textwidth}%
|
|
#4%
|
|
\end{minipage}%
|
|
\end{adjustwidth*}%
|
|
\end{#2}%
|
|
}
|
|
|
|
\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]{%
|
|
\bigfloat[#1]{figure}{#2}{%
|
|
\fcolorbox{PrimeBlue}{PrimePaleBlue}{%
|
|
\begin{minipage}{\textwidth}%
|
|
\vspace{1em}%
|
|
{\centering\textbf{#3}%
|
|
\begin{minipage}{-2em + \textwidth}%
|
|
\medskip%
|
|
#4%
|
|
\end{minipage}
|
|
\par}%
|
|
\vspace{1em}%
|
|
\end{minipage}%
|
|
}%
|
|
}%
|
|
}
|
|
|
|
% Header & Footer Options
|
|
%#region
|
|
\pagestyle{plain}
|
|
%#endregion
|
|
|
|
% Paragraph formatting.
|
|
%#region
|
|
\setlength{\parindent}{0pt}
|
|
\setlength{\parskip}{2ex plus 0.5ex minus 0.5ex}
|
|
%#endregion
|
|
|
|
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
|
|
\renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
|
|
% Parameters for TEXT pages (not float pages):
|
|
\setcounter{topnumber}{2}
|
|
\setcounter{bottomnumber}{2}
|
|
\setcounter{totalnumber}{4} % 2 may work better
|
|
\setcounter{dbltopnumber}{2} % for 2-column pages
|
|
\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
|
|
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs
|
|
% Parameters for FLOAT pages (not text pages):
|
|
\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
|
|
% N.B.: floatpagefraction MUST be less than topfraction !!
|
|
\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages |