答案1
您可以使用以下方式访问框架标题的颜色\usebeamercolor[fg]{frametitle}
:
\documentclass{beamer}
\usecolortheme{beaver}
\begin{document}
\begin{frame}
\frametitle{Duhamel integral}
\begin{quote}
The convolution integral we have written is known as the {\usebeamercolor[fg]{frametitle}\bfseries Duhamel integral} some more text
\end{quote}
\end{frame}
\end{document}
答案2
我猜你正在寻找新的环境,让我们称之为Quote
:
\documentclass{article}
\usepackage{xcolor}
\newenvironment{Quote}[3]%
{\par\vskip 5ex plus 2ex minus 1ex \sffamily\noindent%
\textcolor{purple}{\large\textbf{#1}}\par\bigskip
\noindent{#2}\par%
\medskip\noindent%
\footnotesize #3
}{\par\vskip 3ex plus 0.5ex minus 0.5ex
\noindent\ignorespacesafterend}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{Quote}
{Duhamel Integral}
{\lipsum[66]
\begin{equation}
x(t) = \frac{1}{m\omega_n}\int\dots
\end{equation}
\lipsum[66]}
{Jean-Marie Constant Duhamel (Sant-Malo, 1797-02-05 -- Paris 1872-04-029)}
\end{Quote}
\lipsum[2]
\end{document}