新增三个深色颜色(苍松绿 / 暮山紫 / 琥珀橙)并同步要点框自动排布

一、新增颜色(放在 beamercolorthemeOUCSlide.sty)
  oucpine   苍松绿  RGB(30, 86, 64)    白字对比度 8.54
  oucdusk   暮山紫  RGB(92, 58, 118)   白字对比度 9.04
  oucamber  琥珀橙  RGB(196, 82, 16)   白字对比度 4.60
三个都是较深的颜色,与白色文字有足够对比度(WCAG >= 4.5),
可直接作色块底色;各自同样带 10 个色阶(如 oucpine10 ~ oucpine90)。
命名取自中文传统色:「苍松」「暮山紫」「琥珀」。
琥珀橙是高饱和深橘,与低饱和的暗褐「文脉棕」在饱和度上明显区分(0.98 vs 0.61)。

二、要点框自动排布 pointboxgrid(此前仅在 main 上,现同步到本分支)
每行最多 4 个,超过则均匀分成多行(5→3+2;6→3+3;7→4+3;8→4+4;9→3+3+3…),
用法见 README 的「要点框自动排布」一节。

三、验证
本分支已用 TeX Live 2026 重新编译验证:0 错误、0 溢出;
颜色样例页与要点框排布页均正常,三个新颜色在 PDF 中实际生效。
This commit is contained in:
2026-10-13 08:46:29 +08:00
parent 2c15d8a2d2
commit f6f673169d
7 changed files with 325 additions and 12 deletions
+40
View File
@@ -89,6 +89,46 @@
\colorlet{oucsilver80}{oucsilver!80!white}
\colorlet{oucsilver90}{oucsilver!90!white}
%% OUC Pine 苍松绿
%% 苍松绿:取自中文传统色「苍松」。色相偏青的深绿,沉静稳重,
%% 与海大蓝同属冷色系但明显更深、更偏绿,适合与暖色交替使用。
\definecolor{oucpine}{RGB}{30, 86, 64}
\colorlet{oucpine10}{oucpine!10!white}
\colorlet{oucpine20}{oucpine!20!white}
\colorlet{oucpine30}{oucpine!30!white}
\colorlet{oucpine40}{oucpine!40!white}
\colorlet{oucpine50}{oucpine!50!white}
\colorlet{oucpine60}{oucpine!60!white}
\colorlet{oucpine70}{oucpine!70!white}
\colorlet{oucpine80}{oucpine!80!white}
\colorlet{oucpine90}{oucpine!90!white}
%% OUC Dusk 暮山紫
%% 暮山紫:取自中文传统色「暮山紫」(暮色中的远山)。深紫而不艳,
%% 兼具蓝色的沉稳与红色的温度,是很好的第三色。
\definecolor{oucdusk}{RGB}{92, 58, 118}
\colorlet{oucdusk10}{oucdusk!10!white}
\colorlet{oucdusk20}{oucdusk!20!white}
\colorlet{oucdusk30}{oucdusk!30!white}
\colorlet{oucdusk40}{oucdusk!40!white}
\colorlet{oucdusk50}{oucdusk!50!white}
\colorlet{oucdusk60}{oucdusk!60!white}
\colorlet{oucdusk70}{oucdusk!70!white}
\colorlet{oucdusk80}{oucdusk!80!white}
\colorlet{oucdusk90}{oucdusk!90!white}
%% OUC Amber 琥珀橙
%% 琥珀橙:取自传统色「琥珀」。高饱和的深橘,
%% 与文脉棕(低饱和的暗褐)在饱和度上拉开明显差距,两者不会混淆。
\definecolor{oucamber}{RGB}{196, 82, 16}
\colorlet{oucamber10}{oucamber!10!white}
\colorlet{oucamber20}{oucamber!20!white}
\colorlet{oucamber30}{oucamber!30!white}
\colorlet{oucamber40}{oucamber!40!white}
\colorlet{oucamber50}{oucamber!50!white}
\colorlet{oucamber60}{oucamber!60!white}
\colorlet{oucamber70}{oucamber!70!white}
\colorlet{oucamber80}{oucamber!80!white}
\colorlet{oucamber90}{oucamber!90!white}
%代码注释的颜色
\definecolor{mygreen}{rgb}{0,0.6,0}