summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex66
1 files changed, 41 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
index e116dcbd44d..e347be7342e 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
@@ -1,3 +1,4 @@
+
\setcounter{errorcontextlines}{999}
\documentclass[parskip=false,english,11pt]{ltxmdf}
@@ -5,8 +6,26 @@
\newcommand\Loadedframemethod{PSTricks}
\usepackage[framemethod=\Loadedframemethod]{mdframed}
-\usepackage{showexpl}
-\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},}
+\surroundwithmdframed[middlelinecolor=ltxmdfblue,middlelinewidth=1pt,%
+ roundcorner=10pt,innertopmargin=0pt,%
+ leftmargin=1cm,rightmargin=1cm,%
+ innerleftmargin=-15pt,innerrightmargin=-15pt,%
+ ignorelastdescenders,%
+ settings={\lstset{resetmargins}},%
+ skipbelow=\topskip,skipabove=\topskip,%
+ innerbottommargin=0pt,backgroundcolor=gray!10]%
+ {tltxmdfexample}
+
+\newmdenv[middlelinecolor=ltxmdfblue,middlelinewidth=1pt,%
+ roundcorner=10pt,innertopmargin=0pt,%
+ leftmargin=1cm,rightmargin=1cm,%
+ innerleftmargin=-15pt,innerrightmargin=-15pt,%
+ ignorelastdescenders,%
+ settings={\lstset{resetmargins}},%
+ skipbelow=\topskip,skipabove=\topskip,%
+ innerbottommargin=0pt,backgroundcolor=gray!10]%
+ {tltxmdfhighlight}
+\def\highlightinputenv{tltxmdfhighlight}
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
@@ -44,8 +63,8 @@ In the preamble only the package \Pack{mdframed} width the option
done by \Cmd{mdfdefinestyle} or \Cmd{mdfsetup}.
{\large\color{red!50!black}
-\NOTE Every \Cmd{global} inside the examples is necessary to work with the
-package \Pack{showexpl}.}
+\NOTE Every \Cmd{global} inside the examples is necessary to work with my own
+created environment \Env{tltxmdfexample*}.}
\section{Examples}
All examples have the following settings:
@@ -53,20 +72,20 @@ All examples have the following settings:
\begin{tltxmdfexample}
\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.
+ 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.
}
\end{tltxmdfexample}
+
\clearpage
\Examplesec{very simple}
-\begin{LTXexample}
+\begin{tltxmdfexample*}
\global\mdfdefinestyle{exampledefault}{%
linecolor=red,middlelinewidth=3pt,%
leftmargin=1cm,rightmargin=1cm
@@ -74,10 +93,10 @@ function of the independent variables alone.
\begin{mdframed}[style=exampledefault,roundcorner=5]
\ExampleText
\end{mdframed}
-\end{LTXexample}
+\end{tltxmdfexample*}
\Examplesec{hidden line + frame title}
-\begin{LTXexample}[morekeywords={innerlinecolor,addtopsstyle,mdfouterlinestyle,
+\begin{tltxmdfexample*}[morekeywords={innerlinecolor,addtopsstyle,mdfouterlinestyle,
linestyle}]
\global\mdfapptodefinestyle{exampledefault}{%
topline=false,rightline=false,bottomline=false,
@@ -88,21 +107,19 @@ function of the independent variables alone.
\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
\ExampleText
\end{mdframed}
-\end{LTXexample}
-
-\clearpage
+\end{tltxmdfexample*}
\Examplesec{Dash Lines}[morekeywords={pstrickssetting,linestyle,dashed}]
-\begin{LTXexample}
+\begin{tltxmdfexample*}
\global\mdfdefinestyle{exampledefault}{%
pstrickssetting={linestyle=dashed,},linecolor=red,middlelinewidth=2pt}
\begin{mdframed}[style=exampledefault]
\ExampleText
\end{mdframed}
-\end{LTXexample}
+\end{tltxmdfexample*}
\Examplesec{Double Lines}
-\begin{LTXexample}[morekeywords={addtopsstyle,mdfmiddlelinestyle,
+\begin{tltxmdfexample*}[morekeywords={addtopsstyle,mdfmiddlelinestyle,
doubleline,doublesep}]
\global\mdfdefinestyle{exampledefault}{%
pstricksappsetting={\addtopsstyle{mdfmiddlelinestyle}{%
@@ -111,11 +128,10 @@ function of the independent variables alone.
\begin{mdframed}[style=exampledefault]
\ExampleText
\end{mdframed}
-\end{LTXexample}
+\end{tltxmdfexample*}
-\clearpage
\Examplesec{Shadow frame}
-\begin{LTXexample}[morekeywords={shadow,shadowsize,myshadowbox}]
+\begin{tltxmdfexample*}[morekeywords={shadow,shadowsize,myshadowbox}]
\newmdenv[shadow=true,
shadowsize=11pt,
linewidth=8pt,
@@ -125,6 +141,6 @@ function of the independent variables alone.
\begin{myshadowbox}[frametitle={Inhomogeneous linear}]
\ExampleText
\end{myshadowbox}
-\end{LTXexample}
+\end{tltxmdfexample*}
\end{document}
\endinput