0% found this document useful (0 votes)
33 views4 pages

PSTricks Examples with mdframed

The document provides examples of using different styles and settings with the mdframed package when the framemethod is set to PSTricks. It includes 5 examples that demonstrate styles such as hidden lines, dashed lines, double lines, adding a shadow, and more. Each example displays the same mathematical text formatted within an mdframed environment using different parameter settings for the style.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

PSTricks Examples with mdframed

The document provides examples of using different styles and settings with the mdframed package when the framemethod is set to PSTricks. It includes 5 examples that demonstrate styles such as hidden lines, dashed lines, double lines, adding a shadow, and more. Each example displays the same mathematical text formatted within an mdframed environment using different parameter settings for the style.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

The mdframed package

Examples for framemethod=PSTricks

Marco Daniel 1.9b 2013/07/01

In this document I collect various examples for framemethod=PSTricks. Some


presented examples are more or less exorbitant.

Contents
1 Loading 1 Example 2 – hidden line + frame title 2
Example 3 – Dash Lines . . . . . . . . 2
2 Examples 1 Example 4 – Double Lines . . . . . . . 3
Example 1 – very simple . . . . . . . . 2 Example 5 – Shadow frame . . . . . . 3

1 Loading
In the preamble only the package mdframed width the option framemethod=PSTricks is
loaded. All other modifications will be done by \mdfdefinestyle or \mdfsetup.
Note
Every \global inside the examples is necessary to work with my own created environment
tltxmdfexample*.

2 Examples
All examples have the following settings:

\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
An \textit{inhomogeneous linear} differential equation has the form
\begin{align}
L[v ] = f,
\end{align}
where $L$ is a linear differential operator, $v$ is the dependent
variable, and $f$ is a given non−zero function of the independent
variables alone.
}
Example 1 – very simple 2 Examples

Example 1 – very simple

\global\mdfdefinestyle{exampledefault}{%
linecolor=red,middlelinewidth=3pt,%
leftmargin=1cm,rightmargin=1cm
}
\begin{mdframed}[style=exampledefault,roundcorner=5]
\ExampleText
\end{mdframed}

An inhomogeneous linear differential equation has the form

L[v] = f, (1)

where L is a linear differential operator, v is the dependent variable, and f is


a given non-zero function of the independent variables alone.

Example 2 – hidden line + frame title

\global\mdfapptodefinestyle{exampledefault}{%
topline=false,rightline=false,bottomline=false,
frametitlerule=true,innertopmargin=6pt,
outerlinewidth=6pt,outerlinecolor=blue,
pstricksappsetting={\addtopsstyle{mdfouterlinestyle}{linestyle=dashed}},
innerlinecolor=yellow,innerlinewidth=5pt}%
\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
\ExampleText
\end{mdframed}

Inhomogeneous linear
An inhomogeneous linear differential equation has the form

L[v] = f, (2)

where L is a linear differential operator, v is the dependent variable, and f


is a given non-zero function of the independent variables alone.

Example 3 – Dash Lines


[morekeywords=pstrickssetting,linestyle,dashed]

\global\mdfdefinestyle{exampledefault}{%

2013/07/01 revision: 212 mdframed-example-pstricks 2


Example 4 – Double Lines 2 Examples

pstrickssetting={linestyle=dashed,},linecolor=red,middlelinewidth=2pt}
\begin{mdframed}[style=exampledefault]
\ExampleText
\end{mdframed}

An inhomogeneous linear differential equation has the form

L[v] = f, (3)

where L is a linear differential operator, v is the dependent variable, and f is a given


non-zero function of the independent variables alone.

Example 4 – Double Lines

\global\mdfdefinestyle{exampledefault}{%
pstricksappsetting={\addtopsstyle{mdfmiddlelinestyle}{%
doubleline=true,doublesep=6pt,linewidth=4pt}},%
linecolor=red,middlelinewidth=16pt}
\begin{mdframed}[style=exampledefault]
\ExampleText
\end{mdframed}

An inhomogeneous linear differential equation has the form

L[v] = f, (4)

where L is a linear differential operator, v is the dependent variable, and f is a given


non-zero function of the independent variables alone.

Example 5 – Shadow frame

\newmdenv[shadow=true,
shadowsize=11pt,
linewidth=8pt,
frametitlerule=true,
roundcorner=10pt,
]{myshadowbox}
\begin{myshadowbox}[frametitle={Inhomogeneous linear}]
\ExampleText
\end{myshadowbox}

2013/07/01 revision: 212 mdframed-example-pstricks 3


Example 5 – Shadow frame 2 Examples

Inhomogeneous linear
An inhomogeneous linear differential equation has the form

L[v] = f, (5)

where L is a linear differential operator, v is the dependent variable, and f is a given


non-zero function of the independent variables alone.

2013/07/01 revision: 212 mdframed-example-pstricks 4

You might also like