summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-10 21:56:52 +0000
committerKarl Berry <karl@freefriends.org>2010-04-10 21:56:52 +0000
commit5406b8e0ea1d596600f773e766975256e4087c51 (patch)
tree74d244f62ddcc29123ecef56e914cc0fd7bd6de3 /Master/texmf-dist/tex
parent4f711ec63a6c65e74a08a634bc886ee54b2140fe (diff)
new latex package ydoc (10apr10)
git-svn-id: svn://tug.org/texlive/trunk@17793 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty199
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty407
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty119
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty84
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc.cls38
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc.sty44
6 files changed, 891 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty
new file mode 100644
index 00000000000..2581ec83ec3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty
@@ -0,0 +1,199 @@
+%%
+%% This is file `ydoc-code.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `code')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackageSVN
+ [ydoc-code]
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc package to document macro code]
+\RequirePackage{xcolor}
+\definecolor{macroimpl}{rgb}{0.0,0.0,0.4}
+\@ifundefined{ydocwrite}{%
+ \newwrite\ydocwrite
+}{}
+\@ifundefined{ydocfname}{%
+ \def\ydocfname{\jobname.cod}%
+}{}
+\def\ydoc@catcodes{%
+ \let\do\@makeother
+ \dospecials
+ \catcode`\\=\active
+ \catcode`\^^M=\active
+ \catcode`\ =\active
+}
+\def\macrocode{%
+ \par\noindent
+ \begingroup
+ \ydoc@catcodes
+ \macro@code
+}
+\def\endmacrocode{}
+\begingroup
+\endlinechar\m@ne
+\@firstofone{%
+\catcode`\|=0\relax
+\catcode`\(=1\relax
+\catcode`\)=2\relax
+\catcode`\*=14\relax
+\catcode`\{=12\relax
+\catcode`\}=12\relax
+\catcode`\ =12\relax
+\catcode`\%=12\relax
+\catcode`\\=\active
+\catcode`\^^M=\active
+\catcode`\ =\active
+}*
+|gdef|macro@code#1^^M% \end{macrocode}(*
+|endgroup|expandafter|macro@@code|expandafter(|ydoc@removeline#1|noexpand|lastlinemacro^^M)*
+)*
+|gdef|ydoc@removeline#1^^M(|noexpand|firstlinemacro)*
+|gdef|ydoc@defspecialmacros(*
+|def^^M(|noexpand|newlinemacro)*
+|def (|noexpand|spacemacro)*
+|def\(|noexpand|bslashmacro)*
+)*
+|gdef|ydoc@defrevspecialmacros(*
+|def|newlinemacro(|noexpand^^M)*
+|def|spacemacro(|noexpand )*
+|def|bslashmacro(|noexpand\)*
+)*
+|endgroup
+\def\macro@@code#1{%
+ {\ydoc@defspecialmacros
+ \xdef\themacrocode{#1}}%
+ \PrintMacroCode
+ \end{macrocode}%
+}
+\def\newlinemacro{\\\null}
+\def\spacemacro{\ }
+\def\bslashmacro{\char92}
+\def\lastlinemacro#1{}
+\def\firstlinemacro{\linenumberbox}
+\def\newlinemacro{\\\linenumberbox}
+\newcounter{linenumber}
+\def\linenumberbox{%
+ \hbox to 1.25em{}%
+ \llap{%
+ \stepcounter{linenumber}%
+ {\footnotesize\color{gray}\thelinenumber~}%
+ }%
+}
+\def\PrintMacroCode{%
+ \begingroup
+ \ttfamily
+ \noindent\themacrocode
+ \endgroup
+}
+\RequirePackage{listings}
+\def\PrintMacroCode{%
+ \begingroup
+ \let\firstlinemacro\empty
+ \let\lastlinemacro\empty
+ \def\newlinemacro{^^J}%
+ \let\bslashmacro\bslash
+ \let\spacemacro\space
+ \immediate\openout\ydocwrite=\ydocfname\relax
+ \immediate\write\ydocwrite{\themacrocode}%
+ \immediate\closeout\ydocwrite
+ \@nameuse{ydoc@countbslashes}%
+ \ydoclistingssettings
+ \let\input\@input
+ \lstinputlisting{\ydocfname}%
+ \endgroup
+}
+\def\ydoclistingssettings{%
+ \lstset{%
+ language=[latex]tex,basicstyle=\ttfamily,
+ numbers=left,numberstyle=\tiny\color{gray},firstnumber=last,
+ breaklines,prebreak={\mbox{\tiny$\swarrow$}}%
+ }%
+}
+\def\macro@impl@args[#1]{%
+ \begingroup
+ \parindent=10pt\relax
+ \let\macro@impl@argcnt\@tempcnta
+ \let\macro@impl@curarg\@tempcntb
+ \macro@impl@argcnt=#1\relax
+ \macro@impl@curarg=0\relax
+ \ifnum\macro@impl@curarg<\macro@impl@argcnt\relax
+ \expandafter\macro@impl@arg
+ \else
+ \expandafter\macro@impl@endargs
+ \fi
+}
+\def\macro@impl@endargs{%
+ \endgroup
+ \unskip\par\noindent\ignorespaces
+}
+\def\macro@impl@argline#1#2{%
+ \par{\texttt{\##1}:~#2}%
+}
+\def\macro@impl@arg#1{%
+ \advance\macro@impl@curarg by\@ne\relax
+ \macro@impl@argline{\the\macro@impl@curarg}{#1}%
+ \ifnum\macro@impl@curarg<\macro@impl@argcnt\relax
+ \expandafter\macro@impl@arg
+ \else
+ \expandafter\macro@impl@endargs
+ \fi
+}
+\def\macro#1{%
+ \PrintMacroImplName{#1}%
+ \@ifnextchar[%]
+ {\macro@impl@args}%
+ {}%
+}
+\def\endmacro{}
+\def\environment#1{%
+ \PrintEnvImplName{#1}%
+ \@ifnextchar[%]
+ {\macro@impl@args}%
+ {}%
+}
+\def\endenvironment{}
+\def\PrintMacroImplName#1{%
+ \par\bigskip\noindent
+ \hbox{\hspace*{\descindent}\fbox{{\implstyle{\string#1}}}}%
+ \par\medskip\noindent
+}
+\def\PrintEnvImplName#1{%
+ \par\bigskip\noindent
+ \hbox{\hspace*{\descindent}\fbox{{\implstyle{#1}}}}%
+ \par\medskip
+}
+\def\implstyle{\ttfamily\bfseries\color{macroimpl}}
+{%
+\@firstofone{%
+ \catcode`\\=12
+ \gdef\bslash
+}{\}
+}%}
+\endinput
+%%
+%% End of file `ydoc-code.sty'.
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty
new file mode 100644
index 00000000000..f921666ae5a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty
@@ -0,0 +1,407 @@
+%%
+%% This is file `ydoc-desc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `desc')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackageSVN
+ [ydoc-desc]
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc package to describe macros, environments, options etc.]
+\RequirePackage{xcolor}
+\definecolor{macrodesc}{rgb}{0.0,0.0,0.8}
+\definecolor{macroimpl}{rgb}{0.0,0.0,0.4}
+\definecolor{meta}{rgb}{0.0,0.4,0.4}
+\definecolor{scriptcolor}{rgb}{0.2,0.6,0.2}
+\definecolor{optioncolor}{rgb}{0.3.0.2,0}
+\colorlet{optional}{black!65!white}
+\colorlet{metaoptional}{optional!50!meta}
+\def\meta#1{%
+ \ensuremath\langle
+ {\metastyle{#1\/}}%
+ \ensuremath\rangle
+}
+\def\@meta#1{%
+ \@ifnextchar<%
+ {\is@meta}%
+ {}%
+ #1%
+}
+\def\is@meta<#1>{%
+ \meta{#1}%
+}
+\def\marg#1{\@marg{<#1>}}
+\def\oarg#1{\@oarg{<#1>}}
+\def\parg#1{\@parg{<#1>}}
+\def\aarg#1{\@aarg{<#1>}}
+\def\@marg#1{%
+ {\margstyle{%
+ {\ttfamily\braceleft}%
+ \@meta{#1}%
+ {\ttfamily\braceright}%
+ }}%
+}
+\def\@oarg#1{%
+ {\oargstyle{%
+ {\ttfamily[}%
+ \@meta{#1}%
+ {\ttfamily]}%
+ }}%
+}
+\def\@parg#1{%
+ {\pargstyle{%
+ {\ttfamily(}%
+ \@meta{#1}%
+ {\ttfamily)}%
+ }}%
+}
+\def\@aarg#1{%
+ {\aargstyle{%
+ {\ttfamily<}%
+ \@meta{#1}%
+ {\ttfamily>}%
+ }}%
+}
+\def\sarg{{\sargstyle{*}}}
+\def\pkg{\texttt}
+\def\cls{\texttt}
+\def\env{\texttt}
+\def\cs#1{\texttt{\textbackslash #1}}
+\def\opt{\textsf}
+\def\macrodescstyle{\ttfamily\bfseries\color{macrodesc}}
+\def\macroargsstyle{\ttfamily}
+\def\envcodestyle{\ttfamily}
+\def\verbstyle{\ttfamily}
+\def\metastyle{\normalfont\itshape\color{meta}}
+\def\margstyle{}
+\def\oargstyle{\color{optional}\colorlet{meta}{metaoptional}}
+\def\pargstyle{}
+\def\aargstyle{}
+\def\sargstyle{\ttfamily\color{optional}}
+\newdimen\descindent
+\descindent=-\parindent
+\newdimen\beforedescskip
+\beforedescskip=\bigskipamount
+\newdimen\afterdescskip
+\afterdescskip=\medskipamount
+\newdimen\descsep
+\begingroup
+\ttfamily
+\global\descsep=1em\relax
+\endgroup
+\def\read@Macro@arg{%
+ \futurelet\@let@token\handle@Macro@arg
+}
+\def\handle@Macro@arg{%
+ \ifcase0%
+ \ifx\@let@token\bgroup1\else
+ \ifx\@let@token[\empty2\else
+ \ifx\@let@token(\empty3\else
+ \ifx\@let@token<\empty4\else
+ \ifx\@let@token*\empty5\else
+ \ifx\@let@token'\empty6\else
+ \ifx\@let@token!\empty7\else
+ \ifx\@let@token\@sptoken8\else
+ \ifx\@let@token\space9\else
+ \ifx\@let@token~9\else
+ \ifx\@let@token\AlsoMacro10\else
+ \ifx\@let@token\DescribeMacro11\fi
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
+ \relax
+ \unskip
+ \expandafter\end@Macro@args%0
+ \or\expandafter\read@Macro@marg%1
+ \or\expandafter\read@Macro@oarg%2
+ \or\expandafter\read@Macro@parg%3
+ \or\expandafter\read@Macro@angle%4
+ \or\expandafter\read@Macro@sarg%5
+ \or\expandafter\read@Macro@verb%6
+ \or\expandafter\read@Macro@cmds%7
+ \or\expandafter\read@Macro@rmspace%8
+ \or\expandafter\read@Macro@addtoken%9
+ \else%10-
+ \fi
+}
+\def\end@Macro@args{%
+ \y@egroup
+ \after@Macro@args
+}
+\def\after@Macro@args{%
+}
+\def\read@Macro@marg#1{%
+ \@marg{#1}\read@Macro@arg
+}
+\def\read@Macro@oarg[#1]{%
+ \@oarg{#1}\read@Macro@arg
+}
+\def\read@Macro@parg(#1){%
+ \@parg{#1}\read@Macro@arg
+}
+\def\read@Macro@aarg<#1>>{%
+ \aarg{#1}\read@Macro@arg
+}
+\def\read@Macro@angle<{%
+ \futurelet\@let@token\read@Macro@angle@
+}
+\def\read@Macro@angle@{%
+ \ifx\@let@token<%
+ \expandafter\read@Macro@aarg
+ \else
+ \expandafter\read@Macro@meta
+ \fi
+}
+\def\read@Macro@meta#1>{%
+ \meta{#1}\read@Macro@arg
+}
+\def\read@Macro@sarg#1{%
+ \sarg\read@Macro@arg
+}
+\def\read@Macro@verb{%
+ \begingroup
+ \let\do\@makeother
+ \dospecials
+ \read@Macro@verb@
+}
+\def\read@Macro@verb@'#1'{%
+ \endgroup
+ \ifx\relax#1\relax
+ {\verbstyle{\string'}}%
+ \else
+ {\verbstyle{#1}}%
+ \fi
+ \read@Macro@arg
+}
+\def\read@Macro@cmds!#1!{%
+ #1\relax
+ \read@Macro@arg
+}
+\@firstofone{\def\read@Macro@rmspace} {%
+ \read@Macro@arg
+}
+\def\read@Macro@addtoken#1{%
+ #1\read@Macro@arg
+}
+\@ifundefined{DescribeMacro}{}{%
+ \PackageInfo{ydoc-desc}{Redefining \string\DescribeMacro}{}%
+}
+\def\DescribeMacro{%
+ \DescribeMacros
+ \let\DescribeMacros\y@egroup
+ \def\after@Macro@args{\endDescribeMacros}%
+ \begingroup\makeatletter
+ \Describe@Macro
+}
+\def\Describe@Macro#1{%
+ \endgroup
+ \hbox\y@bgroup
+ \PrintMacroName{#1}%
+ \macroargsstyle
+ \read@Macro@arg
+}
+\newcommand*\Macro{\MacroArgs\AlsoMacro}
+\def\@Macro{%
+ \begingroup\makeatletter
+ \Describe@Macro
+}
+\newcommand*\AlsoMacro{%
+ \begingroup\makeatletter
+ \AlsoMacro@
+}
+\def\AlsoMacro@#1{%
+ \endgroup
+ \PrintMacroName{#1}%
+ \read@Macro@arg
+}
+\newcommand*\MacroArgs{%
+ \begingroup
+ \let\end@Macro@args\endgroup
+ \read@Macro@arg
+}
+\def\DescribeMacros{%
+ \begingroup
+ \let\Macro\@Macro
+ \parindent=0pt\relax
+ \setbox\descbox\vbox\y@bgroup
+}
+\def\endDescribeMacros{%
+ \y@egroup
+ \PrintMacros
+ \endgroup
+}
+\def\DescribeMacrosTabcolsep{\tabcolsep}
+\def\DescribeMacrosTab{%
+ \DescribeMacros
+ \hbox\y@bgroup
+ \tabcolsep=\DescribeMacrosTabcolsep\relax
+ \DescribeMacrosTab@
+}
+\def\DescribeMacrosTab@#1{\tabular{@{}#1@{}}}
+\def\endDescribeMacrosTab{%
+ \endtabular\y@egroup
+ \endDescribeMacros
+}
+\newcommand*\DescribeLength{%
+ \begingroup
+ \let\DescribeLength\Describe@Length
+ \setbox\descbox\hbox\y@bgroup
+ \tabular{@{}l@{\hspace{2em}}l@{}}%
+ \Describe@Length
+}
+\newcommand*\Describe@Length[2]{%
+ \PrintLengthName{#1}&
+ (Default: {\macroargsstyle#2\unskip})%
+ \@ifnextchar\DescribeLength
+ {\\}%
+ {%
+ \endtabular
+ \y@egroup
+ \PrintLength
+ \endgroup
+ }%
+}
+\@ifundefined{DescribeEnv}{}{%
+ \PackageInfo{ydoc-desc}{Redefining \string\DescribeEnv}{}%
+}
+\let\DescribeEnv\relax
+\newcommand*\DescribeEnv[2][]{%
+ \begingroup
+ \def\DescribeEnv@name{#2}%
+ \let\\\DescribeEnv@newline
+ \ifx\@currenvir\DescribeEnv@string
+ \def\after@Macro@args{%
+ \let\after@Macro@args\empty
+ \setbox\@tempboxa\hbox\y@bgroup
+ \@ifnextchar\end{}%
+ {\DescribeEnv@newline}%
+ #1%
+ }%
+ \else
+ \ifx\relax#1\relax
+ \def\after@Macro@args{%
+ \y@bgroup
+ \endDescribeEnv
+ }%
+ \else
+ \def\after@Macro@args{%
+ \setbox\@tempboxa\hbox\y@bgroup
+ \DescribeEnv@newline\MacroArgs#1%
+ \endDescribeEnv
+ }%
+ \fi
+ \fi
+ \setbox\descbox\vbox\y@bgroup
+ \envcodestyle
+ \let\PrintEnv\PrintSubEnv
+ \hbox\y@bgroup
+ \PrintEnvName{\begin}{\DescribeEnv@name}%
+ \macroargsstyle
+ \read@Macro@arg
+}
+\newcommand*\DescribeEnv@newline[1][0pt]{%
+ \strut\y@egroup
+ {\vskip#1}%
+ \hbox\y@bgroup\strut
+ \hspace*{\descsep}%
+ \ignorespaces
+}%
+\def\DescribeEnv@string{DescribeEnv}
+\newbox\descbox
+\def\endDescribeEnv{%
+ \y@egroup
+ \begingroup
+ \setbox\@tempboxa\lastbox
+ \ifcase0%
+ \ifdim\wd\@tempboxa>\descsep1\fi
+ \ifdim\ht\@tempboxa>\ht\strutbox1\fi
+ \ifdim\dp\@tempboxa>\dp\strutbox1\fi
+ \else
+ \box\@tempboxa
+ \fi
+ \endgroup
+ \hbox\y@bgroup
+ \PrintEnvName{\end}{\DescribeEnv@name}
+ \y@egroup
+ \y@egroup
+ \PrintEnv
+ \endgroup
+}
+\def\PrintMacroName#1{%
+ {\macrodescstyle{\strut
+ \texttt{\char92}%
+ \escapechar\m@ne
+ \string#1}}%
+}
+\let\PrintLengthName\PrintMacroName
+\def\PrintEnvName#1#2{%
+ \strut
+ \string#1\braceleft
+ {\macrodescstyle#2}%
+ \braceright
+}
+\def\PrintMacros{%
+ \par\vspace\beforedescskip
+ \noindent\hspace*{\descindent}%
+ \ifdim\wd\descbox>\linewidth
+ \makebox[\linewidth][c]{\fbox{\hspace*{\descsep}\usebox{\descbox}\hspace*{\descsep}}}
+ \else
+ \fbox{\hspace*{\descsep}\usebox{\descbox}\hspace*{\descsep}}%
+ \fi
+ \par\vspace\afterdescskip
+}
+\let\PrintLength\PrintMacros
+\def\PrintEnv{%
+ \par\vspace\beforedescskip
+ \noindent\hspace*{\descindent}%
+ \fbox{\hspace*{\descsep}\usebox{\descbox}\hspace*{\descsep}}%
+ \par\vspace\afterdescskip
+}
+\def\PrintSubEnv{%
+ \hbox{\hbox{\usebox{\descbox}}}%
+}
+{%
+\@firstofone{%
+ \catcode`\\=12
+ \gdef\bslash
+}{\}
+}%}
+\begingroup
+\catcode`\%=12
+\gdef\percent{%}
+\endgroup
+\begingroup
+\catcode`\<=1
+\catcode`\>=2
+\catcode`\{=12
+\catcode`\}=12
+\gdef\braceleft <{>
+\gdef\braceright<}>
+\endgroup
+\def\y@bgroup{\bgroup\color@setgroup}
+\def\y@egroup{\color@endgroup\egroup}
+\endinput
+%%
+%% End of file `ydoc-desc.sty'.
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
new file mode 100644
index 00000000000..e6fef3e7ffc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
@@ -0,0 +1,119 @@
+%%
+%% This is file `ydoc-doc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `doc')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackageSVN
+ [ydoc-doc]
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc package to provide 'doc' macros]
+\newcount\ydoc@bslashcnt
+\def\ydoc@countbslashes{%
+ \begingroup
+ \let\firstlinemacro\empty
+ \let\lastlinemacro\empty
+ \let\newlinemacro\empty
+ \let\spacemacro\empty
+ \def\bslashmacro{\global\advance\ydoc@bslashcnt by\@ne}%
+ \setbox\@tempboxa\hbox{\themacrocode}%
+ \endgroup
+}
+\def\CheckSum#1{%
+ \gdef\ydoc@checksum{#1}%
+}
+\let\ydoc@checksum\z@
+\def\AlsoImplementation{%
+ \gdef\StopEventually##1{%
+ \@bsphack
+ \gdef\Finale{##1\ydoc@checkchecksum}%
+ \@esphack
+ }%
+}
+\AlsoImplementation
+\def\OnlyDescription{%
+ \@bsphack
+ \long\gdef\StopEventually##1{##1\endinput}%
+ \@esphack
+}
+\let\Finale\relax
+\def\MakePercentIgnore{\catcode`\%9\relax}
+\def\MakePercentComment{\catcode`\%14\relax}
+\def\DocInput#1{\MakePercentIgnore\input{#1}\MakePercentComment}
+\providecommand*\CharacterTable[1]{%
+ \PackageWarning{ydoc}{Ignoring Character Table - not implemented yet!}{}{}%
+}
+\providecommand*\DoNotIndex[1]{%
+ \PackageWarning{ydoc}{Ignoring DoNotIndex - not implemented yet!}{}{}%
+}
+\providecommand*\changes[3]{%
+ \PackageWarning{ydoc}{Ignoring changes - not implemented yet!}{}{}%
+}
+\providecommand*\RecordChanges{%
+ \PackageWarning{ydoc}{List of changes not implemented yet!}{}{}%
+}
+\providecommand*\PrintChanges{%
+ \PackageWarning{ydoc}{List of changes not implemented yet!}{}{}%
+}
+\providecommand*\PrintIndex{%
+ \PackageWarning{ydoc}{Code index not implemented yet!}{}{}%
+}
+\providecommand*\CodelineIndex{%
+ \PackageWarning{ydoc}{Code line index not implemented yet!}{}{}%
+}
+\providecommand*\EnableCrossrefs{%
+ \PackageWarning{ydoc}{Cross references not implemented yet!}{}{}%
+}
+\providecommand*\GetFileInfo[1]{%
+ \PackageWarning{ydoc}{Get File Info not implemented yet!}{}{}%
+}
+\def\ydoc@checkchecksum{%
+ \ifnum\ydoc@checksum=\m@ne
+ \message{^^J}%
+ \message{**********************^^J}%
+ \message{* No Checksum found! *^^J}%
+ \message{**********************^^J}%
+ \else
+ \ifnum\ydoc@checksum=\ydoc@bslashcnt
+ \message{^^J}%
+ \message{*******************^^J}%
+ \message{* Checksum passed *^^J}%
+ \message{*******************^^J}%
+ \else
+ \message{^^J}%
+ \message{****************************^^J}%
+ \message{* Checksum wrong (\ydoc@checksum<>\the\ydoc@bslashcnt) ^^J}%
+ \message{****************************^^J}%
+ \GenericError{Checksum wrong}{}{}{}%
+ \fi
+ \fi
+}
+\RequirePackage{shortvrb}
+\MakeShortVerb{\|}
+\endinput
+%%
+%% End of file `ydoc-doc.sty'.
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty
new file mode 100644
index 00000000000..d8daf010426
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty
@@ -0,0 +1,84 @@
+%%
+%% This is file `ydoc-expl.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `expl')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackageSVN
+ [ydoc-expl]
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc package to insert live examples of LaTeX code]
+\RequirePackage{listings}
+\lst@RequireAspects{writefile}
+\def\ydoc@exafile{\jobname.exa}
+\def\exampleprintsettings{frame=lines}%
+\newbox\examplecodebox
+\newbox\exampleresultbox
+\def\BoxExample{%
+ \setbox\examplecodebox\hbox{\color@setgroup
+ \expandafter\expandafter\expandafter\lstinputlisting
+ \expandafter\expandafter\expandafter[%
+ \expandafter\exampleprintsettings\expandafter,\thisexampleprintsettings]%
+ {\ydoc@exafile}%
+ \color@endgroup}%
+ \setbox\exampleresultbox\hbox{\color@setgroup
+ \@@input\ydoc@exafile\relax
+ \color@endgroup}%
+}
+\RequirePackage{showexpl}
+\def\PrintExample{%
+ \begingroup
+ \lstset{basicstyle=\ttfamily}%
+ \MakePercentComment
+ \LTXinputExample[varwidth]{\ydoc@exafile}%
+ \endgroup
+}
+\def\examplecodesettings{gobble=4}
+\lstnewenvironment{examplecode}[1][]{%
+ \def\thisexampleprintsettings{#1}%
+ \expandafter\lstset\expandafter{\examplecodesettings,#1}%
+ \setbox\@tempboxa\hbox\bgroup
+ \lst@BeginWriteFile{\ydoc@exafile}%
+}
+{%
+ \lst@EndWriteFile
+ \egroup
+ \PrintExample
+}
+\RequirePackage{float}
+\floatstyle{plain}
+\newfloat{example}{tbhp}{loe}
+\floatname{example}{\examplename}
+\def\examplename{Example}
+\newenvironment{exampletable}{%
+ \floatstyle{plaintop}%
+ \restylefloat{example}%
+ \example
+}{\endexample}
+\endinput
+%%
+%% End of file `ydoc-expl.sty'.
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.cls b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls
new file mode 100644
index 00000000000..bbc121b7925
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls
@@ -0,0 +1,38 @@
+%%
+%% This is file `ydoc.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `class')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\ProvidesClassSVN
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc class: document LaTeX class and packages]
+\LoadClassWithOptions{article}
+%%\RequirePackage{doc}
+\RequirePackage{ydoc}
+\endinput
+%%
+%% End of file `ydoc.cls'.
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty
new file mode 100644
index 00000000000..08fce81ff34
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty
@@ -0,0 +1,44 @@
+%%
+%% This is file `ydoc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ydoc.dtx (with options: `package')
+%%
+%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de>
+%% WWW: http://latex.scharrer-online.de/
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ydoc.dtx and ydoc.ins
+%% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty,
+%% ydoc-expl.sty and ydoc-desc.sty.
+%%
+\RequirePackage{svn-prov}[2010/04/03]
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackageSVN
+ {$Id: ydoc.dtx 1847 2010-04-10 10:57:11Z martin $}
+ [v0.1alpha]
+ [ydoc package: document LaTeX class and packages]
+\RequirePackage{ydoc-code}
+\RequirePackage{ydoc-expl}
+\RequirePackage{ydoc-desc}
+\RequirePackage{ydoc-doc}
+
+\RequirePackage{newverbs}
+\MakeSpecialShortVerb{\qverb}{\"}
+\AtBeginDocument{\catcode`\^^A=14\relax}
+\endinput
+%%
+%% End of file `ydoc.sty'.