From a70ff707b957fe8fffc96ea143b9f0938697e4bb Mon Sep 17 00:00:00 2001 From: Silcantar Date: Sat, 12 Jul 2025 23:20:08 -0500 Subject: [PATCH] Minor tweaks. --- CrossRef.sty | 18 +++++++++--------- Hyphenation.sty | 2 ++ Layout.sty | 11 +++++++++-- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/CrossRef.sty b/CrossRef.sty index 919d57a..8d95f6c 100644 --- a/CrossRef.sty +++ b/CrossRef.sty @@ -4,15 +4,15 @@ % Cross references %#region %\newcommand{\sectionRef}[2]{\ref{#1:#2}: #2} - \newcommand{\refChapter}[1]{Chapter \ref{ch:#1}} - \newcommand{\refAppendix}[1]{Appendix \ref{ch:#1}} - \newcommand{\refSection}[1]{Section \ref{sec:#1}} - \newcommand{\refSubsection}[1]{Subsection \ref{subsec:#1}} - \newcommand{\refSubsubsection}[1]{Sub-subsection \ref{sssec:#1}} - \newcommand{\refParagraph}[1]{Paragraph \ref{par:#1}} - \newcommand{\refSubparagraph}[1]{Subparagraph \ref{subpar:#1}} - \newcommand{\refTable}[1]{Table \ref{tbl:#1}} - \newcommand{\refFigure}[1]{Figure \ref{fig:#1}} + \newcommand{\refChapter}[2][Chapter~]{#1\ref{ch:#2}} + \newcommand{\refAppendix}[2][Appendix~]{#1\ref{ch:#2}} + \newcommand{\refSection}[2][Section~]{#1\ref{sec:#2}} + \newcommand{\refSubsection}[2][Subsection~]{#1\ref{subsec:#2}} + \newcommand{\refSubsubsection}[2][Sub-subsection~]{#1\ref{sssec:#2}} + \newcommand{\refParagraph}[2][Paragraph]{#1\ref{par:#2}} + \newcommand{\refSubparagraph}[2][Subparagraph~]{#1\ref{subpar:#2}} + \newcommand{\refTable}[2][Table~]{#1\ref{tbl:#2}} + \newcommand{\refFigure}[2][Figure~]{#1\ref{fig:#2}} \newcommand{\lblGeneral}[4][]{ \if\relax\detokenize{#1}\relax % Check if #1 is empty string. diff --git a/Hyphenation.sty b/Hyphenation.sty index dcd2070..fff88bf 100644 --- a/Hyphenation.sty +++ b/Hyphenation.sty @@ -3,4 +3,6 @@ \hyphenation{ over-view + over-views + %wheth-er } \ No newline at end of file diff --git a/Layout.sty b/Layout.sty index 9ff5662..878f08d 100644 --- a/Layout.sty +++ b/Layout.sty @@ -10,14 +10,21 @@ %#region \RequirePackage[pass]{geometry} \RequirePackage{calc} - \RequirePackage{changepage} + \RequirePackage[strict]{changepage} \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{\twoscreenshotmaxwidth} + \setlength{\twoscreenshotmaxwidth}{0.65in} + \newcommand{\bigfloat}[3][1in]{% \begin{#2}[htp]% - \begin{adjustwidth*}{-#1}{-#1}% + \begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}% \begin{minipage}{#1 * 2 + \textwidth}% #3% \end{minipage}%