summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/pst-doc.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/pst-doc.cls')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/pst-doc.cls38
1 files changed, 28 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-doc.cls b/Master/texmf-dist/doc/generic/pstricks/pst-doc.cls
index 9345e8d3c50..d3a64bc7d22 100644
--- a/Master/texmf-dist/doc/generic/pstricks/pst-doc.cls
+++ b/Master/texmf-dist/doc/generic/pstricks/pst-doc.cls
@@ -1,4 +1,4 @@
-% $Id: pst-doc.cls 55 2008-11-14 12:01:12Z herbert $
+% $Id: pst-doc.cls 63 2008-11-26 18:00:46Z herbert $
%
%%
%% The PSTricks Project
@@ -15,13 +15,13 @@
%%
%
\listfiles
-\ProvidesClass{pst-doc}[2008/11/13 v 0.02 PSTricks documentation class (hv)]
+\ProvidesClass{pst-doc}[2008/11/26 v 0.04 PSTricks documentation class (hv)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax
%
\LoadClass[titlepage]{scrartcl}
%
-\PassOptionsToPackage{dvipsnames,table,prologue}{xcolor}
+\PassOptionsToPackage{dvipsnames,x11names,svgnames,table}{xcolor}
\RequirePackage[T1]{fontenc}
%\RequirePackage{mathpazo}
@@ -90,6 +90,7 @@
\RequirePackage{varioref}
\RequirePackage{subfig}
\RequirePackage{setspace}
+\RequirePackage{filecontents}
\singlespace
\RequirePackage{showexpl}
\lstset{%
@@ -228,8 +229,8 @@
%%% ----------------------------------------------------------------
-\def\PST{\texttt{PSTricks\xspace}}
-\def\PS{\texttt{PostScript\xspace}}
+\DeclareRobustCommand\PST{\texttt{PSTricks\xspace}}
+\DeclareRobustCommand\PS{\texttt{PostScript\xspace}}
\def\dt{\ensuremath{\,\mathrm{d}t}}
\def\Index#1{\index{#1}#1}
%
@@ -237,15 +238,22 @@
\def\nxLPack#1{\texttt{#1}}
\def\LFile#1{\texttt{#1}\index{#1@\texttt{#1}}\index{File!#1@\texttt{#1}}}
\def\nxLFile#1{\texttt{#1}}
-\def\Lcs#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Macro!#1@\texttt{\textbackslash#1}}}
+\def\Lcs#1{\nxLcs{#1}\index{#1@\nxLcs{#1}}\index{Macro!#1@\nxLcs{#1}}}
+\def\LcsStar#1{\index{#1*@\nxLcs{#1*}}\index{Macro!#1@\nxLcs{#1*}}\nxLcs{#1}\OptArg{*}}
\def\nxLcs#1{\texttt{\textbackslash#1}}
-\def\Lenv#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Environment!#1@\texttt{#1}}}
+\def\xLenv#1{\index{#1@\texttt{#1}}\index{Environment!#1@\texttt{#1}}}
+\def\Lenv#1{\texttt{#1}\xLenv{#1}}
\def\Ldim#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Dimension!#1@\texttt{\textbackslash#1}}}
\def\Lkeyword#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
+\def\nxLkeyword#1{\texttt{#1}}
\def\Lkeyval#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Value!#1@\texttt{#1}}}
\def\Loption#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Package option!#1@\texttt{#1}}}
\def\LPS#1{\texttt{#1}\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
\def\Lps#1{\texttt{#1}\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
+\newcommand\Lnotation [1]{\nxLnotation{#1}\xLnotation{#1}}
+\newcommand\Lmnotation[1]{\nxLnotation{#1}\xLmnotation{#1}}
+\newcommand\xLnotation[1]{\index{Syntax!#1@\nxLnotation{#1}}\index{#1@\nxLnotation{#1}}}
+\def\nxLnotation#1{\texttt{#1}}
\def\Lkeyset#1{\expandafter\Lkeyset@i#1\@nil}
\def\Lkeyset@i#1=#2\@nil{\texttt{#1=#2}%
\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}
@@ -254,6 +262,10 @@
\newcommand\Largb[1]{\lcb\Larg{#1}\rcb} % curly brace
\newcommand\Largs[1]{\lsb\Larg{#1}\rsb} % square brackets
\newcommand\Largr[1]{\lrb\Larg{#1}\rrb} % round brackets
+\newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLenv{#1}}
+\newcommand\LmBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLmenv{#1}}
+\newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLenv{#1}}
+\newcommand\LmEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLmenv{#1}}
%
\DeclareRobustCommand\bs{{\normalfont\ttfamily\textbackslash}} % \let\bslash=\bs
\DeclareRobustCommand\lcb{{\normalfont\ttfamily\textbraceleft}}
@@ -262,6 +274,9 @@
\DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
\DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
\DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
+\DeclareRobustCommand\false{{\ttfamily false}}
+\DeclareRobustCommand\true{{\ttfamily true}}
+
%
% without brackets
\def\Coordx#1{$x_{#1}$}
@@ -331,8 +346,10 @@
\setlength\BDefbelowskip{6pt}
\setlength\BDefinlineskip{6pt}
-\def\OptArgs{\psframebox[fillstyle=solid,fillcolor=black!20,linecolor=black!20]{\texttt{[Options]}}}
-\def\OptArg#1{\psframebox[fillstyle=solid,fillcolor=black!20,linecolor=black!20]{\texttt{[#1]}}}
+\def\OptArgs{\psframebox[framesep=2pt,fillstyle=solid,fillcolor=black!20,linecolor=black!20]{\texttt{[Options]}}\kern1pt}
+\def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}% star version without braces
+\def\OptArg@i*#1{\psframebox[framesep=2pt,fillstyle=solid,fillcolor=black!20,linecolor=black!20]{\texttt{#1}}\kern1pt}
+\def\OptArg@ii*#1{\psframebox[framesep=2pt,fillstyle=solid,fillcolor=black!20,linecolor=black!20]{\texttt{[#1]}}\kern1pt}
\def\docauthor#1{\gdef\@docauthor{#1}}
\docauthor{}
@@ -358,7 +375,8 @@
\rput[lb](3,7.6){\parbox{15cm}{\sffamily\@date}}
\rput[lb](3,-2.6){\parbox[b]{19cm}{\sffamily\RaggedRight
\ifx\@docauthor\empty~\else Documentation by\fi\hfill\makebox[7cm][l]{Package author(s):}\\
- \ifx\@docauthor\empty~\else\textbf{\@docauthor}\fi\hfill\makebox[7cm][l]{\textbf{\@author}}}}
+ \ifx\@docauthor\empty~\else\textbf{\@docauthor}\fi\hfill\makebox[7cm][l]{%
+ \bfseries\tabular[t]{@{}l@{}}\@author\endtabular}}}
\end{pspicture}%
\end{titlepage}
\setcounter{footnote}{0}%