新增三个深色颜色(苍松绿 / 暮山紫 / 琥珀橙)并同步要点框自动排布
一、新增颜色(放在 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 2022 重新编译验证:0 错误、0 溢出; 颜色样例页与要点框排布页均正常,三个新颜色在 PDF 中实际生效。
This commit is contained in:
+41
-1
@@ -99,7 +99,7 @@
|
||||
\frametitle{颜色}
|
||||
%\framesubtitle{基本颜色}
|
||||
|
||||
根据海大公布的标准颜色,定义了相关颜色,主要包括海大蓝、海大天蓝、海大红、樱缤粉、文脉棕、专金、专银。其中文名称和代码如表\ref{table:color}所示。\\
|
||||
根据海大公布的标准颜色,定义了相关颜色,主要包括海大蓝、海大天蓝、海大红、樱缤粉、文脉棕、专金、专银,以及后加的苍松绿、暮山紫、琥珀橙。其中文名称和代码如表\ref{table:color}所示。\\
|
||||
当然,也可以使用LaTex自带的颜色,例如white、black等。
|
||||
|
||||
\begin{table}
|
||||
@@ -114,12 +114,52 @@
|
||||
\crule[oucred]{10pt}{10pt} & oucred & 海大红 \\
|
||||
\crule[ouccherry]{10pt}{10pt} & ouccherry & 樱缤粉 \\
|
||||
\crule[oucbrown]{10pt}{10pt} & oucbrown & 文脉棕 \\
|
||||
\end{tabular}
|
||||
\hspace{1.6em}
|
||||
\begin{tabular}{ccc}
|
||||
\textbf{颜色} & \textbf{名称} & \textbf{中文名}\\\toprule
|
||||
\crule[oucgolden]{10pt}{10pt} & oucgolden & 专金 \\
|
||||
\crule[oucsilver]{10pt}{10pt} & oucsilver & 专银 \\
|
||||
\crule[oucpine]{10pt}{10pt} & oucpine & 苍松绿 \\
|
||||
\crule[oucdusk]{10pt}{10pt} & oucdusk & 暮山紫 \\
|
||||
\crule[oucamber]{10pt}{10pt} & oucamber & 琥珀橙 \\
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
\end{frame}
|
||||
|
||||
\subsubsection{新增颜色的应用}
|
||||
|
||||
\begin{frame}
|
||||
\frametitle{新增颜色的应用}
|
||||
|
||||
后加的三种颜色都是\textbf{较深的颜色},和白色文字有足够对比度,
|
||||
可以直接当作色块底色使用,也可以像其他颜色一样用它的浅色等级(如 \texttt{oucpine20})作背景。\\
|
||||
|
||||
\begin{columns}
|
||||
\begin{column}{0.32\textwidth}
|
||||
\begin{pointbox}[苍松绿]{oucpine}{74pt}
|
||||
沉静稳重\\
|
||||
适合与暖色交替\\
|
||||
色相偏青的深绿
|
||||
\end{pointbox}
|
||||
\end{column}
|
||||
\begin{column}{0.32\textwidth}
|
||||
\begin{pointbox}[暮山紫]{oucdusk}{74pt}
|
||||
深紫而不艳\\
|
||||
冷暖之间的过渡\\
|
||||
适合做第三色
|
||||
\end{pointbox}
|
||||
\end{column}
|
||||
\begin{column}{0.32\textwidth}
|
||||
\begin{pointbox}[琥珀橙]{oucamber}{74pt}
|
||||
高饱和的深橘\\
|
||||
与文脉棕差别明显\\
|
||||
强调时比红色柔和
|
||||
\end{pointbox}
|
||||
\end{column}
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
|
||||
\subsubsection{颜色等级}
|
||||
|
||||
\begin{frame}
|
||||
|
||||
Reference in New Issue
Block a user