15.11.2014 Views

Documenation of mdframed

Documenation of mdframed

Documenation of mdframed

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. Syntax<br />

demonstrate its properties.<br />

Theorem 1.1 (Pythagorean theorem) In any right triangle, the area<br />

<strong>of</strong> the square whose side is the hypotenuse is equal to the sum <strong>of</strong> the areas<br />

<strong>of</strong> the squares whose sides are the two legs.<br />

a 2 + b 2 = c 2<br />

The frame was defined with the following settings.<br />

\newmdtheoremenv [%<br />

outerlinewidth = 2 ,%<br />

roundcorner = 10 pt ,%<br />

leftmargin = 40 ,%<br />

rightmargin = 40 ,%<br />

backgroundcolor = y e l l o w ! 4 0 ,%<br />

o u t e r l i n e c o l o r = b l u e ! 7 0 ! black ,%<br />

innertopmargin = \topskip ,%<br />

s p l i t t o p s k i p = \topskip ,%<br />

ntheorem = t r u e ,%<br />

] { theorem }{ Theorem } [ s e c t i o n ]<br />

\begin { theorem } [ P y t h a g o r e a n theorem ]<br />

. . .<br />

\end{theorem}<br />

2. Syntax<br />

Required packages by <strong>mdframed</strong><br />

The package itself loads the packages<br />

kvoptions xparse etoolbox color.<br />

Depending on the option framemthod <strong>mdframed</strong> will load<br />

Load the package as usual:<br />

xcolor tikz pstricks.<br />

\usepackage[]{<strong>mdframed</strong>}<br />

Only the option framemethod should be loaded by the optional argument <strong>of</strong> \usepackage. All<br />

other options should be loaded with \mdfsetup or related environments. The package should be<br />

loaded after amsthm if you need the package.<br />

Provided environment<br />

The package defines only one environment with the following syntax:<br />

\begin{<strong>mdframed</strong>}[]<br />

2013/07/01 revision: 212 <strong>mdframed</strong> 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!