summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-11-28 00:54:53 +0000
committerKarl Berry <karl@freefriends.org>2008-11-28 00:54:53 +0000
commiteef0a6b4f3a6c0828108fcab8e5772c8f12837d5 (patch)
treea06e71ce2dede68973f641851f3768653bf86f4d /Master/texmf-dist/doc/generic
parente0cdc7eb052b3d7878c4d09887b26be38f0fa0a7 (diff)
pstricks update (27nov08)
git-svn-id: svn://tug.org/texlive/trunk@11444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/pst-doc.cls38
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/pst-doc.ist36
2 files changed, 64 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}%
diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-doc.ist b/Master/texmf-dist/doc/generic/pstricks/pst-doc.ist
new file mode 100644
index 00000000000..499deb946a2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pstricks/pst-doc.ist
@@ -0,0 +1,36 @@
+%%
+%% This is file `pst-doc.ist',
+%%
+%% The idea is from Ingo Kloeckl, Latex2e:
+%% Herbert Voss 000726
+%%
+%% This is a MAKEINDEX style file which should be used to
+%% generate the formatted change history for use with the doc
+%% package. The TeX commands used below are defined in
+%% doc.sty. The commands for MAKEINDEX like `level'
+%% `item_x1' are described in `` Makeindex, A General
+%% Purpose, Formatter-Independent Index Processor'' by
+%% Pehong Chen.
+%%
+headings_flag 1 % headings yes
+heading_prefix "\\textbf{" % boldfont
+heading_suffix "}\n" % newline
+quote '"'
+level '>'
+preamble
+ "\\begin{theindex}\n"
+item_1
+ "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+item_01
+ "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+item_x1
+ "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+item_2
+ "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+item_12
+ "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+item_x2
+ "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+%%
+%%
+%% End of file `Letter.ist'.