我在演示中使用\begin{framed} ... \end{framed}
,有人知道如何制作框架吗虚线?
答案1
这里有一个解决方案mdframed
\documentclass[english]{beamer}
\usepackage[style=1]{mdframed}[2011/08/22]
\begin{document}
\begin{frame}
\begin{mdframed}[tikzsetting={draw=blue,dashed,line width=2pt,dash pattern = on 10pt off 3pt},linecolor=yellow,backgroundcolor=yellow,outerlinewidth=1pt]
Text Text Text Text Text Text Text Text
\end{mdframed}
\begin{mdframed}[tikzsetting={draw=blue,dashed,line width=2pt,dash pattern = on 10pt off 3pt},linecolor=yellow,backgroundcolor=yellow,outerlinewidth=1pt]
Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text
\end{mdframed}
\end{frame}
\end{document}
抱歉,我是做广告的。
编辑:您可以使用以下代码在标题中定义特殊环境:
\newmdenv[tikzsetting={draw=blue,dashed,line width=2pt,dash pattern = on 10pt off 3pt},%
linecolor=yellow,backgroundcolor=yellow,outerlinewidth=1pt]{beamerframe}
现在您可以照常使用该环境。
\begin{beamerframe}
Text Text Text Text Text Text Text Text
\end{beamerframe}