我有一个假的光束机,我想复制子弹的风格。
另外,如果有人能告诉我使用的是什么字体,那就太好了!
以下对我不起作用:
\documentclass[serif]{beamer} \usepackage{mathpazo,setspace,amsmath,graphicx,color,multirow,enumerate,mathtools} \usetheme{CambridgeUS} \usecolortheme{dolphin} \title{Random Variables and Expectations} \useoutertheme{tree} \setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection} \setbeamercolor{itemize item}{fg=red} \setbeamercolor{itemize subitem}{fg=blue}
答案1
itemize items ball 模板定义在beamerbaseauxtemplates.sty
:
% Itemize items, ball
\defbeamertemplate{itemize item}{ball}{\raise0.2pt\beamer@usesphere{item projected}{bigsphere}}
\defbeamertemplate{itemize subitem}{ball}{\raise0.2pt\beamer@usesphere{subitem projected}{smallsphere}}
\defbeamertemplate{itemize subsubitem}{ball}{\raise0.2pt\beamer@usesphere{subsubitem projected}{smallsphere}}
如果你想改变 itemize 的颜色和枚举你可以使用
\setbeamercolor{item projected}{bg=red}
\setbeamercolor{subitem projected}{bg=green}
如果你想改变仅有的逐项列举(而不是枚举)然后使用
\setbeamercolor{itemize item}{bg=red}
\setbeamercolor{itemize subitem}{bg=green}
\makeatletter
\setbeamertemplate{itemize item}{\raise0.2pt\beamer@usesphere{itemize item}{bigsphere}}
\setbeamertemplate{itemize subitem}{\raise0.2pt\beamer@usesphere{itemize subitem}{smallsphere}}
\makeatother
代码:
\documentclass{beamer}
\usetheme{CambridgeUS}
\usecolortheme{spruce}
\usefonttheme{serif} % serif fonts for the entire beamer
\usepackage{amsmath}
\usepackage{enumerate} % To change the ennumerate style
\useoutertheme{tree}
\beamertemplatenavigationsymbolsempty %supressing navigation bar
\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection}
% change the item and subitem color separatly (itemize and enumerate)
\setbeamercolor{item projected}{bg=red}
\setbeamercolor{subitem projected}{bg=green}
%%% change the item and subitem color separatly (only itemize)
%%\setbeamercolor{itemize item}{bg=red}
%%\setbeamercolor{itemize subitem}{bg=green}
%%\makeatletter
%%\setbeamertemplate{itemize item}{\raise0.2pt\beamer@usesphere{itemize item}{bigsphere}}
%%\setbeamertemplate{itemize subitem}{\raise0.2pt\beamer@usesphere{itemize subitem}{smallsphere}}
%%\makeatother
\begin{document}
\begin{frame}{Probability}
\begin{itemize}
\item \textbf{Probability} expresses a degree of belief a person has about an event or a statement by a number between zero and one.
\item \textbf{Two Schools of Statistical Inference:}
\begin{itemize}
\item \textit{Bayesian Inference} - common usage.
\item \textit{Classical Inference} - The classical statistician uses the word probability only for an event which can be repeated, and interprets it as the limit of the empirical frequency of the event as the number of repititions increases indefinitely.
\end{itemize}
\item The two methods are complimentary and diferent situations call for different methods.
\end{itemize}
\end{frame}
\end{document}