summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty40
1 files changed, 37 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty b/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty
index de68610d99e..374efea9d5d 100644
--- a/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty
+++ b/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.sty
@@ -1,6 +1,6 @@
-% $Id: ltxdockit.sty,v 1.2 2009/05/24 19:10:45 lehman stable $
+% $Id: ltxdockit.sty,v 1.2a 2010/02/12 20:20:16 lehman stable $
%
-% Copyright (c) 2008-2009 Philipp Lehman.
+% Copyright (c) 2008-2010 Philipp Lehman.
%
% Permission is granted to copy, distribute and/or modify this
% software under the terms of the LaTeX Project Public License
@@ -14,8 +14,13 @@
% implied warranties of merchantability and fitness for a
% particular purpose.
+\def\ltd@rcsid$#1: #2 #3 #4 #5${#4 v#3}
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltxdockit}[2009/05/24 v1.2 latex documentation kit]
+\ProvidesPackage{ltxdockit}
+[\ltd@rcsid $Id: ltxdockit.sty,v 1.2a 2010/02/12 20:20:16 lehman stable $
+ LaTeX documentation kit]
+
\RequirePackage{etoolbox}
\RequirePackage{listings}
\RequirePackage{color}
@@ -154,6 +159,34 @@
\renewcommand*{\makelabel}[1]{\hss\marglistfont##1}}}
{\endlist}
+\newenvironment*{keymarglist}
+ {\marglist
+ \setlength{\itemsep}{0pt}%
+ \raggedright}
+ {\endmarglist}
+
+% references
+
+\newrobustcmd*{\secref}{\refs{\S}{\S\S}}
+\newrobustcmd*{\Secref}{\secref}
+\newrobustcmd*{\tabref}{\refs{table}{tables}}
+\newrobustcmd*{\Tabref}{\refs{Table}{Tables}}
+
+\newrobustcmd*{\refs}[3]{%
+ \begingroup
+ \@tempcnta\z@
+ \def\do##1{\advance\@tempcnta\@ne}%
+ \docsvlist{#3}%
+ \@tempcntb\@ne
+ \def\@tempa{\def\@tempa{%
+ \advance\@tempcntb\@ne
+ \ifnumequal{\@tempcnta}{2}
+ { and }
+ {, }}}%
+ \def\do##1{\@tempa\ref{##1}}%
+ \ifnumgreater{\@tempcnta}{1}{#2}{#1}~\docsvlist{#3}%
+ \endgroup}
+
% syntax
\newenvironment*{ltxsyntax}
@@ -267,6 +300,7 @@
\ltd@parseargs}
\def\ltd@parseargs{%
+ \leavevmode
\futurelet\@let@token\ltd@parseargs@space}
\def\ltd@parseargs@space{%
\ifx\@let@token\@sptoken