From 1f684fd0dd3fe1cb93fd869f684b311ec4590dae Mon Sep 17 00:00:00 2001 From: Silcantar Date: Sun, 13 Jul 2025 22:30:26 -0500 Subject: [PATCH] Customize page geometry, tweak placement of large figures. --- Graphics.sty | 22 ++++++++++++++++++-- Hyphenation.sty | 2 +- Layout.sty | 54 +++++++++++++++++++++++++++++-------------------- 3 files changed, 53 insertions(+), 25 deletions(-) diff --git a/Graphics.sty b/Graphics.sty index 90ddc3d..41611fc 100644 --- a/Graphics.sty +++ b/Graphics.sty @@ -23,12 +23,30 @@ \newcommand{\centerfig}[3]{\cfig{#1}{#2}{#3}{\includegraphics}} \newcommand{\centerfigw}[4][\textwidth]{\cfig{#2}{#3}{#4}{\includegraphics[keepaspectratio,width=#1]}} - \newcommand{\bigfig}[4][1in]{% - \bigfloat[#1]{figure}{% + \newcommand{\bigfig}[4][\twoscreenshotmaxwidth]{% + \bigfloat[#1]{figure}{htp}{% \captionsetup{type=figure}% \includegraphics[keepaspectratio,width=\textwidth]{#2}% \centering\captionof{figure}{#4}\par% \label{fig:#3}% }% } + + % \RequirePackage{float} + % \newfloat{fullpage}{htpb}{dbf}[chapter] + % \floatname{fullpage}{Figure} + + \newcommand{\doublebigfig}[7][\twoscreenshotmaxwidth]{% + \bigfloat[#1]{figure}{p}{% + \captionsetup{type=figure}% + \includegraphics[keepaspectratio,width=\textwidth]{#2}% + \centering\captionof{figure}{#4}\par% + \label{fig:#3} + \bigskip + \captionsetup{type=figure}% + \includegraphics[keepaspectratio,width=\textwidth]{#5}% + \centering\captionof{figure}{#7}\par% + \label{fig:#6}% + }% + } %#endregion diff --git a/Hyphenation.sty b/Hyphenation.sty index fff88bf..8b40d11 100644 --- a/Hyphenation.sty +++ b/Hyphenation.sty @@ -4,5 +4,5 @@ \hyphenation{ over-view over-views - %wheth-er + fac-to-ry-talk } \ No newline at end of file diff --git a/Layout.sty b/Layout.sty index 878f08d..629334e 100644 --- a/Layout.sty +++ b/Layout.sty @@ -7,31 +7,41 @@ \RequirePackage{microtype} % Page Layout -%#region - \RequirePackage[pass]{geometry} - \RequirePackage{calc} - \RequirePackage[strict]{changepage} +\RequirePackage[ + letterpaper, + twoside, + nohead, + width = 342pt, + height = 576pt, + inner = 108pt, + top = 108pt, + marginparwidth = 126pt, + marginparsep = 12pt, + footskip = 36pt, +]{geometry} - \newlength{\contentwidth} - \setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth} +\RequirePackage{calc} +\RequirePackage[strict]{changepage} - \newlength{\bigfloatoffset} - \setlength{\bigfloatoffset}{0.25in} +\newlength{\contentwidth} +\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth} - % Maximum width adjustment to fit 2 16x9 screensots on one page. - \newlength{\twoscreenshotmaxwidth} - \setlength{\twoscreenshotmaxwidth}{0.65in} - - \newcommand{\bigfloat}[3][1in]{% - \begin{#2}[htp]% - \begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}% - \begin{minipage}{#1 * 2 + \textwidth}% - #3% - \end{minipage}% - \end{adjustwidth*}% - \end{#2}% - } -%#endregion +\newlength{\bigfloatoffset} +\setlength{\bigfloatoffset}{0.25in} + +% Maximum width adjustment to fit 2 16x9 screensots on one page. +\newlength{\twoscreenshotmaxwidth} +\setlength{\twoscreenshotmaxwidth}{0.81in} + +\newcommand{\bigfloat}[4][\twoscreenshotmaxwidth]{% + \begin{#2}[#3]% + \begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}% + \begin{minipage}{#1 * 2 + \textwidth}% + #4% + \end{minipage}% + \end{adjustwidth*}% + \end{#2}% +} % Title & Heading Options %#region