summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-23 23:37:53 +0000
committerKarl Berry <karl@freefriends.org>2012-07-23 23:37:53 +0000
commit5a5ae35291039c9f1bf0f25c40b5adb3ea956920 (patch)
tree066ad9500ae348132d9434b11b3b12d5021ed5fd /Master/texmf-dist/doc/latex
parent55994f4bf1d4081cd3a038c425f6de7c173629bb (diff)
mdframed (4jun12)
git-svn-id: svn://tug.org/texlive/trunk@27127 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdfbin269981 -> 271171 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex28
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdfbin76950 -> 69205 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex19
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdfbin231529 -> 258567 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex94
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdfbin286150 -> 286480 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex23
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed.pdfbin812313 -> 883618 bytes
9 files changed, 126 insertions, 38 deletions
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf
index e12c426ee8f..b1d2d276fef 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex
index 1783e4a276a..7aba53867bf 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex
@@ -1,7 +1,8 @@
-%%$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\setcounter{errorcontextlines}{999}
\documentclass[parskip=false,english,11pt]{ltxmdf}
-\ltxmdfsetifoot $Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+\GetIdInfo$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
+ {documentation of mdframed}
\usepackage{showexpl}
\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},}
@@ -12,10 +13,11 @@
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
-\date{\mdfdateID$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $}
+\date{\ExplFileDate}
\version{\mdversion}
-\introduction{In this document I collect various examples for \Opt{framemethod=\Loadedframemethod}.
-Some presented examples are more or less exorbitant.}
+\introduction{In this document I collect various examples for
+ \Opt{framemethod=\Loadedframemethod}.
+ Some presented examples are more or less exorbitant.}
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
@@ -39,10 +41,13 @@ Some presented examples are more or less exorbitant.}
\begin{document}
\maketitle
\section{Loading}
-In the preamble only the package \Pack{mdframed} width the option \Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \Cmd{mdfdefinestyle} or \Cmd{mdfsetup}.
+In the preamble only the package \Pack{mdframed} width the option
+\Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be
+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 the
+package \Pack{showexpl}.}
\section{Examples}
All examples have the following settings:
@@ -99,7 +104,9 @@ function of the independent variables alone.
\begin{LTXexample}
\begin{mdframed}[userdefinedwidth=6cm,align=center,
linecolor=blue,linewidth=4pt]
-\includegraphics[width=\linewidth]{donald-duck}
+\IfFileExists{donald-duck.jpg}%
+ {\includegraphics[width=\linewidth]{donald-duck}}%
+ {\rule{\linewidth}{4cm}}%
\end{mdframed}
\end{LTXexample}
@@ -159,7 +166,10 @@ function of the independent variables alone.
\clearpage
\Examplesec{hide only a part of a line}
-The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment}{Theorem decorations that stay with theorem environment}
+The example below is inspired by the following post on StackExchange
+\href{http://tex.stackexchange.com/questions/24101/theorem-decorations^^A
+ -that-stay-with-theorem-environment}%
+ {Theorem decorations that stay with theorem environment}
\begin{LTXexample}
\makeatletter
\newlength{\interruptlength}
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf
index e593ef959f8..a66b5a606e6 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf
Binary files differ
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 76a3e5e93c1..f06c52e1635 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
@@ -1,7 +1,8 @@
-%%$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\setcounter{errorcontextlines}{999}
\documentclass[parskip=false,english,11pt]{ltxmdf}
-\ltxmdfsetifoot$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+\GetIdInfo$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
+ {documentation of mdframed}
\lstDeleteShortInline{|}
\newcommand\Loadedframemethod{PSTricks}
@@ -13,10 +14,11 @@
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
-\date{\mdfdateID$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $}
+\date{\ExplFileDate}
\version{\mdversion}
-\introduction{In this document I collect various examples for \Opt{framemethod=\Loadedframemethod}.
-Some presented examples are more or less exorbitant.}
+\introduction{In this document I collect various examples for
+ \Opt{framemethod=\Loadedframemethod}.
+ Some presented examples are more or less exorbitant.}
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
@@ -40,10 +42,13 @@ Some presented examples are more or less exorbitant.}
\begin{document}
\maketitle
\section{Loading}
-In the preamble only the package \Pack{mdframed} width the option \Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \Cmd{mdfdefinestyle} or \Cmd{mdfsetup}.
+In the preamble only the package \Pack{mdframed} width the option
+\Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be
+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 the
+package \Pack{showexpl}.}
X
\section{Examples}
All examples have the following settings:
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf
index 6fd2b71c07d..8ad20b90300 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf
Binary files differ
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 2d4146bf2a5..72eae7ec695 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
@@ -1,23 +1,25 @@
-%%$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\setcounter{errorcontextlines}{999}
-\documentclass[parskip=false,english,11pt,ltxlipsum]{ltxmdf}
-\ltxmdfsetifoot $Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+\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={}},}
\usepackage{tikz}
-\usetikzlibrary{calc,arrows}
+\usetikzlibrary{calc,arrows,shadings,shadows}
\newcommand\Loadedframemethod{tikz}
\usepackage[framemethod=\Loadedframemethod]{mdframed}
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
-\date{\mdfdateID$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $}
+\date{\ExplFileDate}
\version{\mdversion}
-\introduction{In this document I collect various examples for \Opt{framemethod=\Loadedframemethod}.
-Some presented examples are more or less exorbitant.}
+\introduction{In this document I collect various examples for
+ \Opt{framemethod=\Loadedframemethod}.
+ Some presented examples are more or less exorbitant.}
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
@@ -41,10 +43,13 @@ Some presented examples are more or less exorbitant.}
\begin{document}
\maketitle
\section{Loading}
-In the preamble only the package \Pack{mdframed} width the option \Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \Cmd{mdfdefinestyle} or \Cmd{mdfsetup}.
+In the preamble only the package \Pack{mdframed} width the option
+\Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be
+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 the
+package \Pack{showexpl}.}
\section{Examples}
All examples have the following settings:
@@ -64,11 +69,16 @@ function of the independent variables alone.
\end{tltxmdfexample}
\clearpage
\Examplesec{Package listings}
-The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/27673/background-overflows-when-using-rounded-corners-for-listings-package-listings}{Background overflows when using rounded corners for listings (package: `listings`)}
+The example below is inspired by the following post on StackExchange
+\href{http://tex.stackexchange.com/questions/27673/background-overflows-^^A
+ when-using-rounded-corners-for-listings-package-listings}%
+ {Background overflows when using rounded corners for listings
+ (package: `listings`)}
Here the solution which can be decorate as usual.
-\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}]
+\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},
+ morekeywords={lstlisting}]
\BeforeBeginEnvironment{lstlisting}{%
\begin{mdframed}[<modification>]%
\vspace{-0.7em}}
@@ -78,12 +88,14 @@ Here the solution which can be decorate as usual.
\end{tltxmdfexample}
With the new command \Cmd{surroundwithmdframed} you can use
-\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}]
+\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},
+ morekeywords={lstlisting}]
\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:
+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{multicols}{2}
\lipsum[1]
@@ -132,7 +144,41 @@ Text Text Text Text Text Text Text Text
Text Text Text Text Text Text
\end{LTXexample}
\clearpage
-\Examplesec{digression-environement inspired by Tobias Schwan}
+\Examplesec{Position a specific symbol at a line}
+\begin{LTXexample}
+\tikzset{
+ warningsymbol/.style={
+ rectangle,draw=red,
+ fill=white,scale=1,
+ overlay}}
+\mdfdefinestyle{warning}{%
+ hidealllines=true,leftline=true,
+ skipabove=12,skipbelow=12pt,
+ innertopmargin=0.4em,%
+ innerbottommargin=0.4em,%
+ innerrightmargin=0.7em,%
+ rightmargin=0.7em,%
+ innerleftmargin=1.7em,%
+ leftmargin=0.7em,%
+ middlelinewidth=.2em,%
+ linecolor=red,%
+ fontcolor=red,%
+ firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$)
+ node[warningsymbol] {\$};},%
+ secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$)
+ node[warningsymbol] {\$};},%
+ middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$)
+ node[warningsymbol] {\$};},%
+ singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$)
+ node[warningsymbol] {\$};},%
+}
+\begin{mdframed}[style=warning]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\clearpage
+\Examplesec{digression-environement inspired by Tobias Weh}
\begin{lstlisting}
\usetikzlibrary{calc,arrows}
\tikzset{
@@ -237,5 +283,25 @@ Text Text Text Text Text Text
\begin{mdframed}[style=digressionarrows]
\ExampleText
\end{mdframed}
+
+\Examplesec{Theorem style shading background}
+\begin{LTXexample}
+\mdtheorem[%
+ apptotikzsetting={\tikzset{mdfbackground/.append style =%
+ {top color=yellow!40!white,
+ bottom color=yellow!80!black},
+ mdfframetitlebackground/.append style =%
+ {top color=purple!40!white,
+ bottom color=purple!80!black}
+ }
+ },
+ ,roundcorner=10pt,middlelinewidth=2pt,
+ shadow=true,frametitlerule=true,frametitlerulewidth=4pt,
+ innertopmargin=10pt,%
+ ]{alternativtheorem}{Theorem}
+\begin{alternativtheorem}[Inhomogeneous linear]
+\ExampleText
+\end{alternativtheorem}
+\end{LTXexample}
\end{document}
\endinput
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf
index 7b09f04abda..4198c38f488 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex
index bbf84bdcc62..de0825c52f1 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex
@@ -1,7 +1,8 @@
-%%$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\setcounter{errorcontextlines}{999}
\documentclass[parskip=false,english,11pt]{ltxmdf}
-\ltxmdfsetifoot $Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $
+\GetIdInfo$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
+ {documentation of mdframed}
\usepackage{showexpl}
\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},}
@@ -12,10 +13,11 @@
\title{The \Pack{mdframed} package}
\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}}
\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
-\date{\mdfdateID$Id: mdframed.dtx 375 2012-04-08 10:52:22Z marco $}
+\date{\ExplFileDate}
\version{\mdversion}
-\introduction{In this document I collect various examples for \Opt{framemethod=\Loadedframemethod}.
-Some presented examples are more or less exorbitant.}
+\introduction{In this document I collect various examples for
+ \Opt{framemethod=\Loadedframemethod}.
+ Some presented examples are more or less exorbitant.}
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
@@ -39,10 +41,13 @@ Some presented examples are more or less exorbitant.}
\begin{document}
\maketitle
\section{Loading}
-In the preamble only the package \Pack{mdframed} width the option \Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \Cmd{mdfdefinestyle} or \Cmd{mdfsetup}.
+In the preamble only the package \Pack{mdframed} width the option
+\Opt{framemethod=\Loadedframemethod} is loaded. All other modifications will be
+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 the
+package \Pack{showexpl}.}
\section{Examples}
All examples have the following settings:
@@ -85,7 +90,9 @@ function of the independent variables alone.
\begin{LTXexample}
\begin{mdframed}[userdefinedwidth=6cm,align=center,
linecolor=blue,middlelinewidth=4pt,roundcorner=5pt]
-\includegraphics[width=\linewidth]{donald-duck}
+\IfFileExists{donald-duck.jpg}%
+ {\includegraphics[width=\linewidth]{donald-duck}}%
+ {\rule{\linewidth}{4cm}}%
\end{mdframed}
\end{LTXexample}
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf
index eb119d6f5fb..44f7ab50c98 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf
Binary files differ