我的乳胶代码如下:
\documentclass{beamer}
\begin{document}
\title{Simple Beamer Class}
\author{Sascha Frank}
\date{\today}
\begin{definition}
Two graphs $G=(V,E_1)$ and $H= (V,E_2)$ are said to be isomorphic if there exist a bijective map $\phi : V \mapsto V$ that preserve edges and non-edges
\end{definition}
}
我已经看过这个答案,但它的代码在 beamer 类中不起作用。我想要像这样的盒子这。
答案1
周围已经有一个盒子,只是颜色尚未设置。
\documentclass{beamer}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\begin{document}
\title{Simple Beamer Class}
\author{Sascha Frank}
\date{\today}
\begin{frame}
\begin{definition}
Two graphs $G=(V,E_1)$ and $H= (V,E_2)$ are said to be isomorphic if there exist a bijective map $\phi : V \mapsto V$ that preserve edges and non-edges
\end{definition}
\end{frame}
\end{document}
如果盒子只是框架,https://tex.stackexchange.com/a/400987/36296或者https://tex.stackexchange.com/a/367049/36296有帮助。