- Split PrimeManual package into multiple packages.
- Change original PrimeManual package into a class and rename Manual.
This commit is contained in:
54
Layout.sty
Normal file
54
Layout.sty
Normal 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
|
||||
Reference in New Issue
Block a user