How can I modify the definition below to get an unfilled box with thick dashed lines around it and rounded corners? I don't want it to be numbered either.

  • For numbering look here as for unfilled i think you just need to remove backgroundcolor=gray!30 – SAM Jul 1 '16 at 17:25
  • @SAM Thanks. Got those... but the thick dashed lines are my current problem. – lexxie Jul 1 '16 at 17:31
  • To get rounded corner you need to load the package mdframed with parameter framemethod=tikz.

  • To get unfilled box you just have to omit the backgroundcolor parameter.

  • The way i found to get a dahsed line is by using tikzsetting, you can also customize the dashed style the way you want with dash pattern prameter, for making the line ticker you simply increase the value of the parameter line width related to tikzsetting.

  • To get unumbered theorem environment as explianed in this answer you need to add the command \theoremstyle{nonumberplain} before \newmdtheoremenv definition.


Here is the code:



\newmdtheoremenv[linewidth= 1pt,linecolor= white,%
tikzsetting = { draw=blue, line width = 3pt,dashed,%
dash pattern = on 4pt off 3pt},%

Some text.

A theorem.

If you are defining several theorem environments which have some common parameters, you can setup default parameter using the command \mdfsetup{...} in the preamble and dont worry about duplicate definition of a parameter because the default one (the one in \mdfsetup{...}) will be overrided by the one in \newmdtheoremenv[...], at the same time default parameters that they weren't defined in the theorem definition will be inherited.

Here's an example:



%default parameters
\mdfsetup{linewidth= 2pt,linecolor= black,%


\newmdtheoremenv[linecolor= blue]{theoremB}{theoremB}[section]

Using default parameters.

Using default parameters but with a \textcolor{blue}{blue} line color.

output example

  • works perfectly. – lexxie Jul 4 '16 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.