Miscellaneous minor improvements.

This commit is contained in:
2025-08-08 17:17:39 -05:00
parent 287c8fde8a
commit e897930bb9
5 changed files with 63 additions and 20 deletions

View File

@@ -32,16 +32,25 @@
}
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
\definecolor{WarningBoxFGColor}{RGB}{255, 192, 0}
\definecolor{WarningBoxFGColor}{RGB}{255, 150, 0}
\newcommand{\boxedcolor}[3][white]{
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}
\RequirePackage{PrimeTeX/packages/Layout}
\newcommand{\boxedcolor}[3][white]{%
\providelength[\fboxsep]{\fboxsepdefault}%
\setlength{\fboxsep}{2pt}%
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}%
\setlength{\fboxsep}{\fboxsepdefault}%
}
\newcommand{\warningbox}[2][\textwidth]{
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{
\begin{minipage}{#1}
#2
\end{minipage}
}
\providelength[12.3599pt]{\warningboxsizeoffset}
\newcommand{\warningbox}[2][\textwidth - \warningboxsizeoffset]{%
\noindent%
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{%
\noindent%
\begin{minipage}{#1}%
\raggedbottom%
#2%
\end{minipage}%
}%
}