summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-05 00:40:56 +0000
committerKarl Berry <karl@freefriends.org>2012-05-05 00:40:56 +0000
commit0dda076376f317c796a6a40d5006ef05cc7c031b (patch)
tree35c84148fa9a5d94eb0ea032fab58172b7dc6eac /Master/texmf-dist
parent2a4a5f695e45cb0addf21e35fe7d5089202afeca (diff)
ydoc (3may12)
git-svn-id: svn://tug.org/texlive/trunk@26202 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/ydoc/ydoc.pdfbin324025 -> 327049 bytes
-rw-r--r--Master/texmf-dist/source/latex/ydoc/ydoc.dtx70
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty10
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty18
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty2
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty24
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc.cls2
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc.sty2
9 files changed, 98 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf b/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf
index fe39b805255..fb097616b79 100644
--- a/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf
+++ b/Master/texmf-dist/doc/latex/ydoc/ydoc.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
index 8f96314275b..c285ee5ca96 100644
--- a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
+++ b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
@@ -182,7 +182,7 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesFile{ydoc.dtx}[%
%<=*DATE>
- 2011/11/19
+ 2012/05/03
%<=/DATE>
%<=*VERSION>
v0.6alpha
@@ -821,18 +821,20 @@
% \end{macrocode}
% \end{macro}
%
-%
-% \begin{macro}{\ydoclistingssettings}
% \begin{macrocode}
-\def\ydoclistingssettings{%
- \lstset{%
+\lstdefinestyle{ydoccode}{%
language=[latex]tex,basicstyle=\ttfamily,
numbers=left,numberstyle=\tiny\color{gray},firstnumber=last,
breaklines,prebreak={\mbox{\tiny$\swarrow$}},
commentstyle=\color{black!60},
- }%
+}%
+% \end{macrocode}
+%
+% \begin{macro}{\ydoclistingssettings}
+% \begin{macrocode}
+\def\ydoclistingssettings{%
+ \lstset{style=ydoccode}%
}
-\ydoclistingssettings
% \end{macrocode}
% \end{macro}
%
@@ -1391,6 +1393,15 @@
% \subsubsection{Color and style definitions}
% \begin{macrocode}
\RequirePackage{xcolor}
+% \end{macrocode}
+% Define special no-op `none' color which does not change the color.
+% This is not yet tested and may break output files, but seems to work fine with PDF.
+% \begin{macrocode}
+\expandafter\def\csname\string\color@none\endcsname{%
+ \xcolor@ {}{}{}{}
+}
+% \end{macrocode}
+% \begin{macrocode}
\definecolor{macrodesc}{rgb}{0,0.2,0.6}
\definecolor{keydesc}{rgb}{0,0.4,0.9}
\definecolor{macroimpl}{rgb}{0,0.1,0.3}
@@ -1526,11 +1537,11 @@
\newcommand*\envstyle[1]{\texttt{\textcolor{env}{#1}}}
\newcommand*\optstyle[1]{\textsf{\textcolor{opt}{#1}}}
\newcommand*\filestyle[1]{\texttt{\textcolor{file}{#1}}}
-\colorlet{cls}{black}
-\colorlet{lib}{black}
-\colorlet{env}{black}
-\colorlet{file}{black}
-\colorlet{pkg}{black}
+\colorlet{cls}{none}
+\colorlet{lib}{none}
+\colorlet{env}{none}
+\colorlet{file}{none}
+\colorlet{pkg}{none}
\definecolor{opt}{rgb}{0.5,0.16666,0}
% \end{macrocode}
% \end{macro}
@@ -1934,6 +1945,14 @@
% \end{macrocode}
% \end{macro}
%
+% Allows `|=|' to be used directly without switching to verbatim
+% mode. This is especially useful for keys.
+% \begin{macrocode}
+\define@Macro@handler{=}={%
+ =\read@Macro@arg
+}
+% \end{macrocode}
+%
% \begin{macro}{\read@Macro@verb}
% Sets up verbatim mode calls second macro.
% \begin{macrocode}
@@ -2626,7 +2645,29 @@
%
% \begin{style}{examplecode}
% \begin{macrocode}
-\lstdefinestyle{examplecode}{numbers=left,firstnumber=1,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}%
+\lstdefinestyle{examplecode}{%
+ language=[latex]tex,
+ basicstyle=\ttfamily,
+ columns=fullflexible,
+ numbers=left,
+ firstnumber=1,
+ numberstyle=\tiny\color{gray}\sffamily,
+ numbersep=5pt,
+ breaklines,prebreak={\mbox{\tiny$\swarrow$}},
+ commentstyle=\color{black!60},
+}%
+% \end{macrocode}
+% \end{style}
+%
+% \begin{style}{exampleresult}
+% \begin{macrocode}
+\lstdefinestyle{exampleresult}{%
+ firstnumber=1,
+ gobble=0,
+ basicstyle=\ttfamily,
+ columns=fullflexible,
+ commentstyle=\color{black!60},
+}
% \end{macrocode}
% \end{style}
%
@@ -2649,6 +2690,7 @@
{\ydoc@exafile}%
\unskip\color@endgroup}%
\setbox\exampleresultbox\hbox{\color@setgroup
+ \lstset{style=exampleresult}%
\@@input\ydoc@exafile\relax
\unskip\color@endgroup}%
}
@@ -2705,8 +2747,8 @@
% \begin{macrocode}
\lstnewenvironment{examplecode}[1][]{%
\lstdefinestyle{thisexampleprint}{#1}%
- \lstset{style=exampleextract,#1}%
\setbox\@tempboxa\hbox\bgroup
+ \lstset{style=exampleextract,#1}%
\lst@BeginWriteFile{\ydoc@exafile}%
}
{%
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty
index 723c8e8aff4..77dead7767d 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-code.sty
@@ -8,7 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc-code}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc package to document macro code]
\RequirePackage{hyperref}
@@ -113,15 +113,15 @@
\lstinputlisting{\ydocfname}%
\endgroup
}
-\def\ydoclistingssettings{%
- \lstset{%
+\lstdefinestyle{ydoccode}{%
language=[latex]tex,basicstyle=\ttfamily,
numbers=left,numberstyle=\tiny\color{gray},firstnumber=last,
breaklines,prebreak={\mbox{\tiny$\swarrow$}},
commentstyle=\color{black!60},
- }%
+}%
+\def\ydoclistingssettings{%
+ \lstset{style=ydoccode}%
}
-\ydoclistingssettings
\def\macro@impl@args[#1]{%
\begingroup
\parindent=10pt\relax
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty
index 7b27eaf1841..77f039ff923 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-desc.sty
@@ -8,7 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc-desc}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc package to describe macros, environments, options etc.]
\IfFileExists{needspace.sty}{%
@@ -19,6 +19,9 @@
\RequirePackage{shortvrb}
\RequirePackage{etoolbox}
\RequirePackage{xcolor}
+\expandafter\def\csname\string\color@none\endcsname{%
+ \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}
@@ -102,11 +105,11 @@
\newcommand*\envstyle[1]{\texttt{\textcolor{env}{#1}}}
\newcommand*\optstyle[1]{\textsf{\textcolor{opt}{#1}}}
\newcommand*\filestyle[1]{\texttt{\textcolor{file}{#1}}}
-\colorlet{cls}{black}
-\colorlet{lib}{black}
-\colorlet{env}{black}
-\colorlet{file}{black}
-\colorlet{pkg}{black}
+\colorlet{cls}{none}
+\colorlet{lib}{none}
+\colorlet{env}{none}
+\colorlet{file}{none}
+\colorlet{pkg}{none}
\definecolor{opt}{rgb}{0.5,0.16666,0}
\newrobustcmd*\cs[1]{\texttt{\textbackslash #1}}
\newrobustcmd*\cmd[1]{\texttt{{\escapechar=92\string#1}}}
@@ -276,6 +279,9 @@
\define@Macro@handler**{%
\sarg\read@Macro@arg
}
+\define@Macro@handler{=}={%
+ =\read@Macro@arg
+}
\define@Macro@handler{'}'{%
\begingroup
\let\do\@makeother
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
index d9320425f40..ec153742593 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
@@ -8,7 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc-doc}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc package to provide 'doc' macros]
\newcount\ydoc@bslashcnt
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty
index 3115370a579..257cc758ff8 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-expl.sty
@@ -8,13 +8,30 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc-expl}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc package to insert live examples of LaTeX code]
\RequirePackage{listings}
\lst@RequireAspects{writefile}
\def\ydoc@exafile{\jobname.exa}
-\lstdefinestyle{examplecode}{numbers=left,firstnumber=1,numberstyle=\tiny\color{gray}\sffamily,numbersep=5pt}%
+\lstdefinestyle{examplecode}{%
+ language=[latex]tex,
+ basicstyle=\ttfamily,
+ columns=fullflexible,
+ numbers=left,
+ firstnumber=1,
+ numberstyle=\tiny\color{gray}\sffamily,
+ numbersep=5pt,
+ breaklines,prebreak={\mbox{\tiny$\swarrow$}},
+ commentstyle=\color{black!60},
+}%
+\lstdefinestyle{exampleresult}{%
+ firstnumber=1,
+ gobble=0,
+ basicstyle=\ttfamily,
+ columns=fullflexible,
+ commentstyle=\color{black!60},
+}
\lstdefinestyle{exampleextract}{gobble=4}%
\newbox\examplecodebox
\newbox\exampleresultbox
@@ -24,6 +41,7 @@
{\ydoc@exafile}%
\unskip\color@endgroup}%
\setbox\exampleresultbox\hbox{\color@setgroup
+ \lstset{style=exampleresult}%
\@@input\ydoc@exafile\relax
\unskip\color@endgroup}%
}
@@ -53,8 +71,8 @@
}
\lstnewenvironment{examplecode}[1][]{%
\lstdefinestyle{thisexampleprint}{#1}%
- \lstset{style=exampleextract,#1}%
\setbox\@tempboxa\hbox\bgroup
+ \lstset{style=exampleextract,#1}%
\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 049f0f41132..56b98ace15f 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.cfg
@@ -8,7 +8,7 @@
%%
%% Please delete the following line on manual changes:
\ProvidesFile{ydoc.cfg}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
Default config file for ydoc]
\usepackage[T1]{fontenc}
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.cls b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls
index a2bc248db9f..f10f440395e 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc.cls
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.cls
@@ -8,7 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ydoc}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc class: document LaTeX class and packages]
\PassOptionsToClass{a4paper}{article}
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty
index 6a3b3e016db..b888036fe95 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc.sty
@@ -8,7 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc}[%
- 2011/11/19
+ 2012/05/03
v0.6alpha
ydoc package: document LaTeX class and packages]
\RequirePackage{svn-prov}[2010/04/03]