\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PrimeTeX/Layout}[2025-07-09]

% Suppress warning about \showhyphens being changed.
\let\CheckCommand\providecommand

\RequirePackage{microtype}

% Page Layout
%#region
	\RequirePackage[pass]{geometry}
	\RequirePackage{calc}
	\RequirePackage{ifoddpage}

	\newlength{\contentwidth}
	\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}

	\newlength{\bfFigureWidth}
	\newlength{\bfMarginOffset}
	\newcommand{\bigfloat}[2][1in]{%
		\setlength{\bfFigureWidth}{#1*-2+\paperwidth}%
		\checkoddpage%
		\ifoddpage%
			\setlength{\bfMarginOffset}{-1in+#1-\oddsidemargin}%
		\else%
			\setlength{\bfMarginOffset}{-1in+#1-\evensidemargin}%
		\fi%
		\begin{figure}[ht]%
			{\leavevmode%
				\put(\bfMarginOffset,0in){%
					\begin{minipage}{\bfFigureWidth}%
						#2%
					\end{minipage}%
				}%
			}%
		\end{figure}%
	}
%#endregion

% Title & Heading Options
%#region
	\RequirePackage[sf,raggedright]{titlesec}
%#endregion

% Header & Footer Options
%#region
	\pagestyle{plain}
%#endregion

% Paragraph formatting.
%#region
	\setlength{\parindent}{0pt}
	\setlength{\parskip}{2ex plus 0.5ex minus 0.5ex}
%#endregion