diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-10 01:05:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-10 01:05:49 +0000 |
commit | 04a95cdae99b26ab45f6f002647b57d78eebf3c0 (patch) | |
tree | ee99a8ec53b89a2a0af8b47d0167a63f32502036 /Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex | |
parent | 905da44baf20b22b84b86c1a4cded85beb111531 (diff) |
mdframed (9dec11)
git-svn-id: svn://tug.org/texlive/trunk@24808 c570f23f-e606-0410-a88d-b1316a301751
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.tex | 90 |
1 files changed, 57 insertions, 33 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 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}[<modification>]% \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'. |