From 04a95cdae99b26ab45f6f002647b57d78eebf3c0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 10 Dec 2011 01:05:49 +0000 Subject: mdframed (9dec11) git-svn-id: svn://tug.org/texlive/trunk@24808 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/mdframed/Makefile | 84 +++ Master/texmf-dist/doc/latex/mdframed/README | 30 - Master/texmf-dist/doc/latex/mdframed/README.txt | 65 ++ .../texmf-dist/doc/latex/mdframed/donald-duck.jpg | Bin 0 -> 27527 bytes .../doc/latex/mdframed/mdframed-doc-en.pdf | Bin 122521 -> 0 bytes .../doc/latex/mdframed/mdframed-doc-en.tex | 804 --------------------- .../latex/mdframed/mdframed-example-default.pdf | Bin 108133 -> 300153 bytes .../latex/mdframed/mdframed-example-default.tex | 91 ++- .../latex/mdframed/mdframed-example-pstricks.pdf | Bin 48612 -> 69762 bytes .../latex/mdframed/mdframed-example-pstricks.tex | 79 +- .../doc/latex/mdframed/mdframed-example-texsx.pdf | Bin 71339 -> 213663 bytes .../doc/latex/mdframed/mdframed-example-texsx.tex | 90 ++- .../doc/latex/mdframed/mdframed-example-tikz.pdf | Bin 74919 -> 277657 bytes .../doc/latex/mdframed/mdframed-example-tikz.tex | 87 ++- .../doc/latex/mdframed/mdframed-examples.pdf | Bin 0 -> 185592 bytes Master/texmf-dist/doc/latex/mdframed/mdframed.pdf | Bin 0 -> 673122 bytes 16 files changed, 377 insertions(+), 953 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/mdframed/Makefile delete mode 100644 Master/texmf-dist/doc/latex/mdframed/README create mode 100644 Master/texmf-dist/doc/latex/mdframed/README.txt create mode 100644 Master/texmf-dist/doc/latex/mdframed/donald-duck.jpg delete mode 100644 Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf delete mode 100644 Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex create mode 100644 Master/texmf-dist/doc/latex/mdframed/mdframed-examples.pdf create mode 100644 Master/texmf-dist/doc/latex/mdframed/mdframed.pdf (limited to 'Master/texmf-dist/doc/latex/mdframed') diff --git a/Master/texmf-dist/doc/latex/mdframed/Makefile b/Master/texmf-dist/doc/latex/mdframed/Makefile new file mode 100644 index 00000000000..97d8d486c0f --- /dev/null +++ b/Master/texmf-dist/doc/latex/mdframed/Makefile @@ -0,0 +1,84 @@ +# Makefile for mdframed project folder +# $Id: Makefile 271 2011-12-09 12:25:08Z marco $ +SHELL := /bin/bash +PACKAGE = mdframed +EXAMPLEA = mdframed-examples +EXAMPLED = mdframed-example-default +EXAMPLET = mdframed-example-tikz +EXAMPLEP = mdframed-example-pstricks +EXAMPLESX = mdframed-example-texsx +EXAMPLLIST = $(EXAMPLEA) $(EXAMPLED) $(EXAMPLET) $(EXAMPLEP) $(EXAMPLESX) +PDFLATEX = pdflatex +LATEX = latex +DVIPS = dvips +PSPDF = ps2pdf +MAKEIDX = makeindex + +NO_COLOR = \x1b[0m +OK_COLOR = \x1b[32;01m +WARN_COLOR = \x1b[33;01m +ERROR_COLOR = \x1b[31;01m + +OK_STRING = $(OK_COLOR)[OK]$(NO_COLOR) +ERROR_STRING= $(ERROR_COLOR)[ERRORS]$(NO_COLOR) +WARN_STRING = $(WARN_COLOR)[WARNINGS]$(NO_COLOR) + +docsty: $(PACKAGE).dtx + $(PDFLATEX) $(PACKAGE).dtx + $(MAKEIDX) -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo + $(MAKEIDX) -s gind.ist $(PACKAGE).idx + $(PDFLATEX) $(PACKAGE).dtx + $(PDFLATEX) $(PACKAGE).dtx + +examples: $(EXAMPLEA).dtx +#EXAMPLEA + $(PDFLATEX) $(EXAMPLEA).dtx + $(PDFLATEX) $(EXAMPLEA).dtx +#EXAMPLED + $(PDFLATEX) $(EXAMPLED).tex + $(PDFLATEX) $(EXAMPLED).tex +#EXAMPLET + $(PDFLATEX) $(EXAMPLET).tex + $(PDFLATEX) $(EXAMPLET).tex +#EXAMPLEP + $(LATEX) $(EXAMPLEP).tex + $(LATEX) $(EXAMPLEP).tex + $(DVIPS) $(EXAMPLEP).dvi + $(PSPDF) $(EXAMPLEP).ps +#EXAMPLESX + $(PDFLATEX) $(EXAMPLESX).tex + $(PDFLATEX) $(EXAMPLESX).tex + + + +changeversion: + @echo + @echo -e "$(OK_COLOR)Aktuell wird die folgende Version verwendet" + @sed '/\\def\\mdversion/!d' $(PACKAGE).sty + @echo -e "$(WARN_COLOR)" + @read -p "Bitte neue Version eingeben: " REPLY && sed -rie "s/(\\\\def\\\\mdversion\{).*(})/\1$$REPLY\2/" $(PACKAGE).dtx&&\ + echo -e "$(OK_COLOR)Version geändert zu $$REPLY$(NO_COLOR)" + @echo + + +clean: + @echo + @echo -e "$(ERROR_COLOR)Alle Dateien ausser *.tex, *.sty," + @echo -e "*.mdf, *.pdf, README, Makefile und *.zip" + @echo -e "werden geloescht" + @echo -e "$(WARN_COLOR)" ; + @echo -e "Useless files of mdframed will be removed" ; + for file in $(EXAMPLLIST) ; \ + do \ + echo -e "Useless files of $$file will be removed" ;\ + rm -rf $$file.aux $$file.glo $$file.hd $$file.idx $$file.dvi $$file.ps\ + $$file.log $$file.out $$file.synctex.gz $$file.thm $$file.tmp $$file.toc ; \ + done + @echo -e "Useless files of mdframed package will be removed" ; + @rm -rf $(PACKAGE).aux $(PACKAGE).dtxe $(PACKAGE).glo $(PACKAGE).gls $(PACKAGE).hd $(PACKAGE).ins $(PACKAGE).idx \ + $(PACKAGE).ilg $(PACKAGE).ind $(PACKAGE).log $(PACKAGE).out $(PACKAGE).thm $(PACKAGE).toc ; + @echo -e "$(OK_COLOR)Löschvorgang abgeschlossen$(NO_COLOR)" + +all: docsty examples clean + + diff --git a/Master/texmf-dist/doc/latex/mdframed/README b/Master/texmf-dist/doc/latex/mdframed/README deleted file mode 100644 index 1ac98d5a304..00000000000 --- a/Master/texmf-dist/doc/latex/mdframed/README +++ /dev/null @@ -1,30 +0,0 @@ -%%$Id: README 223 2011-11-13 18:10:49Z marco $ - -The standard methods for framing text (\fbox or \fcolorbox) -require you to handle page breaks by hand, meaning that you -have to split the \fbox into two. The present package -defines the environment \mdfamed which automatically deals -with pagebreaks in framed text. - - -Author's name: Marco Daniel and Elke Schubert (tikz) -License type: lppl - ----------------------------- -v1.0 -- add option userdefinedwidth -- add option align -- add option apptotikzsetting -- create new command mdfapptodefinestyle (Thanks to Martin Scharrer) -- changed internal algorithm -- removed calc instead using e-TeX \dimexpr -- expand documentation -- trying to fixe problems with xcolor -- fixed bug with framemethod=pstricks -- created ltxmdf.cls -- documentclass for alle tex-files -- created file mdframed-example-default.pdf -- created file mdframed-example-tikz.pdf -- created file mdframed-example-pstricks.pdf -- created file mdframed-example-texsx.pdf (texsx stands for tex stackexchange) -- removed pre-version - diff --git a/Master/texmf-dist/doc/latex/mdframed/README.txt b/Master/texmf-dist/doc/latex/mdframed/README.txt new file mode 100644 index 00000000000..2d120302922 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mdframed/README.txt @@ -0,0 +1,65 @@ +================================================================ +================================================================ +Working with the command \fbox or \fcolorbox, one has to +handle page breaks by hand. The present package defines the +environment mdframed which automatically deals with page breaks. + +Author's name: Marco Daniel and Elke Schubert (supports tikz implementation) +License type: lppl + +================================================================ +The current development is available at github: +https://github.com/marcodaniel/mdframed + +================================================================ +The package provides two dtx files, one Makefile and +one documentclass. By running the script `make all` you will +produce the following files: +- README.txt +- mdframed.sty +- mdframed.pdf +- md-frame-0.mdf +- md-frame-1.mdf +- md-frame-2.mdf +- md-frame-3.mdf +- mdframed-examples.pdf +- mdframed-example-default.tex +- mdframed-example-default.pdf +- mdframed-example-tikz.tex +- mdframed-example-tikz.pdf +- mdframed-example-pstricks.tex +- mdframed-example-pstricks.pdf +- mdframed-example-texsx.tex +- mdframed-example-texsx.pdf +- ltxmdf.cls +- donald-duck.jpg + +I recommend the following installation in your texmf-tree: + +/doc/latex/mdframed/ +- README.txt +- mdframed.pdf +- mdframed-example-default.tex +- mdframed-example-default.pdf +- mdframed-example-tikz.tex +- mdframed-example-tikz.pdf +- mdframed-example-pstricks.tex +- mdframed-example-pstricks.pdf +- mdframed-example-texsx.tex +- mdframed-example-texsx.pdf + +/source/latex/mdframed/ +- Makefile +- mdframed.dtx +- mdframed-examples.dtx +- donald-duck.jpg + +/tex/latex/mdframed +- mdframed.sty +- md-frame-0.mdf +- md-frame-1.mdf +- md-frame-2.mdf +- md-frame-3.mdf +- ltxmdf.cls +================================================================ +================================================================ diff --git a/Master/texmf-dist/doc/latex/mdframed/donald-duck.jpg b/Master/texmf-dist/doc/latex/mdframed/donald-duck.jpg new file mode 100644 index 00000000000..fe4f2a769e4 Binary files /dev/null and b/Master/texmf-dist/doc/latex/mdframed/donald-duck.jpg differ diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf deleted file mode 100644 index 277a8938b9b..00000000000 Binary files a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex deleted file mode 100644 index 4c5b0dd74d8..00000000000 --- a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex +++ /dev/null @@ -1,804 +0,0 @@ -%Documenation of the package mdframed -%%$Id: mdframed-doc-en.tex 221 2011-11-13 18:03:29Z marco $ -\setcounter{errorcontextlines}{999} -\documentclass[parskip=false,english,11pt]{ltxmdf} -\svnInfo $Id: mdframed-doc-en.tex 221 2011-11-13 18:03:29Z marco $ -\usepackage{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{lipsum} -\usepackage[T1,altbullet]{lucidabr} -\usepackage[scaled=0.82]{beramono} - -\usepackage[framemethod=TikZ]{mdframed} - -\title{The \mdname package\footnote{Extending the package \texttt{framed.sty}} -\subtitle{auto-split frame environment} -\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}% - \footnote{With thanks to Heiko Oberdiek, Rolf Niepraschk, - Martin Scharrer and Herbert Voss.\newline Sorry for bad English.} - \href{mailto:marco.daniel@mada-nada.de}{Elke Schubert}}} -\version{\mdversion} -\date{\svnToday} -\introduction{The standard methods for framing text (\mdcommand{fbox} or \mdcommand{fcolorbox}) require you to handle page breaks by hand, meaning that you have to split the \mdcommand{fbox} into two. The present package defines the environment \mdname which automatically deals with pagebreaks in framed text.\par -By defining new environments the user may choose between several individual designs.% -\par\kern.5\baselineskip\noindent -Linked files:\quad \begin{tabular}[t]{ll} - \url{mdframed-example-default.pdf} & - \url{mdframed-example-tikz.pdf} \\ - \url{mdframed-example-pstricks.pdf} & - \url{mdframed-example-texsx.pdf} - \end{tabular} -} - - - - -\begin{document} -\maketitle - -\section{Motivation} -Many users wish to (further) emphasize lemmata, definitions, proofs, etc. The package \mdname allows you to create environments with breakable frames. I think an example is the best way to demonstrate its properties. - - -%\newtheorem{mdtheorem}{Theorem}[section] -\newmdtheoremenv[outerlinewidth=2,leftmargin=40,rightmargin=40,% - backgroundcolor=yellow,outerlinecolor=blue,innertopmargin=0pt,% - splittopskip=\topskip,skipbelow=\baselineskip,% - skipabove=\baselineskip,ntheorem,roundcorner=5pt]{theorem}{Theorem}[section] - -\begin{theorem}[Pythagorean theorem] - In any right triangle, the area of the square whose side is the hypotenuse - is equal to the sum of the areas of the squares whose sides are the two legs. - -\[ a^2+b^2=c^2 \] -\end{theorem} - -The frame was defined with the following settings. - -\begin{mdexample} -\newmdtheoremenv[outerlinewidth=2,leftmargin=40, - rightmargin=40,backgroundcolor=yellow,% - outerlinecolor=blue,innertopmargin=0pt,% - splittopskip=\topskip,skipbelow=\baselineskip,% - skipabove=\baselineskip,ntheorem]{theorem}% - {Theorem}[section] -\begin{theorem}[Pythagorean theorem] -... -\end{theorem} -\end{mdexample} - - -\section{Syntax}\label{sec:syntax} -The package itself loads the packages \mdpack{kvoptions}, \mdpack{etoolbox} and \mdpack{color}. -By setting the correct options \mdpack{mdframed} will load \mdpack{xcolor}, \mdpack{tikz} or \mdpack{pstricks}. - -Load the package as usual: -\begin{mdexample} - \usepackage[]{mdframed} -\end{mdexample} - -The package defines only one environment with the following syntax: -\begin{mdexample} - \begin{mdframed}[] - - \end{mdframed} -\end{mdexample} -To create own environments with \mdpack{mdframed} see section \ref{sec:cmds}. - -\minisec{Autodetecting floats} -I added a detection of \mdpack{float} or \mdpack{minipage} environments. If you use \mdname in such an environment \mdname will use the option \mdoption{nobreak} automaticly. - -\minisec{Twoside-mode} -When you are using \mdname inside \mdpack{twoside} mode you can set the option \mdoption{innermargin} -and \mdoption{outermargin} (see section \ref{optlength}). - -%%%%%%%%%%%%%%%%%%%%%%% -\section{Commands}\label{sec:cmds} -The following commands should countenance your by the handling with \mdpack{mdframed} - -\mdDescribeCmd[]{newmdenv} The command has the following syntax: -\begin{mdexample} -\newmdenv[]{Name of the environment} -\end{mdexample} -In this way you can simply use: -\begin{mdexample} - \newmdenv[linecolor=red,frametitle=Infobox]{infobox} - ... - \begin{infobox}[backgroundcolor=yellow] - foo foo foo foo foo foo - \end{infobox} -\end{mdexample} -\mdDescribeCmd[]{renewmdenv} By using this command you can redifine environments which are created by \mdcommand{newmdenv}. - -\mdDescribeCmd[]{newmdtheoremenv} -Since the package is often used to highlight theorem environments, I have created a command\footnote{Thanks to Martin Scharrer and Enrico Gregorio:\newline \href{http://tex.stackexchange.com/questions/26298/own-command-to-create-new-environment}{Own command to create new environment}} to simplify this process. The command has the following syntax: - -\begin{mdexample}[deletekeywords={mdframed}] -\newmdtheoremenv[]{}% - []{}[] -\end{mdexample} -The last four arguments are equivalent to the command \mdcommand{newtheorem}. Only the first optional argument is able to pass \mdpack{mdframed}-options. A simple example is: -\begin{mdexample} -\theoremstyle{} -\newmdtheoremenv[linecolor=blue]{lemma}% - {Lemma}[section] -... -\begin{lemma}[Some title] - foo foo foo foo foo foo -\end{lemma} -\end{mdexample} -So far there is no \mdcommand{renewmdtheoremenv}! - - -\mdDescribeMacro{\textbackslash mdfsetup}To set the options -you can use the optional argument of \mdcommand{usepackage} or -you can use the command \mdcommand{mdfsetup} which is not limited to the preamble. Inside a group the command the settings work only local. - -\mdDescribeMacro{\textbackslash mdfdefinestyle} \mdcommand{mdfdefinestyle} allow the user to define diffenrent styles and use as an option of \mdpack{mdframed} via \mdoption{style}. The option \mdoption{style} is explained in section \ref{genopt}. - -Here a small example: -\begin{mdexample}[morekeywords={mystyle}] -\mdfdefinestyle{mystyle}{leftmargin=0pt,% - linecolor=blue} -.... -\begin{mdframed}[style=mystyle] -foo -\end{mdframed} -\end{mdexample} - -\mdDescribeMacro{\textbackslash mdfapptodefinestyle} This commands allows to expand a defined style.\footnote{Thanks to Martin Scharrer and Enrico Gregorio:\newline \href{http://tex.stackexchange.com/questions/34684/argument-of-setkeys}{http://tex.stackexchange.com/questions/34684/argument-of-setkeys}} - - - -%%%%%%%%%%%%%%%%%%%%%%% -\section{Options} -The packages provides various options to manipulate frames. In the following section all options are listed. Some internal macros which can be manipulated are not shown in this documentation. -The listed option are divided in global and local options. The global options can not be used inside \mdcommand{mdfsetup}. - -\subsection{Global Options}\label{globopt} -The following options are only global options. - -\mdDescribeMacro[none]{xcolor} -By setting this key, the package \mdpack{xcolor} will -be loaded with the given value(s). Without any value \mbox{\mdname} loads -the package \mdpack{color} without any options. If the package \mdpack{xcolor} is already loaded the given option will be ignored. I recommend to load \mdpack{xcolor} before \mdname. - -\mdDescribeMacro[default]{framemethod} -With this key you can change the way frames are drawn. You can decide whether the frame is drawn with -\begin{enumerate} - \item \LaTeX-commands {\small\mdcommand{hrule}, \mdcommand{vrule}, \mdcommand{rule}}, - \item \mdpack{TikZ} {\small(the package \mdpack{TikZ} will be loaded)} or - \item \mdpack{PSTricks} {\small(the package \mdpack{pstricks} will be loaded)}. -\end{enumerate} -The option \mdoption{framemethod} requires a string. Allowed combination are listed in the following table. -\begin{table}[!ht] -\centering -\renewcommand*\arraystretch{1.3} -\caption{Allowed keys for \mdoption{framemethod}} -\begin{tabular}{@{}>{\small\bfseries}l>{\small\ttfamily}l@{}} -\toprule -\multicolumn{1}{@{}l}{\textbf{Method}} & \multicolumn{1}{l}{Allowed keys} \\\midrule -\LaTeX-commands & default, tex, latex, none, 0 \\ -\mdpack{TikZ} & tikz, pgf, 1 \\ -\mdpack{PSTricks} & pstricks, ps, postscript, 2 \\\bottomrule -\end{tabular} -\end{table} - -\noindent{\small\textbf{FYI}\qquad It is independently whether the \texttt{method} is written with no, one or more capital letter.} - -\NOTE The manipulation of the frames depends on the option \mdoption{framemethod}. For further information see below. - -\subsection{Global and Local Options} -The options listed below can be set globally or locally and they are not limited to the preamble. - -\subsubsection{Options with lengths}\label{optlength} - -In figure \eqref{fig:laengen} you can see the adjustable lengths which will be described below. -All lengths accept two kinds of input. The first one is a length (e.g. 2pt) and -the second one is a number (e.g. 2) which will be multiplied by \mdoption{1 defaultunit}. -The figure shows three different colored frames. Only \mdoption{framemethod=tikz} is able to draw such triple lines. - -I know that the predefined length are not well prepaired. Maybe I will change it later. - -\mdDescribeMacro[pt]{defaultunit} see the sentence above. - -\begin{center} -% \includegraphics{laengen} -\begin{tikzpicture}[scale=0.9] - %Declaration - \newlength{\linew} - \setlength{\linew}{5pt} - \tikzstyle{every node}=[font=\bfseries\large\sffamily] - \coordinate (innersep) at (3.2,2.25); - \coordinate (outersep) at (3.2,2); - %Center - \node[fill=green!10,draw=black,framed,rounded corners,minimum width=3cm,minimum height=1.5cm]% - (CenterNode) {Contents}; - - %frames - \draw[draw=red!70!black,line width=\linew] % - ($(CenterNode)+(innersep)$) % - rectangle ($(CenterNode)-(innersep)$); - \draw[draw=blue!70!black,line width=\linew] % - ($(CenterNode)+(innersep)+(\linew,\linew)$)% - rectangle ($(CenterNode)-(innersep)+(-\linew,-\linew)$); - \draw[draw=yellow!70!black,line width=\linew] - ($(CenterNode)+(innersep)+(2\linew,2\linew)$)% - rectangle ($(CenterNode)-(innersep)+(-2\linew,-2\linew)$); - \draw[draw=black,line width=1] ($(CenterNode)+(innersep)+(outersep)$)% - rectangle ($(CenterNode)-(innersep)-(outersep)$); - - - \tikzstyle{every node}=[font=\small\ttfamily] - %%innertopmargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) in - (CenterNode.north) -- ($(CenterNode)+(0,\y1)-(0,.5\linew)$) ; - \path let \p1=(innersep) in - (CenterNode.north) edge node[align=center,framed,fill=white,draw=white]{innertopmargin} - ($(CenterNode)+(0,\y1)-(0,.5\linew)$) ; - %%innerbottommargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) in - (CenterNode.south) -- ($(CenterNode)-(0,\y1)+(0,.5\linew)$) ; - \path let \p1=(innersep) in - (CenterNode.south) edge node[align=center,framed,fill=white,draw=white]{innerbottommargin} - ($(CenterNode)-(0,\y1)+(0,.5\linew)$) ; - - %%innerleftmargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) in - (CenterNode.west) -- ($(CenterNode)-(\x1,0)+(.5\linew,0)$) ; - \path let \p1=(innersep) in - (CenterNode.west) edge - node[align=center,rotate=90,framed,fill=white,draw=white]{innerleftmargin} - ($(CenterNode)-(\x1,0)+(.5\linew,0)$) ; - %%innerrightmargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) in - (CenterNode.east) -- ($(CenterNode)+(\x1,0)-(.5\linew,0)$) ; - \path let \p1=(innersep) in - (CenterNode.east) edge - node[align=center,rotate=90,framed,fill=white,draw=white]{innerrightmargin} - ($(CenterNode)+(\x1,0)-(.5\linew,0)$) ; - - - %%leftmargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)-(\x1,0)-(2.5\linew,0)$) -- ($(CenterNode)-(\x1,0)-(\x2,0)$) ; - \path let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)-(\x1,0)-(2.5\linew,0)$) edge - node[align=center,rotate=0,framed,fill=white,draw=white]{leftmargin} - ($(CenterNode)-(\x1,0)-(\x2,0)$) ; - %%rightmargin - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)+(\x1,0)+(2.5\linew,0)$) -- ($(CenterNode)+(\x1,0)+(\x2,0)$) ; - \path let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)+(\x1,0)+(2.5\linew,0)$) edge - node[align=center,rotate=0,framed,fill=white,draw=white]{rightmargin} - ($(CenterNode)+(\x1,0)+(\x2,0)$) ; - - %%skipabove - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)+(0,\y1)+(0,2.5\linew)$) -- ($(CenterNode)+(0,\y1)+(0,\y2)$) ; - \path let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)+(0,\y1)+(0,2.5\linew)$) edge - node[align=center,rotate=0,framed,fill=white,draw=white]{skipabove} - ($(CenterNode)+(0,\y1)+(0,\y2)$) ; - %%skipbelow - \draw[draw=black,triangle 45-triangle 45]let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)-(0,\y1)-(0,2.5\linew)$) -- ($(CenterNode)-(0,\y1)-(0,\y2)$) ; - \path let \p1=(innersep) , \p2=(outersep) in - ($(CenterNode)-(0,\y1)-(0,2.5\linew)$) edge - node[align=center,rotate=0,framed,fill=white,draw=white]{skipbelow} - ($(CenterNode)-(0,\y1)-(0,\y2)$) ; -\end{tikzpicture} - - \captionof{figure}{adjustable lengths of \mdname} - \label{fig:laengen} -\end{center} - -\mdDescribeMacro[0pt]{skipabove} Sets an additional skip above the frame. -\mdDescribeMacro[0pt]{skipbelow} Sets an additional skip below the frame. -\mdDescribeMacro[]{margin} This option is not longer supported. Use \mdoption{leftmargin} - and \mdoption{rightmargin} instead. -\mdDescribeMacro[0pt]{leftmargin} Sets the length of the left margin of the environment. -\mdDescribeMacro[0pt]{rightmargin} Sets the length of the right margin of the environment. - -\mdDescribeMacro[10pt]{innerleftmargin} Sets the length of the inner left margin of the environment. -\mdDescribeMacro[10pt]{innerrightmargin} Sets the length of the inner right margin of the environment. -\mdDescribeMacro[.4\textbackslash baselineskip]{innertopmargin} Sets the length of the inner top margin of the environment. -\mdDescribeMacro[.4\textbackslash baselineskip]{innerbottommargin} Sets the length of the inner bottom margin of the environment. - -\paragraph*{The following lengths are not shown in figure \eqref{fig:laengen}.} - -\mbox{} -\mdDescribeMacro[0pt]{userdefinedwidth} Sets the width of the whole \mdname environment. The width represent the width including the line width and the inner margins. The outer margins will be ignored. - -\mdDescribeMacro{outermargin} Sets the length of the outer margin. This option is only avaidable in \texttt{twoside}-mode. -\mdDescribeMacro{innermargin} Sets the length of the inner margint. This option is only avaidable in \texttt{twoside}-mode. - - -\mdDescribeMacro[0pt]{splittopskip} Sets the length of the skip above the split part of the environment. -\mdDescribeMacro[0pt]{splitbottomskip} Sets the length of the skip below the splitt part of the environment. -\mdDescribeMacro[0.4pt]{linewidth} Sets the width of the line around the environment. -\mdDescribeMacro[0pt]{roundcorner} Sets the size of the radius of the corners of the frames. - \limitation\limitation[PSTricks] -\mdDescribeMacro[0pt]{innerlinewidth} Sets the width of the inner line around the environment. - \limitation -\mdDescribeMacro[0pt]{outerlinewidth} Sets the width of the outer line around the environment. - \limitation -\mdDescribeMacro[linewidth]{middlelinewidth} Sets the width of the middle line around the environment.\limitation - - -\subsubsection{Colored Options} -\mdDescribeMacro[black]{linecolor} Sets the color of the line around the environment. -\mdDescribeMacro[white]{backgroundcolor} Sets the color of the background of the environment. -\mdDescribeMacro[black]{fontcolor} Sets the color of the contents of the environment. -\mdDescribeMacro[linecolor]{innerlinecolor} Sets the color of the inner line around the environment. - \limitation -\mdDescribeMacro[\newline linecolor]{middlelinecolor} Sets the color of the middle line around the environment. \limitation -\mdDescribeMacro[\newline linecolor]{outerlinecolor} Sets the color of the outer line around the environment.\limitation - - -\subsubsection{General options}\label{genopt} - -\mdDescribeMacro[false]{ntheorem} Before setting this boolean key, you have to load the package \mdpack{ntheorem}. - - With this option you set the values \mdcommand{theorempreskipamount} - and\newline \mdcommand{theorempostskipamount} to 0pt. - -\mdDescribeMacro[false]{nobreak} Sometimes it is useful to prevent a frame from splitting. The \mdoption{nobreak} option is used for this purpose. If you activate this option you can enable it by setting \mdoption{nobreak=false}. - - -\mdDescribeMacro[0pt]{needspace} Sometimes it is useful to set a minimum height befor a frame should be splitted. For such cases you can use \mdoption{needspace}. The option requires a length which sets the minimum height befor a frame will be splitted. - -\mdDescribeMacro{style} If you define a special style with \mdcommand{mdfdefinstyle} you can use the key \mdoption{style} to load the style. \mdname has no predefined styles. - -%%\mdDescribeMacro[none]{settings} With version 0.9 of the package \mdname this option was added. This option allows the user to commit some macros. An example is shown in the appendix. - -%\mdDescribeMacro[none]{printheight} This key allows the entries \texttt{none}, \texttt{info} or \texttt{warning}. In relation to the key the vertical space at the beginning of the environment \mdname on the current page will be printed in the \texttt{log} file. - -\mdDescribeMacro[left]{align} Sometimes it is usefull to align the environment it selfs. For this you have the option \mdoption{align} which can be set to the following strings: \mdoption{left}, \mdoption{right} and \mdoption{center}. The alignments \mdoption{left} or \mdoption{right} depend on the given lenght \mdoption{leftmargin} and \mdoption{rightmargin}. Later I will present an example to demonstrate my bad English explanation. - -\mdDescribeMacro[none]{pstrickssetting} With this key you can pass several options to \mdcommand{psset}. For example - if you want all lines dashed you will have to set - \mdoption{pstrickssetting=\{linestyle=dashed\}}. It is very important - to put the options of \mdoption{pstrickssetting} in brackets. - \limitation[PSTricks] -\mdDescribeMacro[none]{tikzsetting} With this key you can pass several options to \mdcommand{tikzset}. Some examples are listed in the next section. It is very important - to put the options of \mdoption{tikzsetting} in brackets. - \limitation - -\mdDescribeMacro[none]{apptotikzsetting} With this key you can add several options to \mdoption{tikzsetting}. This key based on the idea of manipulation of predefined keys of \mdname. -The package \mdname define via \mdcommand{tikzset} the following keys to draw frames. -\begin{itemize} - \item \mdcommand{tikzset\{mdfbox/.style\}} - \item \mdcommand{tikzset\{mdfcorners./style\}} - \item \mdcommand{tikzset\{mdfbackground./style\}} - \item \mdcommand{tikzset\{mdfinnerline./style\}} - \item \mdcommand{tikzset\{mdfouterline./style\}} - \item \mdcommand{tikzset\{mdfmiddleline./style\}} -\end{itemize} -\textbf{Before you change one please have a look at the file \texttt{md-frame-1.mdf} to see the settings.}\limitation - -\subsection{Hidden Lines} - - -\mdDescribeMacro[true]{topline} Draws a line at the top. -\mdDescribeMacro[true]{bottomline} Draws a line at the bottom. -\mdDescribeMacro[true]{leftline} Draws a line on the left. -\mdDescribeMacro[true]{rightline} Draws a line on the right. - -\mdDescribeMacro[false]{rightline} With this option you can decide whether all lines should be drawn or not. - -\subsection{Frametitle} - - -\mdDescribeMacro[none]{frametitle} The environment get a title. To set a title use \mdoption{frametitle=\{The Title of the frame\}} as an option of the environment. -\mdDescribeMacro[\mbox{} \mdcommand{bfseries}\mdcommand{large}]{frametitleformat} Sets the format of the frame title. - -\subsection{Footnotes} -Inside the environment you can use the command \mdcommand{footnote} as usual. \mdname uses the syntax of environment \mdpack{minipage} with the same counter. - -Every footnote text will be collect inside a box and will be displayed at the end of the environment \mdname. - -\mdDescribeMacro[\mbox{} \mdcommand{bigskipamount}]{footnotedistance} The length is the distance between the end of the environement \mdname and the displaying of the \mdcommand{footnoterule}. - -\mdDescribeMacro[true]{footnoteinside} The position of the footnotes can be changed with the option \mdoption{footnoteinside}. The footnotes will be displayed at the end of the environment but you can decide whether the output is inside \mdname or after. - -\vskip\baselineskip -\noindent\textbf{Note}\qquad The ouput of the footnotes with the option \mdoption{footnoteinside=false} are not in a splitted frame. I think it isn't useful because the first line of a new page shouldn't be a footnote. - -\section{Examples} - -I outsource the examples in four files to limited the documentation. The files are -\begin{description}[style=nextline] -\item[\texttt{mdframed-example-default}] Demonstration of examples created with \mdoption{framemethod=default}. -\item[\texttt{mdframed-example-tikz}] Demonstration of examples created with \mdoption{framemethod=TikZ}. -\item[\texttt{mdframed-example-pstricks}] Demonstration of examples created with \mdoption{framemethod=pstricks}. -\item[\texttt{mdframed-example-texsx}] Demonstration of examples like interaction with \mdpack{listings} -\end{description} - -The examples are often not equivalent but normally they can be adapted to another method. - -\section{Errors, Warnings and Messages} - -The package \mdpack{mdframed} provides different errors, warnings and -messages in the \texttt{log}-file. Some \LaTeX-editors like -\TeX Maker or \TeX Studio have a special tab for errors and warnings -but not for messages. So you should look in the \texttt{log-File} itself. - -The followings errors and warnings are generated by \mdpack{mdframed}. - -\begin{mdexample} - The package ... does not exist but - needed by mdframed -\end{mdexample} -To avoid this problem you should install the required -packages which are listed in section \ref{sec:syntax}. - -\begin{mdexample} - package option style is depreciated - use framemethod instead mdframed -\end{mdexample} -With version 0.9d \mdname changed the meaning of the option \mdoption{style}. The option is used to load a defined style by \mdcommand{mdfdefinestyle}. Instead uses \mdoption{framemethod} (see section \ref{globopt}). - -\begin{mdexample} - Unknown framemethod .... mdframed -\end{mdexample} -The input string for the option \mdoption{framemethod} is unkown. See section \ref{globopt}. - -\begin{mdexample} - You have not loaded ntheorem yet -\end{mdexample} -To use the option \mdoption{ntheorem} you have to -load the package \mdpack{ntheorem}. - -\begin{mdexample} - You have only a width of 3cm -\end{mdexample} -The package \mdpack{mdframed} calculates the width of the contents -based on the given options. If the width of the contents smaller than -3\,cm you will get this warnings. You should change the -settings to get a greater width. - -\begin{mdexample} - You got a bad break - you have to change it manually - by changing the text, the space - or something else -\end{mdexample} -Sometimes you have enough vertical space for the rules and the space -between the rules and the contents but not for the contents itself. -In this situation you will get this warning because the contents -of this box is empty. You have the possibility to change the -settings or include a \mdcommand{clearpage} in front of -the environment \mdpack{mdframed}. -So far I have no idea how to avoid such things. - -\begin{mdexample} - You got a bad break - because the split box is empty - You have to change the page settings - like enlargethispage or something else - You got a bad break -\end{mdexample} -See the explaation above. - -\begin{mdexample} - You got a bad break - because the last split box is empty - You have to change the settings -\end{mdexample} -The same reason as above but only in the last box. - - -\begin{mdexample} - Option ... is already consumed - and has no effect on input line ... -\end{mdexample} -If you set a global option inside the document -body you will get this warning. - -\section{Known Problems} - In this section I will collect known problems. In case you encounter any further problems, please - drop me an email, \href{mailto:marco.daniel@mada-nada.de}{marco.daniel at mada-nada.de}. - - Do you have any ideas / wishes on further extensions to this package? Please let me know! - -\begin{enumerate} - \item So far the environment isn't compatible with the package \mdpack{gmverb}. -\end{enumerate} - - -\section{ToDo} -\begin{enumerate} - \item see \glqq Known Problems\grqq. - \item So far it isn't possible to combine the environment \mdcommand{begin\{multicols\}} of the package \mdpack{multicol} with \mdpack{mdframed} with the whole option list. - \item Create new styles. - \item Improve page breaks. - \item Improve footnotes - \item Improve documentation and create a separate pdf with examples - \item Create styles for frame title -\end{enumerate} - -\section{Previous versions} -If you have trouble with the new version of \mdname you can load \texttt{mdframedpre} instead. In this way you load the version v0.6 (see \nameref{rev}). -%With the new version 0.7a I changed the internal commands (I use \mdpack{etoolbox}) and the algorithm of the splitting. So I don't know whether I will get new bugs or not. For the last case and the previous version (v0.6) works well you can load \mdpack{mdframedpre} instead of \mdpack{mdframed}. - -\section{Acknowledgements} - -\vskip\baselineskip - - - -\textsf{Dick Nickalls;\quad Dietrich Grau;\quad Piazza Luca\quad Jobst Hoffmann}. -\medskip - -\noindent Thanks for proofreading - -\textsf{Alan Munn} and \textsf{Nahid Shajari} -\clearpage -\appendix -\section{More information} -%\addtocontents{toc}{\protect\setcounter{tocdepth}{-4}} -In the following section I want to present how to create -your own frame. -\subsection{How does \mdpack{mdframed} work?} -With the environment \mdcommand{begin\{mdframed\}} \ldots \mdcommand{end\{mdframed\}} -the whole contents will be saved in a \mdcommand{savebox} called \mdcommand{@tempboxa}. -After the calculation of the width and the height of the \mdcommand{@tempboxa} (done by \mdpack{mdframed.sty}) the box -will be set sequently (done by \mdpack{md-frame-X.mdf}). The following figure demonstrates this. - -\begin{center} -\begin{tikzpicture} -\newcommand{\mybox}[1]{\parbox{3.5cm}{\centering\small #1}} -\tikzstyle{every node}=[font=\sffamily] -\tikzset{mymatrixnodes/.style={% - matrix of nodes, - nodes={framed,draw=black,fill=yellow!10,}, - column sep=4.2cm, - row sep=1.2cm, - }} -\matrix(m)[mymatrixnodes] - {% - \mybox{read in and save contents in \mdcommand{@tempboxa}} & - \mybox{\mdcommand{md@putbox@single}} \\ - \mybox{split \textbackslash @tempboxa in \mdcommand{tw@} to the free space of the page} & - \mybox{\mdcommand{md@putbox@first}} \\ - \mybox{contents of \mdcommand{@tempboxa} have enough space on the new page} & - \mybox{\mdcommand{md@putbox@second}} \\ - \mybox{split \mdcommand{@tempboxa} in \mdcommand{tw@} to the free space of the page} & - \mybox{\mdcommand{md@putbox@middle}} \\ -}; - -\tikzstyle{every path}=[black,-triangle 45,thick,shorten >=4pt,shorten <=4pt] -\draw (m-1-1) edge node[align=center,anchor=south]{enough space on page} (m-1-2); -\draw (m-2-1) edge node[align=center,anchor=south]{type out \mdcommand{tw@}} (m-2-2); -\draw (m-3-1) edge node[align=center,anchor=south]{yes} (m-3-2); -\draw (m-4-1) edge node[align=center,anchor=south]{type out \mdcommand{tw@}} (m-4-2); - -\draw (m-2-2) edge node[align=center,fill=white]% - {calculate the height of the new \mdcommand{@tempboxa}} (m-3-1); - - -\draw (m-1-1) edge node[align=center,anchor=west]{not enough space on page} (m-2-1); -\draw (m-3-1) edge node[align=center,anchor=west]{no} (m-4-1); - -\draw let \p1=($(m-4-2.south)-(0,1)$), \p2=($(m-3-1.west)-(0.8,0)$) in - (m-4-2.south) -- ($(m-4-2.south)+(0,-1)$) -- - node[align=center,anchor=north]% - {calculate the height of the new \mdcommand{@tempboxa}} (\x2,\y1) - -- ($(m-3-1.west)-(0.8,0)$)-- ($(m-3-1.west)$) ; - - -\end{tikzpicture} - -\captionof{figure}{Setting the contents of \mdpack{mdframed}}\label{fig:way} -\end{center} - -The width of the contents is the result of the settings of \mdoption{leftmargin}, \mdoption{rightmargin}, \mdoption{linewidth}, \mdoption{innerleftmargin} and \mdoption{innerrightmargin} (see figure \eqref{fig:laengen}). - - - -\subsection{The Framecommands} -The package \mdpack{mdframed} knows four kinds of \glqq Framecommand\grqq. These commands tell \LaTeX\ how to set the contents of \mdpack{mdframed}. -\begin{description} - \item[\mdcommand{md@putbox@single}] This command sets the contents of a single unspliot frame. - \item[\mdcommand{md@putbox@first}] This command sets the contents of the first frame of a split frame. - \item[\mdcommand{md@putbox@middle}] This command sets the contents of the middle frame of a split frame. - \item[\mdcommand{md@putbox@second}] This command sets the contents of the last frame of a split frame. -\end{description} - -Using the explained commands we give an example. The command \mdcommand{box} uses the contents of the savebox and types them out. - -First we want to type out the single box without any settings (but with the calculated width). -\begin{mdexample} -\makeatletter - \def\md@putbox@single{\box\@tempboxa} -\makeatother -\end{mdexample} -I am using the command \mdcommand{leftline} to start the \glqq Framecommands\grqq\ at the left. -\begin{mdexample}[deletekeywords={leftline},moretexcs={leftline}] -\makeatletter - \def\md@putbox@single{\leftline{\box\@tempboxa}} -\makeatother -\end{mdexample} - -Now you have to know how the lengths are named. Every length which can be modified by the options has the following syntax: -\begin{mdexample} -\mdf@@length -\end{mdexample} -For example the leftmargin is: -\begin{mdexample} -\mdf@leftmargin@length -\end{mdexample} - -To create only a line at the left with the correct \mdoption{leftmargin} you can set \mdcommand{md@putboxsingle} as follows - -\begin{mdexample}[deletekeywords={leftline},moretexcs={leftline}] -\makeatletter -\def\md@putbox@single{% - \leftline{% - \hspace*{\mdf@leftmargin@length}% - \rule[-\dp\@tempboxa]{\mdf@linewidth}% - {\ht\@tempboxa+\dp\@tempboxa}% - \box\@tempboxa - }% -} -\makeatother -\end{mdexample} - -In this way you can do what you want. If you create your own style you -can save the file as \mdpack{md-frame-X.mdf}. -\mdpack{X} must be an integer. -In this way you can use the option \mdoption{framemethod} to -load the file by setting \mdoption{framemethod=X}. - -\clearpage - - - -%\clearpage -\subsection{Revision history}\label{rev} -\raggedright -\minisec{Version 1.0 submitted 13 Nov 2011} -\begin{itemize*} -\item add option \mdoption{userdefinedwidth} -\item add option \mdoption{align} -\item add option \mdoption{apptotikzsetting} -\item create new command \mdcommand{mdfapptodefinestyle} -\item changed internal algorithm -\item removed calc instead using \eTeX\ \verb+\dimexpr+ -\item expand documentation -\item trying to fixe problems with \mdpack{xcolor} -\item fixed bug with \mdoption{framemethod=pstricks} -\item create file \mdpack{mdframed-example-default} -\item create file \mdpack{mdframed-example-tikz} -\item create file \mdpack{mdframed-example-pstricks} -\item create file \mdpack{mdframed-example-texsx} (texsx stands for tex stackexchange) -\end{itemize*} - - -\footnotesize -\minisec{Version 0.9g submitted 08 Oct 2011} -\begin{itemize*} -\item fixed documentation -\item added small footnote compatibility -\end{itemize*} - -\minisec{Version 0.9f submitted 04 Oct 2011} -\begin{itemize*} -\item fixes bugs (thanks to Lars Madsen) -\item added option \mdoption{hidealllines} -\item fixed documentation -\end{itemize*} - - -\minisec{Version 0.9e submitted 11 Sep 2011} -\begin{itemize*} -\item working with \texttt{twoside} modus -\end{itemize*} - -\minisec{Version 0.9d submitted 10 Sep 2011} -\begin{itemize*} -\item \textcolor{red}{changed the meaning of the option \mdoption{style}}!!! (inspired by Lars Madsen) -\item added option \mdoption{framemethod} (inspired by Lars Madsen) -\item added options \mdoption{needspace} (inspired by Lars Madsen) -\item added new command \mdcommand{mdfdefinestyle} (inspired by Lars Madsen) -\item fixes documentation -\item renamed \mdpack{md-frame-3.mdf} to \mdpack{md-frame-2.mdf} -\end{itemize*} - - - -\minisec{Version 0.9b submitted 7 Sep 2011} -\begin{itemize*} -\item fixes bugs in \mdcommand{newmdtheoremenv} (Thanks to Enrico Gregorio) -\end{itemize*} - -\minisec{Version 0.9a submitted 5 Sep 2011} -\begin{itemize*} -\item fixes bugs (Thanks to Lars Madson) -\item expanded documentation (added revision history) -\end{itemize*} - - -\minisec{Version 0.9 submitted 4 Sep 2011} -\begin{itemize*} -\item added option \mdoption{nobreak} -\item detecting float environments to prevent split calculation -\item expand documentation (Thanks to Alan Munn) -\end{itemize*} - -\minisec{Version 0.8a} -\begin{itemize*} -\item fixes bugs -\item fixes documentation -\end{itemize*} - -\minisec{Version 0.8 submitted 22 Aug 2011} -\begin{itemize*} -\item added commands: \mdcommand{newmdenv}, \mdcommand{renewmdenv}, \mdcommand{newmdtheoremenv} -\item fixes bugs -\item fixes documentation -\end{itemize*} - -\minisec{Version 0.7a submitted 6 August 2011} -\begin{itemize*} -\item added option \mdoption{frametitle} -\item added option \mdoption{frametitlefont} -\item allow twolumn-mode -\item changed the calculation -\item added option \mdoption{tikzsetting} -\item added options for hidden lines for all styles -\item fixes bugs -\end{itemize*} - -\minisec{Version 0.6a submitted 22 Dec 2010} -\begin{itemize*} -\item fixes bugs -\item added \mdcommand{mdfsetup} -\item expanded documentation -\end{itemize*} - - - -\minisec{Version 0.6 submitted 18 Dec 2010} -\begin{itemize*} -\item added \mdoption{style=3} with \mdpack{pstricks} -\item added option \mdoption{pstrickssetting} -\item added option \mdoption{splitbottomskip} -\item added option \mdoption{splittopskip} -\item added options for hidden lines -\item changed the calculation -\item fixes bugs -\end{itemize*} - -\minisec{Version 0.4a submitted 14 May 2010} -\begin{itemize*} -\item fixes bug in fontcolor -\end{itemize*} - -\minisec{Version 0.4 submitted 13 May 2010} -\begin{itemize*} -\item Elke Schubert creates style file for \mdpack{tikz} -\item fixes some bugs -- calculation of the page dimen (thanks Dick Nickalls) -\item using tikz for the frame with different styles -\end{itemize*} - -\minisec{Version 0.3b submitted 1 May 2010} -\begin{itemize*} -\item fixes some bugs -- thanks to Dietrich Grau -\item added new options: \mdoption{ntheorem} -\end{itemize*} - -\minisec{Version 0.3a submitted 23 Apr 2010} -\begin{itemize*} -\item added new options: \mdoption{leftmargin} and \mdoption{rightmargin} -\item fixes some bugs -\end{itemize*} - -\minisec{Version 0.3 submitted16 Apr 2010} -\begin{itemize*} -\item first upload to \href{http://dante.ctan.org/upload}{CTAN} -\end{itemize*} -\end{document} 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 8a92f0b311e..af6395ee86e 100644 Binary files a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf and b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf 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 82209c353ea..d58246131d5 100644 --- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex +++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex @@ -1,29 +1,36 @@ -%Documenation of the package mdframed -%%$Id: mdframed-example-default.tex 221 2011-11-13 18:03:29Z marco $ +%% +%% This is file `mdframed-example-default.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mdframed-examples.dtx (with options: `mdframed-example-default') +%% ---------------------------------------------------------------- +%% Working with the command fbox or fcolorbox, one has to +%% handle page breaks by hand. The present package defines the +%% environment mdframed which automatically deals with page breaks. +%% +%% Author's name: Marco Daniel and Elke Schubert (!new) +%% License type: lppl + +%%$Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ \setcounter{errorcontextlines}{999} \documentclass[parskip=false,english,11pt]{ltxmdf} -\svnInfo $Id: mdframed-example-default.tex 221 2011-11-13 18:03:29Z marco $ -\usepackage{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage[T1,altbullet]{lucidabr} -\usepackage[scaled=0.82]{beramono} +\ltxmdfsetifoot $Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ -\usepackage[]{showexpl} -\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},} +\usepackage{showexpl} +\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},} \newcommand\Loadedframemethod{default} \usepackage[framemethod=\Loadedframemethod]{mdframed} -\title{The \mdname package} -\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}} +\title{The \Pack{mdframed} package} +\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}} \author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}} \version{\mdversion} -\date{\svnToday} -\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}. +\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{% An \textit{inhomogeneous linear} differential equation has the form @@ -31,11 +38,10 @@ Some presented examples are more or less exorbitant.} L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is - the dependent variable, and $f$ is a given non-zero + the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } - \newcounter{examplecount} \setcounter{examplecount}{0} \renewcommand\thesubsection{} @@ -47,15 +53,15 @@ Some presented examples are more or less exorbitant.} \begin{document} \maketitle \section{Loading} -In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{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 \mdcommand{global} inside the examples is necessary to work with the package \mdpack{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: -\begin{mdexample} +\begin{tltxmdfexample} \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newrobustcmd\ExampleText{% An \textit{inhomogeneous linear} differential equation @@ -64,10 +70,10 @@ has the form L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is -the dependent variable, and $f$ is a given non-zero +the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } -\end{mdexample} +\end{tltxmdfexample} \clearpage \Examplesec{very simple} \begin{LTXexample} @@ -80,25 +86,26 @@ function of the independent variables alone. \end{mdframed} \end{LTXexample} - \Examplesec{hidden line + frame title} \begin{LTXexample} \global\mdfapptodefinestyle{exampledefault}{% - topline=false,rightline=false,bottomline=false} + topline=false,rightline=true,bottomline=false} \begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}] \ExampleText \end{mdframed} \end{LTXexample} \clearpage + \Examplesec{colored frame title} \begin{LTXexample} \renewcommand\mdframedtitleenv[1]{% \colorbox{green}{% - \parbox{\linewidth}{\centering\bfseries #1}}% + \parbox{\dimexpr\linewidth-6pt\relax}%6pt=linewidth + {\centering\bfseries #1}}% \par\kern.5\baselineskip\noindent% } \global\mdfapptodefinestyle{exampledefault}{% - rightline=true} + rightline=true,innerleftmargin=0,innerrightmargin=0} \begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}] \ExampleText \end{mdframed} @@ -113,7 +120,7 @@ function of the independent variables alone. \end{LTXexample} \Examplesec{theorem with separate header and the help of TikZ (complex)} -\begin{mdexample} +\begin{tltxmdfexample} \makeatletter \newcounter{theo}[section] \newcommand*\newmdframedtitleenv[1]{% @@ -158,7 +165,7 @@ function of the independent variables alone. \begin{theo} \ExampleText \end{theo} -\end{mdexample} +\end{tltxmdfexample} \makeatletter \newcounter{theo}[section] \newcommand*\newmdframedtitleenv[1]{% @@ -196,6 +203,7 @@ function of the independent variables alone. \begin{mdframed}[innertopmargin=0pt,linecolor=blue!20,% linewidth=2pt,topline=false,]% }{\end{mdframed}} + \begin{theo}[Inhomogeneous Linear] \ExampleText \end{theo} @@ -216,13 +224,13 @@ The example below is inspired by the following post on StackExchange \href{http: \llap{\color{white}% \rule[\dimexpr-\mdfboundingboxdepth% \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}% - +\interruptlength\relax]% + +\interruptlength\relax]% {\mdf@middlelinewidth@length}% {\dimexpr\mdfboundingboxtotalheight% +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt} +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}% -2\interruptlength\relax}% - }% + }% }% \appto\md@frame@rightline@single{% \rlap{\color{white}% @@ -242,9 +250,28 @@ The example below is inspired by the following post on StackExchange \href{http: \makeatother \overlaplines - -\begin{mdframed}[linecolor=blue,linewidth=2pt] +\begin{mdframed}[linecolor=blue,linewidth=8pt] \ExampleText \end{mdframed} \end{LTXexample} \end{document} + \endinput +%% +%% ================================================================ +%% Copyright (C) 2011 by Marco Daniel +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Marco Daniel. +%% +%% Have fun! +%% +%% ================================================================ +%% +%% End of file `mdframed-example-default.tex'. 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 ce87a83e442..9e5cda715b6 100644 Binary files a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf and b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf 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 d7b13cd831e..51b28defac1 100644 --- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex +++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex @@ -1,29 +1,37 @@ -%Documenation of the package mdframed -%%$Id: mdframed-example-pstricks.tex 220 2011-11-13 17:39:13Z marco $ +%% +%% This is file `mdframed-example-pstricks.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mdframed-examples.dtx (with options: `mdframed-example-pstricks') +%% ---------------------------------------------------------------- +%% Working with the command fbox or fcolorbox, one has to +%% handle page breaks by hand. The present package defines the +%% environment mdframed which automatically deals with page breaks. +%% +%% Author's name: Marco Daniel and Elke Schubert (!new) +%% License type: lppl + +%%$Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ \setcounter{errorcontextlines}{999} \documentclass[parskip=false,english,11pt]{ltxmdf} -\svnInfo $Id: mdframed-example-pstricks.tex 220 2011-11-13 17:39:13Z marco $ -\usepackage{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage[T1,altbullet]{lucidabr} -\usepackage[scaled=0.82]{beramono} - -\usepackage[]{showexpl} -\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},} +\ltxmdfsetifoot$Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ +\lstDeleteShortInline{|} \newcommand\Loadedframemethod{PSTricks} \usepackage[framemethod=\Loadedframemethod]{mdframed} -\title{The \mdname package} -\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}} +\usepackage{showexpl} +\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},} + +\title{The \Pack{mdframed} package} +\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}} \author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}} \version{\mdversion} -\date{\svnToday} -\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}. +\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{% An \textit{inhomogeneous linear} differential equation has the form @@ -31,11 +39,10 @@ Some presented examples are more or less exorbitant.} L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is - the dependent variable, and $f$ is a given non-zero + the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } - \newcounter{examplecount} \setcounter{examplecount}{0} \renewcommand\thesubsection{} @@ -47,15 +54,15 @@ Some presented examples are more or less exorbitant.} \begin{document} \maketitle \section{Loading} -In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{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 \mdcommand{global} inside the examples is necessary to work with the package \mdpack{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: -\begin{mdexample} +\begin{tltxmdfexample} \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newrobustcmd\ExampleText{% An \textit{inhomogeneous linear} differential equation @@ -64,11 +71,12 @@ has the form L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is -the dependent variable, and $f$ is a given non-zero +the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } -\end{mdexample} +\end{tltxmdfexample} \clearpage + \Examplesec{very simple} \begin{LTXexample} \global\mdfdefinestyle{exampledefault}{% @@ -80,7 +88,6 @@ function of the independent variables alone. \end{mdframed} \end{LTXexample} - \Examplesec{hidden line + frame title} \begin{LTXexample} \global\mdfapptodefinestyle{exampledefault}{% @@ -110,4 +117,24 @@ function of the independent variables alone. \ExampleText \end{mdframed} \end{LTXexample} -\end{document} \ No newline at end of file +\end{document} + \endinput +%% +%% ================================================================ +%% Copyright (C) 2011 by Marco Daniel +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Marco Daniel. +%% +%% Have fun! +%% +%% ================================================================ +%% +%% End of file `mdframed-example-pstricks.tex'. 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 583bb0aa435..ef0208f9891 100644 Binary files a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf and b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf 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 bd78dac88d2..af300511f50 100644 --- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex +++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex @@ -1,29 +1,36 @@ -%Documenation of the package mdframed -%%$Id: mdframed-example-texsx.tex 220 2011-11-13 17:39:13Z marco $ +%% +%% This is file `mdframed-example-texsx.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mdframed-examples.dtx (with options: `mdframed-example-texsx') +%% ---------------------------------------------------------------- +%% Working with the command fbox or fcolorbox, one has to +%% handle page breaks by hand. The present package defines the +%% environment mdframed which automatically deals with page breaks. +%% +%% Author's name: Marco Daniel and Elke Schubert (!new) +%% License type: lppl + +%%$Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ \setcounter{errorcontextlines}{999} -\documentclass[parskip=false,english,11pt]{ltxmdf} -\svnInfo $Id: mdframed-example-texsx.tex 220 2011-11-13 17:39:13Z marco $ -\usepackage{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage[T1,altbullet]{lucidabr} -\usepackage[scaled=0.82]{beramono} +\documentclass[parskip=false,english,11pt,ltxlipsum]{ltxmdf} +\ltxmdfsetifoot $Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ -\usepackage[]{showexpl} -\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},} +\usepackage{showexpl} +\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},} \newcommand\Loadedframemethod{default} \usepackage[framemethod=\Loadedframemethod]{mdframed} -\title{The \mdname package} -\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}} +\title{The \Pack{mdframed} package} +\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}} \author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}} \version{\mdversion} -\date{\svnToday} -\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}. +\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{% An \textit{inhomogeneous linear} differential equation has the form @@ -31,11 +38,10 @@ Some presented examples are more or less exorbitant.} L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is - the dependent variable, and $f$ is a given non-zero + the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } - \newcounter{examplecount} \setcounter{examplecount}{0} \renewcommand\thesubsection{} @@ -44,20 +50,18 @@ Some presented examples are more or less exorbitant.} \subsection{Example~\arabic{examplecount}~--~#1\relax}% } -\usepackage{lipsum} - \begin{document} \maketitle \section{Loading} -In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{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 \mdcommand{global} inside the examples is necessary to work with the package \mdpack{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: -\begin{mdexample} +\begin{tltxmdfexample} \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newrobustcmd\ExampleText{% An \textit{inhomogeneous linear} differential equation @@ -66,27 +70,27 @@ has the form L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is -the dependent variable, and $f$ is a given non-zero +the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } -\end{mdexample} +\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`)} Here the solution which can be decorate as usual. -\begin{mdexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}] +\begin{tltxmdfexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}] \BeforeBeginEnvironment{lstlisting}{% \begin{mdframed}[]% \vspace{-0.7em}} \AfterEndEnvironment{lstlisting}{% \vspace{-0.5em}% \end{mdframed}} -\end{mdexample} +\end{tltxmdfexample} \Examplesec{Package multicol} -How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} with \mdname. 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] @@ -98,7 +102,7 @@ How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} w \end{LTXexample} \clearpage \twocolumn[\Examplesec{Working in twocolumn mode}] -\begin{mdexample} +\begin{tltxmdfexample} \twocolumn[% \Examplesec{Working in twocolumn mode}] @@ -111,7 +115,7 @@ How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} w \ExampleText \end{mdframed} \lipsum[2] -\end{mdexample} +\end{tltxmdfexample} \lipsum[2]\lipsum[2] \begin{mdframed}[leftmargin=10pt,% rightmargin=10pt,% @@ -123,7 +127,7 @@ How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} w \onecolumn \Examplesec{Working inside enumerate} \begin{LTXexample} -Text Text Text Text Text Text Text Text +Text Text Text Text Text Text Text Text \begin{enumerate} \item in the following \ldots \begin{mdframed}[linecolor=blue,linewidth=2] @@ -131,6 +135,26 @@ Text Text Text Text Text Text Text Text \end{mdframed} \item \lipsum[2] \end{enumerate} -Text Text Text Text Text Text +Text Text Text Text Text Text \end{LTXexample} -\end{document} \ No newline at end of file +\end{document} + \endinput +%% +%% ================================================================ +%% Copyright (C) 2011 by Marco Daniel +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Marco Daniel. +%% +%% Have fun! +%% +%% ================================================================ +%% +%% End of file `mdframed-example-texsx.tex'. 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 8e386b575cc..cbd11f4f371 100644 Binary files a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf and b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf 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 74e4f397256..5539f819aab 100644 --- a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex +++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex @@ -1,29 +1,36 @@ -%Documenation of the package mdframed -%%$Id: mdframed-example-tikz.tex 220 2011-11-13 17:39:13Z marco $ +%% +%% This is file `mdframed-example-tikz.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mdframed-examples.dtx (with options: `mdframed-example-tikz') +%% ---------------------------------------------------------------- +%% Working with the command fbox or fcolorbox, one has to +%% handle page breaks by hand. The present package defines the +%% environment mdframed which automatically deals with page breaks. +%% +%% Author's name: Marco Daniel and Elke Schubert (!new) +%% License type: lppl + +%%$Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ \setcounter{errorcontextlines}{999} \documentclass[parskip=false,english,11pt]{ltxmdf} -\svnInfo $Id: mdframed-example-tikz.tex 220 2011-11-13 17:39:13Z marco $ -\usepackage{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage[T1,altbullet]{lucidabr} -\usepackage[scaled=0.82]{beramono} +\ltxmdfsetifoot $Id: mdframed-examples.dtx 270 2011-12-09 12:19:09Z marco $ -\usepackage[]{showexpl} -\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},} +\usepackage{showexpl} +\lstset{style=lstltxmdf,explpreset={pos=b,rframe={}},} \newcommand\Loadedframemethod{TikZ} \usepackage[framemethod=\Loadedframemethod]{mdframed} -\title{The \mdname package} -\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}} +\title{The \Pack{mdframed} package} +\subtitle{Examples for \Opt{framemethod=\Loadedframemethod}} \author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}} \version{\mdversion} -\date{\svnToday} -\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}. +\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{% An \textit{inhomogeneous linear} differential equation has the form @@ -31,11 +38,10 @@ Some presented examples are more or less exorbitant.} L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is - the dependent variable, and $f$ is a given non-zero + the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } - \newcounter{examplecount} \setcounter{examplecount}{0} \renewcommand\thesubsection{} @@ -47,15 +53,15 @@ Some presented examples are more or less exorbitant.} \begin{document} \maketitle \section{Loading} -In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{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 \mdcommand{global} inside the examples is necessary to work with the package \mdpack{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: -\begin{mdexample} +\begin{tltxmdfexample} \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newrobustcmd\ExampleText{% An \textit{inhomogeneous linear} differential equation @@ -64,10 +70,10 @@ has the form L[v ] = f, \end{align} where $L$ is a linear differential operator, $v$ is -the dependent variable, and $f$ is a given non-zero +the dependent variable, and $f$ is a given non-zero function of the independent variables alone. } -\end{mdexample} +\end{tltxmdfexample} \clearpage \ExampleText{round corner} \begin{LTXexample} @@ -88,8 +94,15 @@ function of the independent variables alone. \ExampleText \end{mdframed} \end{LTXexample} - \clearpage +\Examplesec{framed picture which is centered} +\begin{LTXexample} +\begin{mdframed}[userdefinedwidth=6cm,align=center, + linecolor=blue,middlelinewidth=4pt,roundcorner=5pt] +\includegraphics[width=\linewidth]{donald-duck} +\end{mdframed} +\end{LTXexample} + \Examplesec{Gimmick} \begin{LTXexample} \mdfsetup{splitbottomskip=0.8cm,splittopskip=0cm, @@ -106,10 +119,9 @@ function of the independent variables alone. \end{mdframed} \end{LTXexample} - \Examplesec{complex example with TikZ} -\begin{mdexample} +\begin{tltxmdfexample} \tikzstyle{titregris} = [draw=gray, thick, fill=white, shading = exersicetitle, % text=gray, rectangle, rounded corners, @@ -160,7 +172,7 @@ color(100bp)=(black!5)} \begin{mdframed}[style=exercisestyle,exercisepoints=10] \ExampleText \end{mdframed} -\end{mdexample} +\end{tltxmdfexample} \tikzstyle{titregris} = [draw=gray, thick, fill=white, shading = exersicetitle, % @@ -212,5 +224,24 @@ color(100bp)=(black!5)} \ExampleText \end{mdframed} - -\end{document} \ No newline at end of file +\end{document} + \endinput +%% +%% ================================================================ +%% Copyright (C) 2011 by Marco Daniel +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Marco Daniel. +%% +%% Have fun! +%% +%% ================================================================ +%% +%% End of file `mdframed-example-tikz.tex'. diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-examples.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-examples.pdf new file mode 100644 index 00000000000..806d7b129e5 Binary files /dev/null and b/Master/texmf-dist/doc/latex/mdframed/mdframed-examples.pdf differ diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf new file mode 100644 index 00000000000..a2824637511 Binary files /dev/null and b/Master/texmf-dist/doc/latex/mdframed/mdframed.pdf differ -- cgit v1.2.3