- Split PrimeManual package into multiple packages.

- Change original PrimeManual package into a class and rename Manual.
This commit is contained in:
Silcantar
2025-07-09 21:01:35 -05:00
parent 40b8836e51
commit 8dfaf66c18
16 changed files with 364 additions and 307 deletions

54
Layout.sty Normal file
View File

@@ -0,0 +1,54 @@
\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