![更改投影机中逐项显示项目的颜色](https://linux22.com/image/260098/%E6%9B%B4%E6%94%B9%E6%8A%95%E5%BD%B1%E6%9C%BA%E4%B8%AD%E9%80%90%E9%A1%B9%E6%98%BE%E7%A4%BA%E9%A1%B9%E7%9B%AE%E7%9A%84%E9%A2%9C%E8%89%B2.png)
我想在整个演示文稿中更改项目符号的颜色itemize item
。itemize subitem
我想知道如何做到这一点。这是我的 MWE:
\documentclass [11 pt, xcolor=pdftex,x11names,table]{beamer}
\usepackage{pgf, pgfpages}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{beamerhighlight}
\usepackage{colortbl}
\usepackage{color}
\usepackage{pdfpages}
\usepackage[absolute,overlay]{textpos}
\usepackage{url}
\usepackage{graphicx}
\mode<presentation>
{
\usetheme{Madrid}
\usefonttheme{professionalfonts}
\setbeamertemplate{itemize item}{$\blacksquare$}
\setbeamertemplate{itemize subitem}{$\blacktriangleright$}
}
\usepackage{hyperref}
\begin{document}
\begin{frame}
\begin{itemize}
\item hey
\end{itemize}
\end{frame}
\end {document}
答案1
怎么样
\setbeamertemplate{itemize item}{\color{yellow}$\blacksquare$}
\setbeamertemplate{itemize subitem}{\color{orange}$\blacktriangleright$}
平均能量损失
\documentclass {beamer}
\mode<presentation>
{
\usetheme{Madrid}
\usefonttheme{professionalfonts}
\setbeamertemplate{itemize item}{\color{yellow}$\blacksquare$}
\setbeamertemplate{itemize subitem}{\color{orange}$\blacktriangleright$}
}
\usepackage{hyperref}
\begin{document}
\begin{frame}
\begin{itemize}
\item hey
\begin{itemize}
\item hey
\end{itemize}
\end{itemize}
\end{frame}
\end {document}
答案2
在 beamer 中,可以使用 将 itemize 符号的颜色设置为任何其他颜色\setbeamercolor
,通过 将符号本身设置为\setbeamertemplate
。
使用以下代码来获得上述结果。
\documentclass{beamer}
\setbeamercolor{itemize item}{fg=red}
\setbeamercolor{itemize subitem}{fg=blue}
\setbeamercolor{itemize subsubitem}{fg=cyan}
\setbeamertemplate{itemize item}[square]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{itemize subsubitem}[triangle]
\begin{document}
\begin{frame}{itemize colors and symbols}
\begin{itemize}
\item a red square
\begin{itemize}
\item a blue circle
\begin{itemize}
\item a cyan triangle
\end{itemize}
\end{itemize}
\end{itemize}
\end{frame}
\end{document}
答案3
这对我有用,至少在 beamerposter 中是这样:
\setbeamercolor{itemize item}{fg=yellow,bg=white}
。