diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty | 46 |
1 files changed, 20 insertions, 26 deletions
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}% |