diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/ydoc/README | 36 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ydoc/ydoc.pdf | bin | 932927 -> 312854 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/ydoc/ydoc.dtx | 427 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/ydoc/ydocstrip.tex | 70 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty | 46 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty | 62 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty | 43 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc.cfg | 49 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc.cls | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc.sty | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydocstrip.tex | 20 |
12 files changed, 437 insertions, 409 deletions
diff --git a/Master/texmf-dist/doc/latex/ydoc/README b/Master/texmf-dist/doc/latex/ydoc/README index 4a3dbd5b92d..99c38fb99fd 100644 --- a/Master/texmf-dist/doc/latex/ydoc/README +++ b/Master/texmf-dist/doc/latex/ydoc/README @@ -10,6 +10,38 @@ This is an alpha release. It should not be used yet for other packages. INSTALL ~~~~~~~ -Compile the 'ydoc.dtx' file multiple times using LaTeX (preferable 'pdflatex') to extract -the files and compile the documentation. Copy alls *.cls *.sty *.cfg files to ${TEXMF}/tex/latex/ydoc/. +This package might be part of your LaTeX distribution (TeX Live, MikTeX, ...) and then is installable using +the distributions package manager (TeX Live: 'tlmgr install ydoc'). +However, it is also manually installable using the following ways: + +1) TDS ZIP FILE +A TDS ZIP file includes all files in a installable format and using the required directory structure. +Simply unzip the TDS ZIP file over your TEXMF tree. + +The TDS ZIP file can be downloaded from CTAN: +http://mirrors.ctan.org/install/macros/latex/contrib/ydoc.tds.zip + + +2) DTX FILE +The 'ydoc.dtx' file includes all required files, which can be extracted by compiling it using TeX (not LaTeX): + + tex ydoc.dtx + +To build the documentation compile the same file using LaTeX (preferable 'pdflatex') multiple times: + + pdflatex ydoc.dtx + pdflatex ydoc.dtx + pdflatex ydoc.dtx + +Copy all files to their correct location of your local TEXMF tree. +For example under Linux a personal TEXMF is normally located at '~/texmf' ('$HOME/texmf'). +The files can be installed using the following Linux commands. For + + mkdir -p ${TEXMF}/tex/latex/ydoc/ + cp ydoc.cls ydoc*.sty ydoc.cfg ydocstrip.tex ${TEXMF}/tex/latex/ydoc/ + +Update the tree database file (might be not required for modern versions and personal TEXMF trees): + + texhash ${TEXMF} + diff --git a/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf b/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf Binary files differindex 59ae0373d1e..5ee0fb10f27 100644 --- a/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf +++ b/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf diff --git a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx index 0e8cccfa53c..406e1277337 100644 --- a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx +++ b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx @@ -1,3 +1,101 @@ +% \iffalse +%<*driver> +\expandafter\ifx\csname NeedsTeXFormat\endcsname\relax\else +\begingroup +\long\def\skip#1\NeedsTeXFormat{\endgroup\NeedsTeXFormat} +\expandafter\skip +\fi +%</driver> +% \fi +% +% \iffalse +%<*ydocstrip.tex> +% \fi +% +% \iffalse +\expandafter\ifx\csname ydocstripversion\endcsname\relax\else + \noindent +\fi + +\chardef\ydocstripversion=1 + +\input docstrip + + +\def\checkOption<#1{% + \ifcase + \ifx*#10\else \ifx/#11\else + \ifx+#12\else \ifx-#13\else + \ifx<#14\else + \ifx=#15\else + \ifx!#16\else + 10\fi\fi\fi\fi\fi\fi\fi\relax + \expandafter\starOption\or + \expandafter\slashOption\or + \expandafter\plusOption\or + \expandafter\minusOption\or + \expandafter\verbOption\or + \expandafter\varOption\or + \expandafter\valueOption\else + \expandafter\doOption\fi + #1} + +\def\varOption =#1#2>#3\endLine{{% + \ifx*#1\relax + \edef\varStop{\perCent<=/#2>}% + \global\expandafter\let\csname ydocstrip@var@#2\endcsname\empty% + \expandafter\def\csname ydocstrip@var@#2\endcsname##1{}% + \loop + \ifeof\inFile + \errmessage{Source file ended while reading a multi-line variable content!}% + \fi + \read\inFile to \inLine + \if 1\ifx\inLine\varStop 0\fi 1% if not inLine==varStop + \expandafter\xdef\csname ydocstrip@var@#2\endcsname{\csname ydocstrip@var@#2\endcsname^^J\inLine}% + \maybeMsg{.}% + \repeat + \else + \ifx/#1\relax + \errmessage{Error in expression: spurious '<=/#2>'}% + \else + \ifx+#1\relax + \expandafter\ifx\csname ydocstrip@var@#2\endcsname\relax + \expandafter\xdef\csname ydocstrip@var@#2\endcsname{#3}% + \else + \expandafter\xdef\csname ydocstrip@var@#2\endcsname{\csname ydocstrip@var@#2\endcsname^^J#3}% + \fi + \else + \expandafter\gdef\csname ydocstrip@var@#1#2\endcsname{#3}% + \fi + \fi + \fi +}} + + +\def\valueOption !#1>#2\endLine{% + \begingroup + \expandafter\let\expandafter\var\csname ydocstrip@var@#1\endcsname + \ifx\var\relax + \errmessage{Used variable '#1' was never defined!}% + \else + \ifx\var\empty\else + \def\do##1##2##3{% + \StreamPut##1{\csname ydocstrip@var@#1\endcsname}% + }% + \activefiles + \fi + \fi + \endgroup +} + +% \fi +% \iffalse +%</ydocstrip.tex> +% \fi +% +% \iffalse +%<*ydoc.ins> +% \fi % \iffalse COPYRIGHT %% %% Copyright (c) 2010-2011 by Martin Scharrer <martin@scharrer-online.de> @@ -22,14 +120,7 @@ % \fi % % \iffalse -%<*dtx> -\begingroup -\expandafter\ifx\csname install\endcsname\relax\fi -\expandafter\ifx\csname endinstall\endcsname\relax\fi -\install -%</dtx> -%<*install> -\input ydocstrip.tex +\input ydocstrip \preamble \endpreamble @@ -38,19 +129,19 @@ \askforoverwritefalse \generate{% - \file{ydoc.cls} {\from{ydoc.dtx}{class}}% - \file{ydoc.sty} {\from{ydoc.dtx}{package}}% - \file{ydoc.cfg} {\from{ydoc.dtx}{cfg}}% - \file{ydoc-code.sty}{\from{ydoc.dtx}{code}}% - \file{ydoc-desc.sty}{\from{ydoc.dtx}{desc}}% - \file{ydoc-expl.sty}{\from{ydoc.dtx}{expl}}% - \file{ydoc-doc.sty} {\from{ydoc.dtx}{doc}}% + \file{ydocstrip.tex}{\from{ydoc.dtx}{ydocstrip.tex}}% + \file{ydoc.ins} {\from{ydoc.dtx}{ydoc.ins}}% + \file{ydoc.cls} {\from{ydoc.dtx}{ydoc.cls}}% + \file{ydoc.sty} {\from{ydoc.dtx}{ydoc.sty}}% + \file{ydoc.cfg} {\from{ydoc.dtx}{ydoc.cfg}}% + \file{ydoc-code.sty}{\from{ydoc.dtx}{ydoc-code.sty}}% + \file{ydoc-desc.sty}{\from{ydoc.dtx}{ydoc-desc.sty}}% + \file{ydoc-expl.sty}{\from{ydoc.dtx}{ydoc-expl.sty}}% + \file{ydoc-doc.sty} {\from{ydoc.dtx}{ydoc-doc.sty}}% } \begingroup -\expandafter\obeyspaces -\csname AtEndDocument\endcsname{% -\ifx\Msg\undefined\let\Msg\typeout\fi +\obeyspaces \Msg{*************************************************************}% \Msg{* *}% \Msg{* To finish the installation you have to move the following *}% @@ -62,40 +153,37 @@ \Msg{* ydoc-desc.sty *}% \Msg{* ydoc-expl.sty *}% \Msg{* ydoc-doc.sty *}% +\Msg{* ydocstrip.tex *}% \Msg{* *}% -\Msg{* To produce the documentation run the file standalone.dtx *}% +\Msg{* To produce the documentation run the file ydoc.dtx *}% \Msg{* through LaTeX. *}% \Msg{* *}% \Msg{* Happy TeXing! *}% \Msg{* *}% \Msg{*************************************************************}% -}% -\endgroup +\endgroup% -%<install>\endbatchfile -%</install> -%<*dtx> -\endinstall -\endgroup -%</dtx> -%<install>% vim: ft=tex +\endbatchfile +% vim: ft=tex +% \fi +% \iffalse +%</ydoc.ins> % \fi % % \iffalse %<*driver> -% \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesFileSVN[ydoc.dtx] - {$Id: ydoc_doc.dtx 2378 2011-03-20 20:34:27Z martin $} +\ProvidesFile{ydoc.dtx}[% +%<=*DATE> + 2011/08/11 +%<=/DATE> %<=*VERSION> - [v0.5alpha] + v0.5alpha %<=/VERSION> - [DTX file of ydoc] + DTX file of ydoc] -\DefineFileInfoSVN -\GetFileInfoSVN* -\documentclass{ydoc}[\filedate] +\message{^^JRun this DTX file using 'tex' to extract all files!^^J} +\documentclass{ydoc}[2011/08/11] \newdimen\tempskip @@ -106,7 +194,7 @@ \caption } -\OnlyDescription +%\OnlyDescription \begin{document} \DocInput{ydoc.dtx} \PrintChanges @@ -415,6 +503,7 @@ % \subsection{Macros and Environments to include LaTeX Code Examples} % \DescribeEnv{example} % \DescribeEnv{examplecode} +% % (to be written) % % \StopEventually{} @@ -422,21 +511,21 @@ % \clearpage % \section{Implementation} % +% % \iffalse -%<*class> +%<*ydoc.cls> % \fi % \subsection{Class File} % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesClassSVN - {$Id: ydoc_cls.dtx 2336 2011-03-18 00:56:07Z martin $} +\ProvidesClass{ydoc}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc class: document LaTeX class and packages] + ydoc class: document LaTeX class and packages] % \end{macrocode} % % At the moment simply load \cls{article} class with \opt{a4paper} option @@ -448,26 +537,24 @@ \LoadClass{article} \RequirePackage{ydoc} % \end{macrocode} -% % \iffalse -%</class> +%</ydoc.cls> % \fi % % \iffalse -%<*package> +%<*ydoc.sty> % \fi % \subsection{Package File} % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_sty.dtx 2332 2011-03-17 17:12:35Z martin $} +\ProvidesPackage{ydoc}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc package: document LaTeX class and packages] + ydoc package: document LaTeX class and packages] % \end{macrocode} % % \begin{macrocode} @@ -484,46 +571,39 @@ \input{ydoc.cfg} % \end{macrocode} % \iffalse -%</package> +%</ydoc.sty> % \fi % -% % \iffalse -%<*cfg> +%<*ydoc.cfg> % \fi % \subsection{Config File} % \begin{macrocode} %% Please delete the following line on manual changes: -\ProvidesFileSVN[ydoc.cfg]{$Id: ydoc_cfg.dtx 2338 2011-03-18 01:14:34Z martin $} +\ProvidesFile{ydoc.cfg}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [Default config file for ydoc] + Default config file for ydoc] % \end{macrocode} % -% Use 'Linux Libertine' font as main font if installed. -% Define "\/" to some fixed italic corrections -% as long there is none defined by the font. % \begin{macrocode} \usepackage[T1]{fontenc} -\IfFileExists{libertine.sty}{% - \usepackage{libertine} - \begingroup - \setbox0\hbox{\it g\/} - \setbox1\hbox{\it g} - \ifnum\wd0>\wd1\else - \gdef\/{\kern 0.8864pt} - \fi - \endgroup +\IfFileExists{fourier.sty}{% + \usepackage{fourier} }{} % \end{macrocode} % -% Only use 'lmodern' for the 'tt' font if installed. +% Use 'lmodern' only for the 'tt' font if fourier is installed. % \begin{macrocode} -\IfFileExists{lmodern.sty}{% - %\usepackage{lmodern} - \renewcommand{\ttdefault}{lmtt} +\IfFileExists{lmodern.sty}{ + \IfFileExists{fourier.sty}{ + \renewcommand{\ttdefault}{lmtt} + }{ + \usepackage{lmodern} + } }{} % \end{macrocode} % @@ -552,26 +632,25 @@ % \begin{macrocode} \reversemarginpar % \end{macrocode} +% % \iffalse -%</cfg> +%</ydoc.cfg> % \fi % % \iffalse -%<*code> +%<*ydoc-code.sty> % \fi -% % \subsection{Macros and Environments to document Implementations} % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN - {$Id: ydoc_code_sty.dtx 2339 2011-03-18 20:18:09Z martin $} +\ProvidesPackage{ydoc-code}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc package to document macro code] + ydoc package to document macro code] % \end{macrocode} % % \begin{macrocode} @@ -812,6 +891,18 @@ % \end{macrocode} % \end{environment} % +% \begin{environment}{key}[2]{key family}{key name} +% \begin{macrocode} +\def\key#1#2{% + \PrintMacroImpl{KV@#1@#2}% + \@ifnextchar[%] + {\macro@impl@args}% + {}% +} +\def\endkey{} +% \end{macrocode} +% \end{environment} +% % \begin{environment}{environment}[1]{environment name} % \begin{macrocode} \def\environment#1{% @@ -824,6 +915,20 @@ % \end{macrocode} % \end{environment} % +% +% \begin{environment}{style}[1]{style name} +% \begin{macrocode} +\def\style#1{% + \PrintStyleImplName{#1}% + \@ifnextchar[%] + {\macro@impl@args}% + {}% +} +\def\endstyle{} +\def\PrintStyleImplName{\PrintEnvImplName} +% \end{macrocode} +% \end{environment} +% % \begin{macro}{\PrintMacroImpl}[1]{macro (token)} % \begin{macrocode} \def\PrintMacroImpl#1{% @@ -885,25 +990,23 @@ }%} % \end{macrocode} % \end{macro} -% % \iffalse -%</code> +%</ydoc-code.sty> % \fi % % \iffalse -%<*doc> +%<*ydoc-doc.sty> % \fi % \subsection{Provide \pkg{doc} macros} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_doc_sty.dtx 2378 2011-03-20 20:34:27Z martin $} +\ProvidesPackage{ydoc-doc}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc package to provide 'doc' macros] + ydoc package to provide 'doc' macros] % \end{macrocode} % % \begin{macro}{\ydoc@countbslashes} @@ -1220,26 +1323,24 @@ \let\orig@maketitle\relax } % \end{macrocode} -% % \iffalse -%</doc> +%</ydoc-doc.sty> % \fi % % \iffalse -%<*desc> +%<*ydoc-desc.sty> % \fi % \subsection{Description Macros and Environments} % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc-desc] - {$Id: ydoc_desc_sty.dtx 2369 2011-03-20 00:04:45Z martin $} +\ProvidesPackage{ydoc-desc}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc package to describe macros, environments, options etc.] + ydoc package to describe macros, environments, options etc.] % \end{macrocode} % % \begin{macrocode} @@ -1264,6 +1365,7 @@ % \begin{macrocode} \RequirePackage{xcolor} \definecolor{macrodesc}{rgb}{0,0.2,0.6} +\definecolor{keydesc}{rgb}{0,0.4,0.9} \definecolor{macroimpl}{rgb}{0,0.1,0.3} \definecolor{meta}{rgb}{0,0.25,0.75} \definecolor{scriptcolor}{rgb}{0.2,0.6,0.2} @@ -1420,6 +1522,12 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\Key} +% \begin{macrocode} +\newrobustcmd*\Key[1]{\PrintKeyName{#1}\MacroArgs} +% \end{macrocode} +% \end{macro} +% % \subsubsection{Text Formatting Styles} % % \begin{macro}{\macrodescstyle} @@ -1429,6 +1537,13 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\macrodescstyle} +% Style of described macro names. +% \begin{macrocode} +\def\keydescstyle{\ttfamily\bfseries\color{keydesc}} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\macroargsstyle} % Default style for macro arguments (e.g.\ \cs{MacroArgs}). % \begin{macrocode} @@ -1571,7 +1686,7 @@ \def\AlsoMacro@#1{% \endgroup %<*DEBUG> - \typeout{DEBUG: Macro: \string#1}% + %\typeout{DEBUG: Macro: \string#1}% %</DEBUG> \PrintMacroName{#1}% \read@Macro@arg @@ -1618,14 +1733,14 @@ \ifx\handler\relax \def\handler{\ifhmode\unskip\fi\end@Macro@args}% %<*DEBUG> - \typeout{DEBUG: Stopped at: \expandafter\meaning\csname @let@token\endcsname}% - \typeout{}% - \else - \expandafter\ifx\csname @let@token\endcsname\AlsoMacro - \typeout{DEBUG: TOKEN: \string\AlsoMacro}% - \else - \typeout{DEBUG: TOKEN: \expandafter\meaning\csname @let@token\endcsname}% - \fi + % \typeout{DEBUG: Stopped at: \expandafter\meaning\csname @let@token\endcsname}% + % \typeout{}% + %\else + %\expandafter\ifx\csname @let@token\endcsname\AlsoMacro + % \typeout{DEBUG: TOKEN: \string\AlsoMacro}% + %\else + % \typeout{DEBUG: TOKEN: \expandafter\meaning\csname @let@token\endcsname}% + %\fi %</DEBUG> \fi \handler @@ -1905,6 +2020,19 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\DescribeKey} +% \begin{macrocode} +\def\DescribeKey{% + \DescribeKeys + \let\DescribeKeys\y@egroup + \optionalon + \def\after@Macro@args{\endDescribeKeys}% + \begingroup\makeatletter + \Describe@Macro +} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\Describe@Macro} % \begin{macrocode} \def\Describe@Macro#1{% @@ -1979,6 +2107,7 @@ % \begin{macrocode} \define@Macro@handler\AlsoMacro{} \define@Macro@handler\DescribeMacro{} +\define@Macro@handler\DescribeKey{} % \end{macrocode} % % \begin{macro}{\MacroArgs} @@ -1991,8 +2120,8 @@ \ydoc@macrocatcodes \macroargsstyle %<*DEBUG> - \typeout{}% - \typeout{DEBUG: Start MacroArgs}% + %\typeout{}% + %\typeout{DEBUG: Start MacroArgs}% %</DEBUG> \read@Macro@arg } @@ -2021,6 +2150,29 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\DescribeKeys} +% \begin{macrocode} +\def\DescribeKeys{% + \begingroup + \let\PrintMacroName\PrintKeyName + \let\Key\@Macro + \parindent=0pt\relax + \setbox\descbox\vbox\y@bgroup +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\endDescribeKeys} +% \begin{macrocode} +\def\endDescribeKeys{% + \y@egroup + \PrintKeys + \endgroup +} +\def\PrintKeys{\PrintMacros} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\DescribeMacrosTabcolsep} % \begin{macrocode} \def\DescribeMacrosTabcolsep{\tabcolsep} @@ -2208,6 +2360,16 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\PrintKeyName} +% Formats macro name. The backslash is forced to |tt| font. +% \begin{macrocode} +\def\PrintKeyName#1{% + {\keydescstyle{\strut + #1\strut}}% +} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\PrintLengthName} % Formats length register name. % \begin{macrocode} @@ -2237,7 +2399,7 @@ \par\vspace\beforedescskip \begingroup \sbox\@tempboxa{\descframe{\usebox{\descbox}}}% - \Needspace*{\dimexpr\ht\@tempboxa+2\baselineskip\relax}% + \Needspace*{\dimexpr\ht\@tempboxa+3\baselineskip\relax}% \par\noindent \ifdim\wd\@tempboxa>\dimexpr\linewidth-2\descindent\relax \makebox[\linewidth][c]{\usebox\@tempboxa}% @@ -2378,26 +2540,24 @@ {\par\egroup\smallskip\noindent\ignorespacesafterend} % \end{macrocode} % \end{environment} -% % \iffalse -%</desc> +%</ydoc-desc.sty> % \fi % % \iffalse -%<*expl> +%<*ydoc-expl.sty> % \fi % \subsection{Include Code Examples} % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_expl_sty.dtx 2332 2011-03-17 17:12:35Z martin $} +\ProvidesPackage{ydoc-expl}[% +%<!DATE> %<!VERSION> %<*DRIVER> - [develop] + 2011/08/11 develop %</DRIVER> - [ydoc package to insert live examples of LaTeX code] + ydoc package to insert live examples of LaTeX code] % \end{macrocode} % % \iffalse @@ -2436,11 +2596,17 @@ \def\ydoc@exafile{\jobname.exa} % \end{macrocode} % -% \begin{macro}{\exampleprintsettings} +% \begin{style}{examplecode} % \begin{macrocode} -\def\exampleprintsettings{numbers=left,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}% +\lstdefinestyle{examplecode}{numbers=left,firstnumber=1,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}% % \end{macrocode} -% \end{macro} +% \end{style} +% +% \begin{style}{exampleextract} +% \begin{macrocode} +\lstdefinestyle{exampleextract}{gobble=4}% +% \end{macrocode} +% \end{style} % % \begin{macrocode} \newbox\examplecodebox @@ -2451,9 +2617,7 @@ % \begin{macrocode} \def\BoxExample{% \setbox\examplecodebox\hbox{\color@setgroup - \expandafter\expandafter\expandafter\lstinputlisting - \expandafter\expandafter\expandafter[% - \expandafter\exampleprintsettings\expandafter,\thisexampleprintsettings]% + \lstinputlisting[style=examplecode,style=thisexampleprint]% {\ydoc@exafile}% \unskip\color@endgroup}% \setbox\exampleresultbox\hbox{\color@setgroup @@ -2469,7 +2633,7 @@ \RequirePackage{showexpl} \def\PrintExample{% \begingroup - \lstset{basicstyle=\ttfamily}% + \lstset{style=examplecode}% \MakePercentComment \LTXinputExample[varwidth]{\ydoc@exafile}% \endgroup @@ -2509,16 +2673,11 @@ % \end{macrocode} % \end{macro} % -% -% \begin{macrocode} -\def\examplecodesettings{gobble=4} -% \end{macrocode} -% % \begin{environment}{examplecode} % \begin{macrocode} \lstnewenvironment{examplecode}[1][]{% - \def\thisexampleprintsettings{#1}% - \expandafter\lstset\expandafter{\examplecodesettings,#1}% + \lstdefinestyle{thisexampleprint}{#1}% + \lstset{style=exampleextract,#1}% \setbox\@tempboxa\hbox\bgroup \lst@BeginWriteFile{\ydoc@exafile}% } @@ -2556,9 +2715,9 @@ }{\endexample} % \end{macrocode} % \end{environment} -% % \iffalse -%</expl> +%</ydoc-expl.sty> % \fi +% % \Finale % \endinput diff --git a/Master/texmf-dist/source/latex/ydoc/ydocstrip.tex b/Master/texmf-dist/source/latex/ydoc/ydocstrip.tex deleted file mode 100644 index 25ec2c5e63f..00000000000 --- a/Master/texmf-dist/source/latex/ydoc/ydocstrip.tex +++ /dev/null @@ -1,70 +0,0 @@ -%&pdflatex -\input docstrip - -\def\checkOption<#1{% - \ifcase - \ifx*#10\else \ifx/#11\else - \ifx+#12\else \ifx-#13\else - \ifx<#14\else - \ifx=#15\else - \ifx!#16\else - 10\fi\fi\fi\fi\fi\fi\fi\relax - \expandafter\starOption\or - \expandafter\slashOption\or - \expandafter\plusOption\or - \expandafter\minusOption\or - \expandafter\verbOption\or - \expandafter\varOption\or - \expandafter\valueOption\else - \expandafter\doOption\fi - #1} - -\def\varOption =#1#2>#3\endLine{{% - \ifx*#1\relax - \edef\varStop{\perCent<=/#2>}% - \global\expandafter\let\csname ydocstrip@var@#2\endcsname\empty% - \expandafter\def\csname ydocstrip@var@#2\endcsname##1{}% - \loop - \ifeof\inFile - \errmessage{Source file ended while reading a multi-line variable content!}% - \fi - \read\inFile to \inLine - \if 1\ifx\inLine\varStop 0\fi 1% if not inLine==varStop - \expandafter\xdef\csname ydocstrip@var@#2\endcsname{\csname ydocstrip@var@#2\endcsname^^J\inLine}% - \maybeMsg{.}% - \repeat - \else - \ifx/#1\relax - \errmessage{Error in expression: spurious '<=/#2>'}% - \else - \ifx+#1\relax - \expandafter\ifx\csname ydocstrip@var@#2\endcsname\relax - \expandafter\xdef\csname ydocstrip@var@#2\endcsname{#3}% - \else - \expandafter\xdef\csname ydocstrip@var@#2\endcsname{\csname ydocstrip@var@#2\endcsname^^J#3}% - \fi - \else - \expandafter\gdef\csname ydocstrip@var@#1#2\endcsname{#3}% - \fi - \fi - \fi -}} - - -\def\valueOption !#1>#2\endLine{% - \begingroup - \expandafter\let\expandafter\var\csname ydocstrip@var@#1\endcsname - \ifx\var\relax - \errmessage{Used variable '#1' was never defined!}% - \else - \ifx\var\empty\else - \def\do##1##2##3{% - \StreamPut##1{\csname ydocstrip@var@#1\endcsname}% - }% - \activefiles - \fi - \fi - \endgroup -} - - diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty index 2d03623c619..a62e7ba0c1e 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty @@ -4,34 +4,13 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `code') +%% ydoc.dtx (with options: `ydoc-code.sty') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN - {$Id: ydoc_code_sty.dtx 2339 2011-03-18 20:18:09Z martin $} - [v0.5alpha] - [ydoc package to document macro code] +\ProvidesPackage{ydoc-code}[% + 2011/08/11 + v0.5alpha + ydoc package to document macro code] \RequirePackage{hyperref} \hypersetup{colorlinks=true,pdfborder=0 0 0,pdfborderstyle={}} \IfFileExists{needspace.sty}{% @@ -179,6 +158,13 @@ {}% } \def\endmacro{} +\def\key#1#2{% + \PrintMacroImpl{KV@#1@#2}% + \@ifnextchar[%] + {\macro@impl@args}% + {}% +} +\def\endkey{} \def\environment#1{% \PrintEnvImplName{#1}% \@ifnextchar[%] @@ -186,6 +172,14 @@ {}% } \def\endenvironment{} +\def\style#1{% + \PrintStyleImplName{#1}% + \@ifnextchar[%] + {\macro@impl@args}% + {}% +} +\def\endstyle{} +\def\PrintStyleImplName{\PrintEnvImplName} \def\PrintMacroImpl#1{% \par\bigskip\noindent \Needspace*{3\baselineskip}% diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty index a9e69681788..8419a02a597 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty @@ -4,34 +4,13 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `desc') +%% ydoc.dtx (with options: `ydoc-desc.sty') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc-desc] - {$Id: ydoc_desc_sty.dtx 2369 2011-03-20 00:04:45Z martin $} - [v0.5alpha] - [ydoc package to describe macros, environments, options etc.] +\ProvidesPackage{ydoc-desc}[% + 2011/08/11 + v0.5alpha + ydoc package to describe macros, environments, options etc.] \IfFileExists{needspace.sty}{% \RequirePackage{needspace} }{% @@ -41,6 +20,7 @@ \RequirePackage{etoolbox} \RequirePackage{xcolor} \definecolor{macrodesc}{rgb}{0,0.2,0.6} +\definecolor{keydesc}{rgb}{0,0.4,0.9} \definecolor{macroimpl}{rgb}{0,0.1,0.3} \definecolor{meta}{rgb}{0,0.25,0.75} \definecolor{scriptcolor}{rgb}{0.2,0.6,0.2} @@ -130,7 +110,9 @@ \definecolor{opt}{rgb}{0.5,0.16666,0} \newrobustcmd*\cs[1]{\texttt{\textbackslash #1}} \newrobustcmd*\cmd[1]{\texttt{{\escapechar=92\string#1}}} +\newrobustcmd*\Key[1]{\PrintKeyName{#1}\MacroArgs} \def\macrodescstyle{\ttfamily\bfseries\color{macrodesc}} +\def\keydescstyle{\ttfamily\bfseries\color{keydesc}} \def\macroargsstyle{\ttfamily} \def\envcodestyle{\ttfamily} \def\verbstyle{\verbatim@font} @@ -357,6 +339,14 @@ \macroargsstyle \read@Macro@arg~% } +\def\DescribeKey{% + \DescribeKeys + \let\DescribeKeys\y@egroup + \optionalon + \def\after@Macro@args{\endDescribeKeys}% + \begingroup\makeatletter + \Describe@Macro +} \def\Describe@Macro#1{% \endgroup \edef\name{\expandafter\@gobble\string#1}% @@ -397,6 +387,7 @@ } \define@Macro@handler\AlsoMacro{} \define@Macro@handler\DescribeMacro{} +\define@Macro@handler\DescribeKey{} \newcommand*\MacroArgs{% \begingroup \def\end@Macro@args{\endgroup\xspace}% @@ -416,6 +407,19 @@ \PrintMacros \endgroup } +\def\DescribeKeys{% + \begingroup + \let\PrintMacroName\PrintKeyName + \let\Key\@Macro + \parindent=0pt\relax + \setbox\descbox\vbox\y@bgroup +} +\def\endDescribeKeys{% + \y@egroup + \PrintKeys + \endgroup +} +\def\PrintKeys{\PrintMacros} \def\DescribeMacrosTabcolsep{\tabcolsep} \def\DescribeMacrosTab{% \DescribeMacros @@ -520,6 +524,10 @@ \escapechar\m@ne \string#1\strut}}% } +\def\PrintKeyName#1{% + {\keydescstyle{\strut + #1\strut}}% +} \let\PrintLengthName\PrintMacroName \def\PrintEnvName#1#2{% \strut @@ -531,7 +539,7 @@ \par\vspace\beforedescskip \begingroup \sbox\@tempboxa{\descframe{\usebox{\descbox}}}% - \Needspace*{\dimexpr\ht\@tempboxa+2\baselineskip\relax}% + \Needspace*{\dimexpr\ht\@tempboxa+3\baselineskip\relax}% \par\noindent \ifdim\wd\@tempboxa>\dimexpr\linewidth-2\descindent\relax \makebox[\linewidth][c]{\usebox\@tempboxa}% diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty index b9dcc943a96..9164dbd36aa 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty @@ -4,34 +4,13 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `doc') +%% ydoc.dtx (with options: `ydoc-doc.sty') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_doc_sty.dtx 2378 2011-03-20 20:34:27Z martin $} - [v0.5alpha] - [ydoc package to provide 'doc' macros] +\ProvidesPackage{ydoc-doc}[% + 2011/08/11 + v0.5alpha + ydoc package to provide 'doc' macros] \newcount\ydoc@bslashcnt \def\ydoc@countbslashes{% \begingroup diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty index ff5f245a205..70781dba415 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty @@ -4,45 +4,23 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `expl') +%% ydoc.dtx (with options: `ydoc-expl.sty') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_expl_sty.dtx 2332 2011-03-17 17:12:35Z martin $} - [v0.5alpha] - [ydoc package to insert live examples of LaTeX code] +\ProvidesPackage{ydoc-expl}[% + 2011/08/11 + v0.5alpha + ydoc package to insert live examples of LaTeX code] \RequirePackage{listings} \lst@RequireAspects{writefile} \def\ydoc@exafile{\jobname.exa} -\def\exampleprintsettings{numbers=left,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}% +\lstdefinestyle{examplecode}{numbers=left,firstnumber=1,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}% +\lstdefinestyle{exampleextract}{gobble=4}% \newbox\examplecodebox \newbox\exampleresultbox \def\BoxExample{% \setbox\examplecodebox\hbox{\color@setgroup - \expandafter\expandafter\expandafter\lstinputlisting - \expandafter\expandafter\expandafter[% - \expandafter\exampleprintsettings\expandafter,\thisexampleprintsettings]% + \lstinputlisting[style=examplecode,style=thisexampleprint]% {\ydoc@exafile}% \unskip\color@endgroup}% \setbox\exampleresultbox\hbox{\color@setgroup @@ -73,10 +51,9 @@ \fi \endgroup } -\def\examplecodesettings{gobble=4} \lstnewenvironment{examplecode}[1][]{% - \def\thisexampleprintsettings{#1}% - \expandafter\lstset\expandafter{\examplecodesettings,#1}% + \lstdefinestyle{thisexampleprint}{#1}% + \lstset{style=exampleextract,#1}% \setbox\@tempboxa\hbox\bgroup \lst@BeginWriteFile{\ydoc@exafile}% } diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg b/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg index 38b4dae7ae8..2820d97184e 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg @@ -4,46 +4,23 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `cfg') +%% ydoc.dtx (with options: `ydoc.cfg') %% -%% -%% Copyright (c) 2010-2011 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. -%% %% Please delete the following line on manual changes: -\ProvidesFileSVN[ydoc.cfg]{$Id: ydoc_cfg.dtx 2338 2011-03-18 01:14:34Z martin $} - [v0.5alpha] - [Default config file for ydoc] +\ProvidesFile{ydoc.cfg}[% + 2011/08/11 + v0.5alpha + Default config file for ydoc] \usepackage[T1]{fontenc} -\IfFileExists{libertine.sty}{% - \usepackage{libertine} - \begingroup - \setbox0\hbox{\it g\/} - \setbox1\hbox{\it g} - \ifnum\wd0>\wd1\else - \gdef\/{\kern 0.8864pt} - \fi - \endgroup +\IfFileExists{fourier.sty}{% + \usepackage{fourier} }{} -\IfFileExists{lmodern.sty}{% - %\usepackage{lmodern} - \renewcommand{\ttdefault}{lmtt} +\IfFileExists{lmodern.sty}{ + \IfFileExists{fourier.sty}{ + \renewcommand{\ttdefault}{lmtt} + }{ + \usepackage{lmodern} + } }{} \urlstyle{sf} \usepackage{ifpdf} diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.cls b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls index 0861fe49aaa..6ac1b821f2a 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc.cls +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls @@ -4,34 +4,13 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `class') +%% ydoc.dtx (with options: `ydoc.cls') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesClassSVN - {$Id: ydoc_cls.dtx 2336 2011-03-18 00:56:07Z martin $} - [v0.5alpha] - [ydoc class: document LaTeX class and packages] +\ProvidesClass{ydoc}[% + 2011/08/11 + v0.5alpha + ydoc class: document LaTeX class and packages] \PassOptionsToClass{a4paper}{article} \DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{article}} \ProcessOptions\relax diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty index 9be7a39ce00..aaa166c3072 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydoc.sty +++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty @@ -4,34 +4,13 @@ %% %% The original source files were: %% -%% ydoc.dtx (with options: `package') +%% ydoc.dtx (with options: `ydoc.sty') %% -%% -%% Copyright (c) 2010-2011 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. -%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\RequirePackage{svn-prov}[2010/04/03] -\ProvidesPackageSVN[ydoc] - {$Id: ydoc_sty.dtx 2332 2011-03-17 17:12:35Z martin $} - [v0.5alpha] - [ydoc package: document LaTeX class and packages] +\ProvidesPackage{ydoc}[% + 2011/08/11 + v0.5alpha + ydoc package: document LaTeX class and packages] \RequirePackage{svn-prov}[2010/04/03] \RequirePackage{ydoc-code} \RequirePackage{ydoc-expl} diff --git a/Master/texmf-dist/tex/latex/ydoc/ydocstrip.tex b/Master/texmf-dist/tex/latex/ydoc/ydocstrip.tex index 25ec2c5e63f..358db8ae451 100644 --- a/Master/texmf-dist/tex/latex/ydoc/ydocstrip.tex +++ b/Master/texmf-dist/tex/latex/ydoc/ydocstrip.tex @@ -1,4 +1,17 @@ -%&pdflatex +%% +%% This is file `ydocstrip.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ydoc.dtx (with options: `ydocstrip.tex') +%% +\expandafter\ifx\csname ydocstripversion\endcsname\relax\else + \noindent +\fi + +\chardef\ydocstripversion=1 + \input docstrip \def\checkOption<#1{% @@ -50,7 +63,6 @@ \fi }} - \def\valueOption !#1>#2\endLine{% \begingroup \expandafter\let\expandafter\var\csname ydocstrip@var@#1\endcsname @@ -67,4 +79,6 @@ \endgroup } - +\endinput +%% +%% End of file `ydocstrip.tex'. |