修訂 | f8c43ed9e1f27fef1784bfb6fce4c37fa8b1e7b8 (tree) |
---|---|
時間 | 2018-01-11 22:11:25 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A simple way to generate a dark theme for beamer.
@@ -0,0 +1,44 @@ | ||
1 | +\documentclass{beamer} | |
2 | +\usetheme{Warsaw} | |
3 | + | |
4 | +\setbeamercolor{normal text}{fg=white,bg=black!90} | |
5 | +\setbeamercolor{structure}{fg=white} | |
6 | + | |
7 | +\setbeamercolor{alerted text}{fg=red!85!black} | |
8 | + | |
9 | +\setbeamercolor{item projected}{use=item,fg=black,bg=item.fg!35} | |
10 | + | |
11 | +\setbeamercolor*{palette primary}{use=structure,fg=structure.fg} | |
12 | +\setbeamercolor*{palette secondary}{use=structure,fg=structure.fg!95!black} | |
13 | +\setbeamercolor*{palette tertiary}{use=structure,fg=structure.fg!90!black} | |
14 | +\setbeamercolor*{palette quaternary}{use=structure,fg=structure.fg!95!black,bg=black!80} | |
15 | + | |
16 | +\setbeamercolor*{framesubtitle}{fg=white} | |
17 | + | |
18 | +\setbeamercolor*{block title}{parent=structure,bg=black!60} | |
19 | +\setbeamercolor*{block body}{fg=black,bg=black!10} | |
20 | +\setbeamercolor*{block title alerted}{parent=alerted text,bg=black!15} | |
21 | +\setbeamercolor*{block title example}{parent=example text,bg=black!15} | |
22 | + | |
23 | + | |
24 | +\begin{document} | |
25 | + | |
26 | +\begin{frame} | |
27 | +\frametitle{Test Frame} | |
28 | +\framesubtitle{Test Frame} | |
29 | +Test | |
30 | +\begin{enumerate} | |
31 | +\item Test | |
32 | +\end{enumerate} | |
33 | +\begin{block}{Test} | |
34 | +Test | |
35 | +\end{block} | |
36 | +\end{frame} | |
37 | + | |
38 | +\end{document} | |
39 | + | |
40 | +enter image description here | |
41 | +%%% Local Variables: | |
42 | +%%% mode: latex | |
43 | +%%% TeX-master: t | |
44 | +%%% End: |