summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex23
1 files changed, 12 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
index 72eae7ec695..b486389e415 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
@@ -1,9 +1,6 @@
-%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\setcounter{errorcontextlines}{999}
\documentclass[parskip=false,english,11pt,lipsum=true]{ltxmdf}
-\GetIdInfo$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
- {documentation of mdframed}
\usepackage{showexpl}
\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},}
@@ -15,7 +12,7 @@
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
-\date{\ExplFileDate}
+\date{\mdfmaindate}
\version{\mdversion}
\introduction{In this document I collect various examples for
\Opt{framemethod=\Loadedframemethod}.
@@ -89,14 +86,14 @@ Here the solution which can be decorate as usual.
With the new command \Cmd{surroundwithmdframed} you can use
\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},
- morekeywords={lstlisting}]
+ morekeywords={listings}]
\surroundwithmdframed{listings}
\end{tltxmdfexample}
\Examplesec{Package multicol}
How I wrote in \enquote{Known Problems} you can't combine \Pack{multicol} with
\Pack{mdframed}. In a simple way without any breaks you can use:
-\begin{LTXexample}
+\begin{LTXexample}[morekeywords={multicols}]
\begin{multicols}{2}
\lipsum[1]
\begin{mdframed}
@@ -132,11 +129,11 @@ How I wrote in \enquote{Known Problems} you can't combine \Pack{multicol} with
\clearpage
\onecolumn
\Examplesec{Working inside enumerate}
-\begin{LTXexample}
+\begin{LTXexample}[morekeywords={enumerate}]
Text Text Text Text Text Text Text Text
\begin{enumerate}
\item in the following \ldots
- \begin{mdframed}[linecolor=blue,linewidth=2]
+ \begin{mdframed}[linecolor=blue,middlelinewidth=2]
\ExampleText
\end{mdframed}
\item \lipsum[2]
@@ -179,7 +176,11 @@ Text Text Text Text Text Text
\clearpage
\Examplesec{digression-environement inspired by Tobias Weh}
-\begin{lstlisting}
+\begin{lstlisting}[morekeywords={%
+ font,anchor,let,in,arrow,round,cap,controls,coordinate,%
+ excursus,head,arrows,calc,line,width,and,to,digressionarrows,%
+ base,west},%
+ moretexcs={usetikzlibrary}]
\usetikzlibrary{calc,arrows}
\tikzset{
excursus arrow/.style={%
@@ -285,7 +286,7 @@ Text Text Text Text Text Text
\end{mdframed}
\Examplesec{Theorem style shading background}
-\begin{LTXexample}
+\begin{LTXexample}[morekeywords={top,bottom,Theorem,shadow,alternativtheorem}]
\mdtheorem[%
apptotikzsetting={\tikzset{mdfbackground/.append style =%
{top color=yellow!40!white,
@@ -293,7 +294,7 @@ Text Text Text Text Text Text
mdfframetitlebackground/.append style =%
{top color=purple!40!white,
bottom color=purple!80!black}
- }
+ }%
},
,roundcorner=10pt,middlelinewidth=2pt,
shadow=true,frametitlerule=true,frametitlerulewidth=4pt,