- Refine Boxouts.

- General refactoring.
This commit is contained in:
2025-08-27 16:41:25 -05:00
parent 01a598b3aa
commit f9a6c6e7cc
8 changed files with 138 additions and 97 deletions

View File

@@ -18,23 +18,22 @@
\pagecolor[rgb]{0.2,0.2,0.2}
\color[rgb]{0.9,0.9,0.9}
\definecolor{PrimeBlue}{RGB}{149, 164, 237}
\definecolor{PrimePaleBlue}{RGB}{35, 39, 56}
\definecolor{pageColor}{rgb}{0.2,0.2,0.2}
\definecolor{textColor}{rgb}{0.9,0.9,0.9}
\definecolor{paleGray}{rgb}{0.3,0.3,0.3}
\definecolor{PrimeBlue}{RGB}{149, 164, 237}
\definecolor{PrimePaleBlue}{RGB}{35, 39, 56}
}{
\definecolor{PrimeBlue}{RGB}{25,45,145}
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
\colorlet{pageColor}{white}
\colorlet{textColor}{black}
\colorlet{paleGray}{gray!10}
\definecolor{PrimeBlue}{RGB}{25,45,145}
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
}
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
\definecolor{WarningBoxFGColor}{RGB}{255, 150, 0}
\colorlet{layoutColor}{PrimePaleBlue}
\RequirePackage{PrimeTeX/packages/Layout}
@@ -44,17 +43,4 @@
{\setlength{\fboxrule}{0.2pt}% Temporarily set \fboxrule and \fboxsep.
\setlength{\fboxsep}{1pt}%
\fcolorbox{boxedcoloroutline}{#2}{\color{#3}\strut{}#1}}%
}
\providelength{\warningboxwidth}[
\textwidth - \fboxsep * 2 - \fboxrule * 2 - 5.56pt % Magic number to make it fit.
]
\NewDocumentCommand{\warningbox}{O{\warningboxwidth} +m}{%
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{%
\begin{minipage}{#1}%
%\rule{\textwidth}{1pt}\zws% For debugging.
#2%
\end{minipage}%
}%
}