\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
\usepackage[tikz]{bclogo}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{%
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
\begin{document}
\begin{frame}{}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{Question}
Why
$$r_e(\mathbf{T})\geq r(\mathbf{T}) \;?$$
\end{bclogo}
\end{frame}
\end{document}
编译后我得到
但是我想改变问题字的颜色,并给它加下划线,如下图所示
答案1
正如 JPi 的答案一样,使用soul
包来强调标题,但使用bclogo
机制来全局自定义标题
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{soul}
\setul{}{1.5pt}
\usepackage[tikz]{bclogo}
\renewcommand\bcStyleTitre[1]{\vskip-0.5em\bfseries\color{Maroon}\ul{#1}\vskip0em}
\begin{document}
\begin{frame}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{Question}
Why
\[
r_e(\mathbf{T})\geq r(\mathbf{T}) \;?
\]
\end{bclogo}
\end{frame}
\end{document}
答案2
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
\usepackage[tikz]{bclogo}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
\usepackage{soul}
\begin{document}
\setul{}{1.5pt}
\begin{frame}{}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{\textcolor{red}{\ul{Question}}}
Why
\[r_e(\mathbf{T})\geq r(\mathbf{T}) \;?\]
\end{bclogo}
\end{frame}
\end{document}