summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls')
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls328
1 files changed, 281 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
index d52123efd05..63f4474a06f 100644
--- a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
+++ b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
@@ -8,23 +8,47 @@
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
-%%$Id: ltxmdf.cls 220 2011-11-13 17:39:13Z marco $
-%%$Rev: 220 $
+%%$Id: ltxmdf.cls 269 2011-12-09 12:14:02Z marco $
+%%$Rev: 269 $
%%$Author: marco $
-%%$Date: 2011-11-13 18:39:13 +0100 (So, 13. Nov 2011) $
+%%$Date: 2011-12-09 13:14:02 +0100 (Fr, 09. Dez 2011) $
%% Allgemeine Angaben
-\def\md@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
+\def\ltxmdf@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltxmdf}[\md@maindate@svn$Id: ltxmdf.cls 220 2011-11-13 17:39:13Z marco $ ltxmdf]
+\ProvidesPackage{ltxmdf}[\ltxmdf@svn$Id: ltxmdf.cls 269 2011-12-09 12:14:02Z marco $ ltxmdf]
+\DeclareOption{tocdepthsec}{\def\ltxmdf@tocdepth{1}}
+\DeclareOption{tocdepthsub}{\def\ltxmdf@tocdepth{2}}
+\newif\ifltxmdf@lipsum
+\ltxmdf@lipsumfalse
+\DeclareOption{ltxlipsum}{\ltxmdf@lipsumtrue}
+\newif\ifltxmdf@showframe
+\ltxmdf@showframefalse
+\DeclareOption{ltxshowframe}{\ltxmdf@showframetrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
+\ExecuteOptions{tocdepthsub}
\ProcessOptions\relax
\LoadClass{scrartcl}
+\RequirePackage{selinput}
+\SelectInputMappings{
+ adieresis={ä},
+ germandbls={ß},
+ Euro={€},
+}
+
\RequirePackage{etoolbox}
%Required Packages no font / no language
-\RequirePackage[nofancy,draft,notoday]{svninfo}
+%\RequirePackage[nofancy,draft,notoday]{svninfo}
\RequirePackage[left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
+\ifltxmdf@showframe
+ \RequirePackage{showframe}
+\fi
+\ifltxmdf@lipsum
+ \RequirePackage{lipsum}
+\fi
\RequirePackage[T1]{fontenc}
+\RequirePackage[scaled=0.82]{beramono}
\RequirePackage{microtype}
\RequirePackage[french=quotes]{csquotes}
\RequirePackage{xspace}
@@ -42,18 +66,18 @@
\RequirePackage{array,booktabs}
\RequirePackage{xcolor,tikz}
\RequirePackage{graphicx}
-\AtEndPreamble{%
- \RequirePackage{hyperref}
+
+\RequirePackage[numbered]{hypdoc}
\hypersetup{%
breaklinks=true,
pdftitle={Documenation of mdframed},%
pdfauthor={Marco Daniel},%
colorlinks=true,%
- linkcolor=titleblue,
+ linkcolor=ltxmdfblue,
urlcolor=cyan,
- bookmarksdepth=4,
+ bookmarksdepth=\ltxmdf@tocdepth,
}
-}
+
%Kopf- und Fusszeilen
\clearscrheadfoot
@@ -63,23 +87,27 @@
\renewcommand{\subsectionmark}[1]{\markright{\subsectionmarkformat #1}} %nur Titel ohne Nr.
\ihead{\rightmark}
\ohead{\leftmark}
-\ofoot{\pagemark}
-\ifoot{\svnId}
+\ofoot{\pagemark}
+
+\def\ltxmdfsetifoot$#1: #2 #3 #4-#5-#6 #7 #8${%
+ \ifoot{#2 #3 #4-#5-#6 #7 #8}
+}
+\ltxmdfsetifoot$Id: ltxmdf.cls 269 2011-12-09 12:14:02Z marco $
%Tikz und Farbe
\usetikzlibrary{calc,backgrounds,arrows,matrix}
-\colorlet{titleblue}{blue!30!black}
+\colorlet{ltxmdfblue}{blue!30!black}
\lstset{keywordstyle=\bfseries}
-\lstdefinestyle{lstmdframed}{%
+\lstdefinestyle{lstltxmdf}{%
basicstyle=\small\ttfamily,
language={[LaTeX]TeX},
basicstyle=\small,%
xleftmargin=20pt,%
xrightmargin=20pt,%
frame=single,%
- rulecolor=\color{titleblue},%
+ rulecolor=\color{ltxmdfblue},%
framesep=5pt,%
framerule=1pt,%
texcsstyle=*\color{red!50!black}\bfseries,
@@ -116,49 +144,29 @@
}
-\lstnewenvironment{mdexample}[1][]
- {\lstset{style=lstmdframed,#1}}%
+\lstnewenvironment{tltxmdfexample}[1][]
+ {\lstset{style=lstltxmdf,#1}}%
{}
+\lstMakeShortInline[basicstyle=\small\ttfamily\color{blue!60!black}]{|}
+
%table of contens anpassen:
\renewcommand\tableofcontents{%
-\setcounter{tocdepth}{2}%
- \begin{multicols}{2}[\centering\textbf{\sffamily\Large\contentsname}]
+ \setcounter{tocdepth}{\ltxmdf@tocdepth}%
+ \begin{multicols}{2}[\centering\textbf{\sffamily\Large\contentsname}]
\@starttoc{toc}
- \end{multicols}
+ \end{multicols}
}
-
-%Anweisung zur Darstellung
-\newcommand*\mdoption[1]{\textsf{\color{titleblue}#1}}
-\newcommand*\mdname{\textsf{mdframed}\xspace}
-\newcommand*\mdpack[1]{\texttt{#1}\xspace}
-\newcommand*\mdsetting[1]{\textsf{#1}\xspace}
-\newcommand*\mdcommand[1]{\texttt{\textbackslash #1}\xspace}
-
-\newcommand*\mdDescribeMacro[2][]{\par\kern\baselineskip%
- \noindent\makebox[0pt][l]{\kern-2em%
- \textsf{\bfseries\color{titleblue}#2}%
- }\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
-\newcommand*{\mdDefault}[1]{%
- \ifx\relax#1\relax\else{\small\mdsetting{default=#1}}\fi}
-
-\newcommand*\mdDescribeCmd[2][]{\par\kern\baselineskip%
- \noindent\makebox[0pt][l]{\kern-2em%
- \textsf{\bfseries\color{titleblue}\textbackslash #2}%
- }{#1}\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
-
-
-\newcommand\NOTE{\minisec{Note}}
-
-\newcommand\limitation[1][TikZ]{\newline{\small This works only with \mdoption{framemethod=#1}.}}
-
%%Maketitle angepasst:
\def\title#1{\def\@title{#1}}
\def\subtitle#1{\def\@subtitle{#1}}
\def\author#1{\def\@author{#1}}
\def\version#1{\def\@version{#1}}
\def\date#1{\def\@date{#1}}
+\def\@@date$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6}
+\date{\@@date$Id: ltxmdf.cls 269 2011-12-09 12:14:02Z marco $}
+
\long\def\introduction#1{\def\@introduction{#1}}
\def\maketitle{%
@@ -168,7 +176,7 @@
\begingroup
\parindent\z@
\centering
- \color{titleblue}\Large\bfseries\sffamily\@title
+ \color{ltxmdfblue}\Large\bfseries\sffamily\@title
\par\kern.5\baselineskip
\normalfont\large\normalcolor\@subtitle
\par\kern.5\baselineskip
@@ -184,5 +192,231 @@
\endgroup
}
+%Own Appendix
+\def\ltxmdfappendix{%
+ \clearpage
+ %\newgeometry{left=5.5cm,}%
+}
+%Modifkation of code
+\preto\theCodelineNo{\color{gray}}
+\setlength\MacroTopsep{10pt}
+\appto\MacroFont{\color{ltxmdfblue}}
+
+
+\DoNotIndex{\@captype,\@endparenv,\@endparpenalty,\@endpetrue,\@floatpenalty,\@footnotetext,\@ifnextchar,\@undefined,\@tempboxa}
+\DoNotIndex{\@M,\@empty,\@height,\@mpfn,\@mpfootins,\@mpfootnotetext,\@nil,\@plus,\@width}
+
+\DoNotIndex{\@captype,\@endparenv,\@endparpenalty,\@endpetrue,\@floatpenalty}
+\DoNotIndex{\@footnotetext,\@ifnextchar,\@undefined,\@tempboxa}
+\DoNotIndex{\@M,\@empty,\@height,\@mpfn,\@mpfootins,\@mpfootnotetext,\@nil,\@plus,\@width}
+\DoNotIndex{\@afterheading,\@afterindentfalse,\@firstoftwo,\@gobble,\@ifpackageloaded}
+\DoNotIndex{\@nobreaktrue,\@nobreakfalse,\@secondoftwo,\@tempa,\@tempdima}
+
+\DoNotIndex{\addpenalty,\addvspace,\advance,\afterassignment,\AfterEndEnvironment,\appto}
+
+\DoNotIndex{\baselineskip,\begin,\boolfalse,\begingroup,\box}
+\DoNotIndex{\BeforeBeginEnvironment,\bfseries,\bgroup,\boxmaxdepth}
+
+\DoNotIndex{\color@endgroup,\color@setgroup,\columnwidth,\csdef,\c@mpfootnote,\csname}
+\DoNotIndex{\clip,\color,\color@begingroup,\coordinate,\csappta,\csuse,\csxdef,\Currentoption}
+
+\DoNotIndex{\dimexpr,\DeclareBoolOption,\DeclareListParser,\def,\define@key,\dimen@,\dimen@i,\dp,\deflength}
+\DoNotIndex{\DeclareDefaultOption,\defcounter,\DisableKeyvaloption}
+
+\DoNotIndex{\eject,\end,\endtrivlist,\edef,\else,\endcsname,\endinput,\expandafter,\endgroup\egroup,\enlargethispage}
+
+\DoNotIndex{\fwd@reserved@a,\fwd@reserveda,\fi,\fill,\forcsvlist}
+
+\DoNotIndex{\gdef}
+
+\DoNotIndex{\hbox,\height,\hrule,\hsize,\hspace,\ht,\hb@xt@,\hss}
+
+\DoNotIndex{\if@minipage,\if@twocolumn,\if@twoside,\ifbool,\ifdim,\ifdimequal}
+\DoNotIndex{\ifdimgreater,\ifdimless,\iffwd@footnoteinside,\ifinner,\ifnum,\ifodd}
+\DoNotIndex{\ifblank,\ifboolexpr,\ifcase,\ifcsundef,\IfFileExists,\ifnumequal,\ifstrequal}
+\DoNotIndex{\iftoggle,\ifundef,\input,\kernel@ifnextchar,\ifvoid,\ifx,\item}
+
+\DoNotIndex{\kern}
+
+\DoNotIndex{\leftline,\let,\linewidth,\lrbox,\large,\letcs,\listadd,\llap,\lowercase}
+
+\DoNotIndex{\maxdimen,\medskipamount,\MessageBreak,\makebox}
+
+\DoNotIndex{\NeedsTeXFormat,\newcounter,\newlength,\newrobustcmd,\nobreak,\normalcolor,\number}
+\DoNotIndex{\newbool,\newcommand,\newenvironment,\newtheorem,\newtoggle,\node,\noindent}
+\DoNotIndex{\notblank,\notbool,\null,\newpsstyle}
+\DoNotIndex{\next}
+
+\DoNotIndex{\or}
+
+\DoNotIndex{\p@,\PackageInfo,\PackageWarning,\pagegoal,\pagetotal,\partopsep,\patchcmd,\penalty}
+\DoNotIndex{\ProcessKeyvalOptions,\ProvidesPackage,\providecommand,\path}
+\DoNotIndex{\protected@edef,\ProvidesFile,\psframe,\psline,\psset,\pst@number,\psxunit}
+\DoNotIndex{\par,\parfillskip,\parindent,\PassOptionsToPackage,\pgfmathsetlengthmacro}
+
+\DoNotIndex{\relax,\RequirePackage,\raggedright,\renewcommand,\rlap,\rput,\rule}
+
+\DoNotIndex{\setbox,\setkeys,\setlength,\SetupKeyvalOptions,\splitmaxdepth,\splittopskip,\stepcounter,\strutbox}
+\DoNotIndex{\setbool,\settoggle,\space,\string}
+
+\DoNotIndex{\textwidth,\the,\thempfn,\thempfootnote,\topsep,\trivlist,\tw@,\tikzset}
+
+\DoNotIndex{\unskip,\unvbox}
+
+\DoNotIndex{\value,\vbox,\vfill,\vsize,\vskip,\vsplit}
+
+\DoNotIndex{\width,\wd}
+
+\DoNotIndex{\xifinlist}
+
+\DoNotIndex{\z@,\z@skip,\zref@addprop,\zref@extract,\zref@label,\zref@newprop,\zref@refused,\ZREF@mainlist}
+
+\IndexPrologue{\section*{Index}%
+ \markboth{Index}{Index}The index only collect package relevant words.}
+%\DoNotIndex{\newrobustcmd,\DeclareBoolOption,\DeclareListParser,\deflength}
+%\DoNotIndex{\z@,\@ne,\@M}
+%\DoNotIndex{\define@key}
+%\DoNotIndex{\@nil,\dimen@,\dimen@i}
+%\DoNotIndex{\@mpfn,\@mpfootins,\@mpfootnotetext,\c@mpfootnote}
+%\DoNotIndex{\advance,\begingroup,\ifx,\fi,\else,\@plus,\@height,\@width,\dp,\ht,\wd}
+%\DoNotIndex{\closeout,\day,\def,\edef,\else,\empty,\endgroup,\csname,\endcsname,\endinput}
+%\DoNotIndex{\def,\long,\edef,\xdef,\gdef,\let,\global}
+%\DoNotIndex{\if,\ifnum,\ifdim,\ifcat,\ifmmode,\ifvmode,\ifhmode,%
+% \iftrue,\iffalse,\ifvoid,\ifx,\ifeof,\ifcase,\else,\or,\fi}
+%\DoNotIndex{\box,\copy,\setbox,\unvbox,\unhbox,\hbox,%
+% \vbox,\vtop,\vcenter}
+%\DoNotIndex{\@empty,\immediate,\write}
+%\DoNotIndex{\egroup,\bgroup,\expandafter,\begingroup,\endgroup}
+%\DoNotIndex{\divide,\advance,\multiply,\count,\dimen}
+%\DoNotIndex{\relax,\space,\string}
+%\DoNotIndex{\csname,\endcsname,\@spaces,\openin,\openout,%
+% \closein,\closeout}
+%\DoNotIndex{\catcode,\endinput}
+%\DoNotIndex{\jobname,\message,\read,\the,\m@ne,\noexpand}
+%\DoNotIndex{\hsize,\vsize,\hskip,\vskip,\kern,\hfil,\hfill,\hss}
+%\DoNotIndex{\m@ne,\z@,\z@skip,\@ne,\tw@,\p@}
+%\DoNotIndex{\dp,\wd,\ht,\vss,\unskip}
+
+\def\macro#1{%
+ \MakePrivateLetters
+ \topsep\MacroTopsep \trivlist
+ \edef\saved@macroname{#1}%
+ \def\makelabel##1{\makebox[0pt][l]{\kern-2em ##1}}%
+ \if@inlabel
+ \let\@tempa\@empty \count@\macro@cnt
+ \loop \ifnum\count@>\z@
+ \edef\@tempa{\@tempa\hbox{\strut}}\advance\count@\m@ne \repeat
+ \edef\makelabel##1{\llap{\vtop to\baselineskip
+ {\@tempa\hbox{##1}\vss}}}%
+ \advance \macro@cnt \@ne
+ \else \macro@cnt\@ne \fi
+ \toks@={\@gobble}%
+ \@for\next:=#1\do
+ {\toks@=\expandafter{\the\expandafter\toks@%
+ \expandafter\\%
+ \expandafter\PrintMacroName\expandafter{\next}}}%
+ \item[\fbox{\begin{tabular}{@{\textbackslash}>{}l}
+ \the\toks@
+ \end{tabular}}]%
+ \leavevmode\par\kern\MacroTopsep\noindent\ignorespaces
+ \global\advance\c@CodelineNo\@ne
+ \@for\next:=#1\do
+ {%
+ \expandafter\SpecialMainIndex\expandafter{\next}\nobreak
+ \expandafter\DoNotIndex\expandafter{\next}}%
+ \global\advance\c@CodelineNo\m@ne
+ \ignorespaces}
+
+
+
+%Anweisung zur Darstellung
+\newcommand*\Opt[1]{{\MacroFont #1}\xspace}
+\newcommand*\Env[1]{{\MacroFont #1}\xspace}
+\newcommand*\Cmd[1]{{\MacroFont \string #1}\xspace}
+\newcommand*\Pack[1]{\texttt{#1}\xspace}
+
+\newcommand*\ExplCmd[2][]{%
+ \par\kern\baselineskip%
+ \noindent\makebox[0pt][l]{\kern-2em%
+ \@bsphack
+ \MacroFont\textbackslash #2%
+ \SpecialUsageIndex{#2}%
+ \@esphack
+ }%
+ \hfill\mbox{%
+ \ifx\relax#1\relax
+ \space
+ \else
+ {\small default=\ttfamily #1}
+ \fi
+ }%
+ \par\kern.5ex\noindent\ignorespaces
+ }
+\newcommand*\ExplEnv[2][]{%
+ \par\kern\baselineskip%
+ \noindent\makebox[0pt][l]{\kern-2em%
+ \@bsphack
+ \MacroFont #2%
+ \SpecialEnvIndex{#2}%
+ \@esphack
+ }%
+ \hfill\mbox{%
+ \ifx\relax#1\relax
+ \space
+ \else
+ {\small default=\ttfamily #1}
+ \fi
+ }%
+ \par\kern.5ex\noindent\ignorespaces
+ }
+
+\def\SpecialOptIndex#1{\@bsphack
+ \index{#1\actualchar{\protect\ttfamily#1}
+ (option)\encapchar usage}%
+ \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
+ usage}\@esphack}
+\newcommand*\ExplOpt[2][]{%
+ \par\kern\baselineskip%
+ \noindent\makebox[0pt][l]{\kern-2em%
+ \@bsphack
+ \MacroFont #2%
+ \SpecialOptIndex{#2}%
+ \@esphack
+ }%
+ \hfill\mbox{%
+ \ifx\relax#1\relax
+ \space
+ \else
+ {\small default=\ttfamily #1}
+ \fi
+ }%
+ \par\kern.5ex\noindent\ignorespaces
+ }
+
+% % \newcommand*\mdoption[1]{\textsf{\color{ltxmdfblue}#1}}
+% % \newcommand*\mdname{\textsf{mdframed}\xspace}
+% % \newcommand*\mdpack[1]{\texttt{#1}\xspace}
+% % \newcommand*\mdsetting[1]{\textsf{#1}\xspace}
+% % \newcommand*\mdcommand[1]{\texttt{\textbackslash #1}\xspace}
+% %
+% % \newcommand*\mdDescribeMacro[2][]{\par\kern\baselineskip%
+% % \noindent\makebox[0pt][l]{\kern-2em%
+% % \textsf{\bfseries\color{ltxmdfblue}#2}%
+% % }\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
+% % \newcommand*{\mdDefault}[1]{%
+% % \ifx\relax#1\relax\else{\small\mdsetting{default=#1}}\fi}
+% %
+% % \newcommand*\mdDescribeCmd[2][]{\par\kern\baselineskip%
+% % \noindent\makebox[0pt][l]{\kern-2em%
+% % \textsf{\bfseries\color{ltxmdfblue}\textbackslash #2}%
+% % }{#1}\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
+
+
+\newcommand\NOTE{\minisec{Note}}
+
+\newcommand\limitation[1][TikZ]{\newline{\small This works only with \Opt{framemethod=#1}.}}
+
+
+