Miscellaneous minor improvements.
This commit is contained in:
@@ -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}%
|
||||
}%
|
||||
}
|
||||
Reference in New Issue
Block a user