![如何将 ITEMIZE ITEM STYLE 更改为如图所示的带有阴影的球?](https://linux22.com/image/353211/%E5%A6%82%E4%BD%95%E5%B0%86%20ITEMIZE%20ITEM%20STYLE%20%E6%9B%B4%E6%94%B9%E4%B8%BA%E5%A6%82%E5%9B%BE%E6%89%80%E7%A4%BA%E7%9A%84%E5%B8%A6%E6%9C%89%E9%98%B4%E5%BD%B1%E7%9A%84%E7%90%83%EF%BC%9F.png)
答案1
以下是您图片中的两张截图:
(使用原始文件,可以制作出质量更好的图像)
\documentclass{beamer}
\begin{document}
\begin{frame}
\setbeamertemplate{itemize item}{\includegraphics[height=0.6em]{blueball}}
\setbeamertemplate{itemize subitem}{\includegraphics[height=0.6em]{redball}}
\begin{itemize}
\item first item
\item second item
\begin{itemize}
\item blub
\end{itemize}
\end{itemize}
\end{frame}
\end{document}
第二种解决方案使用tikz
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shadows}
\setbeamertemplate{itemize item}{%
\begin{tikzpicture}
\shade[ball color=blue!50!white, preaction={fill=black,
opacity=.25,transform canvas={xshift=1mm,yshift=-1mm, yscale=0.5}}] (0,0) circle (0.6ex);
\end{tikzpicture}
}
\setbeamertemplate{itemize subitem}{%
\begin{tikzpicture}
\shade[ball color=red!50!white, preaction={fill=black,
opacity=.25,transform canvas={xshift=1mm,yshift=-1mm, yscale=0.5}}] (0,0) circle (0.6ex);
\end{tikzpicture}
}
\begin{document}
\begin{frame}
\begin{itemize}
\item first item
\item second item
\begin{itemize}
\item first item
\item second item
\end{itemize}
\end{itemize}
\end{frame}
\end{document}