Beamer 中枚举项的圆圈颜色

Beamer 中枚举项的圆圈颜色

我想在枚举项中使用圆圈的颜色。我该怎么做?这是我的代码:

\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}

\mode<article> % only for the article version
{
  \usepackage{fullpage}
  \usepackage{hyperref}
  \usepackage{enumerate}
}

\mode<presentation>
{
  \setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]

  \usetheme{JuanLesPins}
  \setbeamercovered{transparent}
  \usefonttheme{serif}
}

\usepackage[english]{babel}

\setbeamercovered{dynamic}

\setbeamertemplate{items}[circle]

\begin{document}

\begin{frame}

\begin{enumerate}

\item My first item...

\item In my second item, I want to use the color which is in item circles on this word {\color{blue}WORD}. How can I do it?

\end{enumerate}

\end{frame}

\end{document} 

答案1

您可以使用{\color{item projected.bg}WORD}来获取枚举项的颜色,然而对于大多数主题来说,简单的方法\structure{WORD}应该会给出相同的结果。

\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}

\mode<article> % only for the article version
{
  \usepackage{fullpage}
  \usepackage{hyperref}
  \usepackage{enumerate}
}

\mode<presentation>
{
  \setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]

  \usetheme{JuanLesPins}
  \setbeamercovered{transparent}
  \usefonttheme{serif}
}

\usepackage[english]{babel}

\setbeamercovered{dynamic}

\setbeamertemplate{items}[circle]



\begin{document}

\begin{frame}

\begin{enumerate}

\item My first item...

\item In my second item, I want to use the color which is in item circles on this word {\color{item projected.bg}WORD}. How can I do it?

\item In my second item, I want to use the color which is in item circles on this word \structure{WORD}. How can I do it?

\end{enumerate}

\end{frame}

\end{document} 

在此处输入图片描述

相关内容