请问如何更改block颜色? #171
Answered
by
LogCreative
Amethystine-Yuan
asked this question in
提问区
-
看到beamer中有block alertblock exampleblock三种块,请问如何更改这些块的配色? |
Beta Was this translation helpful? Give feedback.
Answered by
LogCreative
Nov 11, 2024
Replies: 1 comment 1 reply
-
block 的颜色是在这里设置的,默认是跟随主题色而变。 SJTUBeamer/beamercolorthemesjtubeamer.sty Lines 64 to 74 in 1844558 那么在 % 区块标题色
\setbeamercolor{block title}{fg=white,bg=blue}
\setbeamercolor{block title alerted}{use=alerted text,
fg=white,bg=green}
\setbeamercolor{block title example}{use=example text,
fg=black!20,bg=black!30}
% 区块背景色
\setbeamercolor{block body}{parent=normal text,use=block title,
bg=block title.bg!15}
\setbeamercolor{block body alerted}{parent=normal text,
use=block title alerted,bg=block title alerted.bg!15}
\setbeamercolor{block body example}{parent=normal text,
use=block title example,bg=block title example.bg!15} 可能是你没有设置正确的键,可以检查一下。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Amethystine-Yuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
block 的颜色是在这里设置的,默认是跟随主题色而变。
SJTUBeamer/beamercolorthemesjtubeamer.sty
Lines 64 to 74 in 1844558
那么在
\use…