感谢以下回答,
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{soul}
\setul{}{1.5pt}
\usepackage[tikz]{bclogo}
\renewcommand\bcStyleTitre[1]{\vskip-
0.8em\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}
\begin{bclogo}[couleur = gray!10, arrondi=0.1, logo=\bcattention, couleurBarre=Red]{Remark}
It is important that...
\end{bclogo}
\begin{bclogo}[couleur = gray!30, arrondi =0.1 ,logo=\bcfleur]{Thanks!}
$$
$$
\begin{center}
\textcolor{blue}{\textbf{{Thank You for your attention !}}}
\end{center}
$$
$$
\end{bclogo}
\end{frame}
\end{document}
我明白了
但是,我想缩小“为什么”和“问题”之间的距离。我还想在标题中使用不同的颜色,如下图所示
答案1
离题评论:
不要$$...$$
用于方程式——唯一比这更糟糕的事情是用它来面对间距!!!
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{soul}
\setul{}{1.5pt}
\usepackage[tikz]{bclogo}
\colorlet{bctitle}{Maroon}
\renewcommand\bcStyleTitre[1]{\vskip-0.8em\bfseries\color{bctitle}\ul{#1}\vskip-0.7em}
\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}
{
\colorlet{bctitle}{red}
\begin{bclogo}[couleur = gray!10, arrondi=0.1, logo=\bcattention, couleurBarre=Red]{Remark}
It is important that...
\end{bclogo}
}
{
\colorlet{bctitle}{blue}
\begin{bclogo}[couleur = gray!30, arrondi =0.1 ,logo=\bcfleur]{Thanks!}
\bigskip
\begin{center}
\textcolor{blue}{\textbf{{Thank You for your attention !}}}
\end{center}
\bigskip
\end{bclogo}
}
\end{frame}
\end{document}