5

I am using \begin{framed} ... \end{framed} in my presentation, does anyone know how to make the frame dashed?

N.N.
  • 36,163
SoftTimur
  • 19,767
  • Looking at the documentation of framed, this doesn't seem to be a feature natively supported by the package. – doncherry Aug 29 '11 at 17:25
  • 2
    There actually is a near-duplicate for this question: http://tex.stackexchange.com/questions/11291/dashed-box-environment – doncherry Aug 29 '11 at 17:35

1 Answers1

11

Here a solution with 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}

Sorry for the advertising.

enter image description here

EDIT: You can define the special environment in the header with the following code:

\newmdenv[tikzsetting={draw=blue,dashed,line width=2pt,dash pattern = on 10pt off 3pt},%
linecolor=yellow,backgroundcolor=yellow,outerlinewidth=1pt]{beamerframe}

Now you can use the environment as usual.

\begin{beamerframe}
Text Text Text Text Text Text Text Text 
\end{beamerframe}
Marco Daniel
  • 95,681