Add scaling options to BigFig.

This commit is contained in:
2025-09-08 16:47:19 -05:00
parent 2cefebccd6
commit 1f79529bba
3 changed files with 58 additions and 13 deletions

View File

@@ -23,6 +23,7 @@
% Primary Color: Blue
% Secondary Colors: Yellow, Mint, Pink
% Lightness ≈ 33%
\definecolorset{HTML}{Prime}{}{% _Relationship to Base Color_
Gray, 4d505d;% #474c63 Saturation -> 9%
Yellow, 917d19;% #917d19 Complementary
@@ -90,7 +91,7 @@
Orange, e48f63 % #e48f63
}
% Lightness ≈ 64%
% Lightness ≈ 80%
\definecolorset{HTML}{PrimePastel}{}{%
Gray, c6c8d0;% #c6c8d0
Yellow, f0e4a6;% #f0e4a6
@@ -179,8 +180,20 @@
\colorlet{boxedcoloroutline}{text}
\NewDocumentCommand{\boxedcolor}{O{\rule{0pt}{1ex}\rule{1ex}{0pt}} m m}{%
\NewDocumentCommand{\boxedcolor}{
% #1: Text inside box.
o
% #2: Box fill color.
m
% #3: Text Color.
O{black}
}{%
\setlength{\fboxrule}{0.0pt}% Temporarily set \fboxrule and \fboxsep.
\setlength{\fboxsep}{1.5pt}%
\fcolorbox{boxedcoloroutline}{#2}{\color{#3}\strut{}#1}%
\IfNoValueTF{#1}{%
\def\boxedcolortext{\rule{0pt}{1ex}\rule{1ex}{0pt}}%
}{%
\def\boxedcolortext{\strut{}#1}%
}%
\fcolorbox{boxedcoloroutline}{#2}{\small\color{#3}\boxedcolortext}%
}