Debian Codegraph @

texmf-dist/doc/generic/pst-ode/pst-doc-new.cls

raw
1 % $Id: pst-doc.cls 1044 2019-04-11 09:32:09Z herbert $
2 %
3 %%
4 %% The PSTricks Project
5 %%
6 %% ``pst-doc'' class for use with the PSTricks documentation.
7 %%
8 %% Copyright (C) 2009-2017 Herbert Voss
9 %%
10 %% It may be distributed and/or modified under the conditions
11 %% of the LaTeX Project Public License, either version 1.3
12 %% of this license or (at your option) any later version.
13 %%
14 %% See http://www.latex-project.org/lppl.txt for details.
15 %%
16 %
17 \listfiles
18 \ProvidesClass{pst-doc-new}[2022/11/24 PSTricks documentation class (hv,ag)]
19 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
20 \ProcessOptions\relax
21 %
22 \LoadClass{scrartcl}
23 %
24 \RequirePackage[dvipsnames,x11names,svgnames,table]{xcolor}
25 \RequirePackage{iftex}
26 \RequirePackage{everyshi}
27 \RequirePackage{amsmath, amssymb}
28 \iftutex
29 \usepackage{unicode-math}
30 \usepackage{libertinus-otf}
31 \setmonofont[Scale=MatchLowercase,FakeStretch=0.92]{DejaVu Sans Mono}
32 % \setmathfont{XITS Math}
33 \else
34 \RequirePackage[T1]{fontenc}
35 \RequirePackage{textcomp}
36 %\RequirePackage[euler-digits]{eulervm}
37 \RequirePackage{bera}
38 %\RequirePackage[scaled=0.85]{luximono}
39 \fi
40 \usepackage[includeheadfoot,lmargin=2cm,tmargin=1cm,bmargin=1.5cm,rmargin=1.5cm]{geometry}
41 \RequirePackage{ifpdf}
42 % Define commands that don't eat spaces.
43 \RequirePackage{xspace}
44 \makeatletter
45 \providecommand{\IfPackageLoaded}[2]{\@ifpackageloaded{#1}{#2}{}}
46 \providecommand{\IfPackageNotLoaded}[2]{\@ifpackageloaded{#1}{}{#2}}
47 \providecommand{\IfElsePackageLoaded}[3]{\@ifpackageloaded{#1}{#2}{#3}}
48 \providecommand{\IfChapterDefined}[1]{\ifthenelse{\boolean{chapteravailable}}{#1}{}}%
49 \providecommand{\IfElseChapterDefined}[2]{\ifthenelse{\boolean{chapteravailable}}{#1}{#2}}%
50 \providecommand{\IfDefined}[2]{\ifcsname #1\endcsname #2 \fi}
51 \providecommand{\IfElseDefined}[3]{\ifcsname #1\endcsname #2 \else #3 \fi}
52 \providecommand{\IfElseUnDefined}[3]{\ifcsname #1\endcsname #3 \else #2\fi}
53 % Definde frontmatter, mainmatter and backmatter if not defined
54 \@ifundefined{frontmatter}{%
55 \newcommand{\frontmatter}{%
56 %In Roemischen Buchstaben nummerieren (i, ii, iii)
57 \pagenumbering{roman}}
58 }{}
59 \@ifundefined{mainmatter}{%
60 % scrpage benoetigt den folgenden switch
61 % wenn \mainmatter definiert ist.
62 \newif\if@mainmatter\@mainmattertrue
63 \newcommand{\mainmatter}{%
64 % -- Seitennummerierung auf Arabische Zahlen zuruecksetzen (1,2,3)
65 \pagenumbering{arabic}%
66 \setcounter{page}{1}}
67 }{}
68 \@ifundefined{backmatter}{%
69 \newcommand{\backmatter}{
70 %In Roemischen Buchstaben nummerieren (i, ii, iii)
71 \pagenumbering{roman}}
72 }{}
73
74 % Pakete speichern die spaeter geladen werden sollen
75 \newcommand{\LoadPackagesNow}{}
76 \newcommand{\LoadPackageLater}[1]{%
77 \g@addto@macro{\LoadPackagesNow}{%
78 \RequirePackage{#1}%
79 }%
80 }
81 %
82 \RequirePackage{makeidx}
83 \makeindex
84 \RequirePackage{calc}
85 \RequirePackage{babel}
86 \RequirePackage{xkeyval}
87 \RequirePackage{pst-xkey}
88 \RequirePackage{pstricks}
89 \RequirePackage{xkvview}
90 %\let\pstricksFV\fileversion
91 %\let\pstricksFD\filedate
92 \RequirePackage{multido}
93 \RequirePackage{lscape}
94 \RequirePackage{graphicx}
95 \RequirePackage{eso-pic}
96 \definecolor{DOrange}{rgb}{1,.4,.2}
97 \RequirePackage{tabularx,ragged2e}
98 \RequirePackage{booktabs}
99 \RequirePackage[bottom,stable,ragged]{footmisc}
100 %\RequirePackage{chngcntr}
101 \RequirePackage{nameref}
102 \RequirePackage{varioref}
103 \RequirePackage{subfig}
104 \RequirePackage{setspace}
105 \RequirePackage{paralist}
106 \RequirePackage{biblatex}
107 %
108 \RequirePackage{fancyvrb}
109 \newenvironment{Xverbatim}[2][]%
110 {\VerbatimEnvironment
111 \handle@index{#2}
112 \begin{Verbatim}[#1]}
113 {\end{Verbatim}}
114 \newcommand\use@index@vals{\index@vals\global\let\index@vals\relax}
115 \def\handle@index#1{%
116 \gdef\index@vals{#1}%
117 \def\FancyVerbFormatLine##1{\FV@ObeyTabs{##1}\use@index@vals}}
118
119 %\singlespace
120 \RequirePackage{showexpl}
121 \renewcommand*\SX@Info{}%
122 \definecolor{hellgelb}{rgb}{1,1,0.85}
123 \definecolor{colKeys}{rgb}{0,0,1}
124 \definecolor{colIdentifier}{rgb}{0,0,0}
125 \definecolor{colComments}{rgb}{1,0,0}
126 \definecolor{colString}{rgb}{0,0.5,0}
127 \providecommand\ON{%
128 \gdef\lst@alloverstyle##1{%
129 \fboxrule=0pt
130 \fboxsep=0pt
131 \fcolorbox{Black!15}{Black!15}{\bfseries\strut##1}%
132 }}
133 \providecommand\OFF{\xdef\lst@alloverstyle##1{##1}}
134 \lstset{%
135 language=PSTricks,%
136 float=hbp,%
137 basicstyle=\ttfamily\small, %
138 identifierstyle=\color{colIdentifier}, %
139 keywordstyle=\color{colKeys}, %
140 stringstyle=\color{colString}, %
141 commentstyle=\color{colComments}, %
142 columns=flexible, %
143 tabsize=4, %
144 frame=single, %
145 extendedchars=true, %
146 showspaces=false, %
147 showstringspaces=false, %
148 % numbers=left,
149 % numbersep=0.8em,
150 % numberstyle=\tiny, %
151 breaklines=true, %
152 breakautoindent=true,
153 captionpos=b,
154 xleftmargin=1em
155 }
156 \lstset{explpreset={pos=t,wide=false,rframe={},preset=\centering}}
157 \lstdefinestyle{syntax}{backgroundcolor=\color{blue!15},numbers=none,xleftmargin=0pt,xrightmargin=0pt,
158 frame=single}
159 \lstdefinestyle{code}{backgroundcolor=\color{red!15},%numbers=left,
160 xleftmargin=0pt,xrightmargin=0pt,
161 frame=single}
162 %
163 \usepackage{manfnt}
164 \newcommand\XInfofont{\color{blue}\fontsize{8pt}{10pt}\normalfont\itshape}
165 \newcommand\XInfo[2][1]{\marginpar
166 [\XInfocorr{#1}\raggedleft\XInfofont#2]%
167 {\XInfocorr{#1}\raggedright\XInfofont#2}}
168 \newcommand\XInfocorr[1]{\mbox{}\par
169 \ifcase#1\relax
170 \vspace{-10pt}\or
171 \vspace{2pt}\or
172 \vspace{14pt}\else
173 \ifnum #1=-1 \vspace{-22pt}\else\ERROR\fi
174 \fi}
175 \newcommand\XInfoDanger[2][1]{\marginpar
176 [\XInfocorr{#1}\raggedleft\XInfofont
177 \let\\\@normalcr
178 \hangafter-2\hangindent=-.9pc\parindent=-\@flushglue
179 \noindent\rlap{\makebox[\marginparwidth]{\hfill\lower1.2pt\hbox{\dbend}\hspace*{-8pt}}}\hfill#2]%
180 {\XInfocorr{#1}\raggedright\XInfofont
181 \let\\\@normalcr
182 \hangafter-2\hangindent=.9pc\noindent\llap{\lower1.2pt\hbox{\lhdbend}\,}#2}}
183 %
184 \RequirePackage{xkvview}
185 \raggedbottom
186 \definecolor{sectioncolor}{RGB}{0, 0, 255} % Schwarz
187 \definecolor{textcolor}{RGB}{0, 0, 0} % Schwarz
188 \definecolor{shadecolor}{gray}{0.90}
189 \colorlet{pdflinkcolor}{DOrange}
190 \colorlet{pdfurlcolor}{DOrange}
191 \colorlet{pdffilecolor}{DOrange}
192 \colorlet{stringcolor}{green!40!black!100}
193 \colorlet{commencolor}{blue!0!black!100}
194 \RequirePackage[automark]{scrlayer-scrpage}
195
196 \pagestyle{scrheadings}
197 \clearscrheadings
198 \clearscrplain
199 \ohead{\pagemark}
200 \ihead{\headmark}
201 \ofoot[\pagemark]{}
202 \automark[subsection]{section}
203 \setheadsepline{.4pt}[\color{DOrange}]
204 \setheadwidth[0pt]{text}
205 \setfootwidth[0pt]{text}
206 %% Fussnoten =============================================================
207 % Keine hochgestellten Ziffern in der Fussnote (KOMA-Script-spezifisch):
208 \deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}}
209 \addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fussnote
210 %% Schriften (Sections )==================================================
211 \newcommand\SectionFontStyle{\sffamily}
212 \setkomafont{sectioning}{\bfseries\SectionFontStyle} % % Titelzeilen % \bfseries
213 \setkomafont{pagenumber}{\bfseries\SectionFontStyle} % Seitenzahl
214 \setkomafont{pagehead}{\small\sffamily} % Kopfzeile
215 %\setkomafont{pagefoot}{\small\sffamily} % Kopfzeile
216 \setkomafont{descriptionlabel}{\itshape} % Kopfzeile
217 \addtokomafont{sectioning}{\color{sectioncolor}} % Farbe der Ueberschriften
218 \renewcommand*{\raggedsection}{\raggedright} % Titelzeile linksbuendig, haengend
219 \RequirePackage{caption}
220 \captionsetup{
221 margin = 10pt,
222 font = {small,rm},
223 labelfont = {small,bf},
224 format = plain, % oder 'hang'
225 indention = 0em, % Einruecken der Beschriftung
226 labelsep = colon, %period, space, quad, newline
227 justification = RaggedRight, % justified, centering
228 singlelinecheck = true, % false (true=bei einer Zeile immer zentrieren)
229 position = bottom %top
230 }
231 %%% Bugfix Workaround
232 \DeclareCaptionOption{parskip}[]{}
233 \DeclareCaptionOption{parindent}[]{}
234
235 % Aussehen der Captions fuer subfigures (subfig-Paket)
236 \IfPackageLoaded{subfig}{
237 \captionsetup[subfloat]{%
238 margin = 10pt,
239 font = {small,rm},
240 labelfont = {small,bf},
241 format = plain, % oder 'hang'
242 indention = 0em, % Einruecken der Beschriftung
243 labelsep = space, %period, space, quad, newline
244 justification = RaggedRight, % justified, centering
245 singlelinecheck = true, % false (true=bei einer Zeile immer zentrieren)
246 position = bottom, %top
247 labelformat = parens % simple, empty % Wie die Bezeichnung gesetzt wird
248 }
249 }
250 \setcounter{secnumdepth}{2} % Abbildungsnummerierung mit groesserer Tiefe
251 \setcounter{tocdepth}{2} % Inhaltsverzeichnis mit groesserer Tiefe
252 %
253 % Inhalte von List of Figures
254 \IfPackageLoaded{subfig}{\setcounter{lofdepth}{1} %1 = nur figures, 2 = figures + subfigures
255 }
256 \RequirePackage{xurl}
257 \RequirePackage[colorlinks,
258 urlcolor=pdfurlcolor,
259 filecolor=pdffilecolor,
260 linkcolor=pdflinkcolor,
261 breaklinks,
262 linktocpage=true]{hyperref}
263 %\ifxetex
264 %\else
265 % \RequirePackage{breakurl}
266 %\fi
267 \newsavebox\TBox
268 \newenvironment{Bsp}[1]{%
269 \par\bigskip%
270 \begin{lrbox}{\TBox}
271 \begin{minipage}{\linewidth-2\fboxrule}%
272 \setlength\fboxsep{1mm}%
273 \colorbox{DOrange}{\parbox{\linewidth-2\fboxsep}{%
274 \color{White}\sffamily#1}}\par
275 \fontsize{10}{12pt}\fontshape{it}\selectfont%
276 \begin{quote}
277 }{%
278 \par\bigskip\end{quote}\end{minipage}\end{lrbox}\fboxsep=0pt%
279 \fcolorbox{DOrange}{White}{\usebox\TBox}\par\bigskip}
280
281 \newcommand{\RDO}{\color{DOrange!25}\rule[-1mm]{10mm}{5mm}}
282
283 \DeclareRobustCommand\PST{\texttt{PSTricks\xspace}}
284 \DeclareRobustCommand\PS{\texttt{PostScript\xspace}}
285 \def\dt{\ensuremath{\,\mathrm{d}t}}
286 \def\Index#1{\index{#1}#1}
287 %
288 \def\LPack#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Package!#1@\texttt{#1}}}
289 \def\nxLPack#1{\texttt{#1}}
290 \def\Lprog#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Program!#1@\texttt{#1}}}
291 \let\nxLprog\nxLPack
292 \def\LFile#1{\texttt{#1}\index{#1@\texttt{#1}}\index{File!#1@\texttt{#1}}}
293 \def\nxLFile#1{\texttt{#1}}
294 \def\Lext#1{\texttt{.#1}\index{#1@\texttt{.#1}}\index{Extension!#1@\texttt{.#1}}}
295 \def\nxLext#1{\texttt{.#1}}
296 \def\xLcs#1{\index{#1@\nxLcs{#1}}\index{Macro!#1@\nxLcs{#1}}}
297 \def\Lcs#1{\nxLcs{#1}\xLcs{#1}}
298 \def\LcsStar#1{\index{#1*@\nxLcs{#1*}}\index{Macro!#1@\nxLcs{#1*}}\nxLcs{#1}\OptArg*{*}}
299 \def\nxLcs#1{\texttt{\textbackslash#1}}
300 \def\xLenv#1{\index{#1@\texttt{#1}}\index{Environment!#1@\texttt{#1}}}
301 \def\Lenv#1{\texttt{#1}\xLenv{#1}}
302 \def\Ldim#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Dimension!#1@\texttt{\textbackslash#1}}}
303 \def\Lskip#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Skip!#1@\texttt{\textbackslash#1}}}
304 \def\Lkeyword#1{\texttt{#1}\xLkeyword{#1}}
305 \def\xLkeyword#1{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
306 \def\nxLkeyword#1{\texttt{#1}}
307
308 \def\LKeyword#1{\LKeyword@i#1!!}
309 \def\LKeyword@i#1=#2!!{\Lkeyword{#1}\nxLkeyword{=#2}}
310 \let\nxLKeyword\nxLenv % same formatting
311
312 \let\nxLkeyval\nxLkeyword
313 \let\nxLenv\nxLkeyword
314 \let\nxLps\nxLkeyword
315 \def\LColor#1{\texttt{#1}\xLColor{#1}}
316 \def\xLColor#1{\index{#1@\texttt{#1}}\index{Color!#1@\texttt{#1}}}
317 \def\Lkeyval#1{\texttt{#1}\xLkeyval{#1}}
318 \def\xLkeyval#1{\index{#1@\texttt{#1}}\index{Keyvalue!#1@\texttt{#1}}}
319 \def\xLoption#1{\index{#1@\texttt{#1}}\index{Package option!#1@\texttt{#1}}}
320 \def\Loption#1{\texttt{#1}\xLoption{#1}}
321 \def\LPS#1{\texttt{#1}\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
322 \def\xLps#1{\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
323 \def\nxLps#1{\texttt{#1}}
324 \def\Lps#1{\nxLps{#1}\xLps{#1}}
325 \def\LClass#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Class!#1@\texttt{#1}}}
326 \let\nxLClass\nxLPack
327 \let\nxLdim\nxLcs
328 \let\nxLskip\nxLcs
329 \def\Lctr#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Counter!#1@\texttt{#1}}}
330 \def\LCtr#1{\texttt{#1}\index{#1@\texttt{#1}}\index{TeX Counter@\TeX\ Counter!#1@\texttt{#1}}}
331 \def\nxLctr#1{\texttt{#1}}
332 %
333 \newcommand\Lnotation [1]{\nxLnotation{#1}\xLnotation{#1}}
334 \newcommand\Lmnotation[1]{\nxLnotation{#1}\xLmnotation{#1}}
335 \newcommand\xLnotation[1]{\index{Syntax!#1@\nxLnotation{#1}}\index{#1@\nxLnotation{#1}}}
336 \def\nxLnotation#1{\texttt{#1}}
337 \def\xLkeyset#1{\expandafter\xLkeyset@i#1\@nil}
338 \def\xLkeyset@i#1=#2\@nil{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}
339 \index{#2@\texttt{#2}}\index{Value!#2@\texttt{#2}}}
340 \def\Lkeyset#1{\expandafter\Lkeyset@i#1\@nil}
341 \def\Lkeyset@i#1=#2\@nil{\texttt{#1=#2}%
342 \index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}
343 \index{#2@\texttt{#2}}\index{Value!#2@\texttt{#2}}}
344 %
345 \def\xLKeyset#1{\expandafter\xLKeyset@i#1\@nil}% without using the right value of =
346 \def\xLKeyset@i#1=#2\@nil{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
347 \def\LKeyset#1{\expandafter\LKeyset@i#1\@nil}
348 \def\LKeyset@i#1=#2\@nil{\texttt{#1=#2}%
349 \index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
350 \let\LKeyword\LKeyset
351 %
352 \newcommand\Larg [1]{{\normalfont\itshape#1\/}}
353 \newcommand\Larga[1]{$\langle$\Larg{#1}$\rangle$}% angles
354 \newcommand\Largb[1]{\lcb\Larg{#1}\rcb} % curly brace
355 \newcommand\Largs[1]{\lsb\Larg{#1}\rsb} % square brackets
356 \newcommand\Largr[1]{\lrb\Larg{#1}\rrb} % round brackets
357 \newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLenv{#1}}
358 \newcommand\LmBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLmenv{#1}}
359 \newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLenv{#1}}
360 \newcommand\LmEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLmenv{#1}}
361 %
362 \DeclareRobustCommand\bs{{\normalfont\ttfamily\textbackslash}} % \let\bslash=\bs
363 \DeclareRobustCommand\lcb{{\normalfont\ttfamily\textbraceleft}}
364 \DeclareRobustCommand\rcb{{\normalfont\ttfamily\textbraceright}}
365 \DeclareRobustCommand\lsb{{\normalfont\ttfamily[}}
366 \DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
367 \DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
368 \DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
369 \DeclareRobustCommand\false{{\ttfamily false}}
370 \DeclareRobustCommand\true{{\ttfamily true}}
371
372 %
373 % without brackets
374 \def\Coordx#1{$x_{#1}$}
375 \def\Coordy#1{$y_{#1}$}
376 \def\Coordz#1{$z_{#1}$}
377 \def\Coord#1{\Coordx{#1},\kern 1pt\Coordy{#1}}
378 \def\Coordn{\Coordx{n},\kern 1pt\Coordy{n}}
379 \def\CoordIII#1{\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1}}% HjG
380 \def\CAny{\Coordx{},\kern 1pt\Coordy{}}
381 \def\CIIIAny{\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{}}% hv
382 % with brackets
383 \def\coord#1{(\Coordx{#1},\kern 1pt\Coordy{#1})}
384 \def\coordn{(\Coordx{n},\kern 1pt\Coordy{n})}
385 \def\coordiii#1{(\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1})}% hv
386 \def\coordx#1{($x_{#1}$)}
387 \def\coordy#1{($y_{#1}$)}
388 \def\coordz#1{($z_{#1}$)}
389 \def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
390 \def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{})}% hv
391 %
392 \newskip\BDefaboveskip
393 \newskip\BDefbelowskip
394 \newskip\BDefinlineskip
395 \setlength\BDefaboveskip{0pt plus 2pt}% first-level list topsep
396 \setlength\BDefbelowskip{10pt}
397 \setlength\BDefinlineskip{6pt}
398 %
399 \newsavebox\boxdef
400 \newenvironment{BDef}
401 {\begin{lrbox}{\boxdef}
402 \def\arraystretch{1.0}
403 \begin{tabular}{@{}l@{}l@{}l@{}}}
404 {\end{tabular}\end{lrbox}
405 %
406 % braces around next block are needed to stop the list env checking for blank lines
407 % and the \aftergroups then for making sure no indentation happens ... as i said
408 % urg
409 %
410 {\BCmd\fbox{\usebox\boxdef}\endBCmd}
411 \aftergroup\@afterindentfalse\aftergroup\@afterheading
412 }
413 \newenvironment{BDef*}
414 {\begin{lrbox}\boxdef
415 \def\arraystretch{1.0}
416 \begin{tabular}{@{}l@{}l@{}l@{}}
417 }
418 {\end{tabular}\end{lrbox}
419 {\begin{BCmd*}\fbox{\usebox\boxdef}\end{BCmd*}}
420 \aftergroup\@afterindentfalse\aftergroup\@afterheading
421 }
422 \newenvironment{BCmd}{
423 \@beginparpenalty-\@lowpenalty
424 \topsep\BDefaboveskip
425 \fboxsep3pt
426 \flushleft}
427 {\@endparpenalty\@M
428 \@topsepadd\BDefbelowskip
429 \endflushleft}
430
431 \newenvironment{BCmd*}{
432 \@beginparpenalty\@M
433 \topsep\BDefinlineskip
434 \fboxsep3pt
435 \flushleft}
436 {\@endparpenalty5000
437 \endflushleft}
438
439
440 \def\OptArgs{\colorbox{black!20}{\texttt{[Options]}}\kern1pt}
441
442 \def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}% star version without braces
443 \def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
444 \def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
445 \def\DBS{{\ttfamily\textbackslash\textbackslash}}
446
447 \def\docauthor#1{\gdef\@docauthor{#1}}
448 \docauthor{}
449 %\def\author#1{\gdef\@author{#1}\gdef\@docauthor{#1}}
450
451 \providecommand\bgImage{}
452 \providecommand\bgTitle{}
453 \providecommand\LenToUnit[1]{#1\@gobble}
454
455 \def\settitle{%
456 \thispagestyle{empty}%
457 \begin{titlepage}
458 % \newgeometry{lmargin=1cm,rmargin=1cm,bmargin=1cm,includeheadfoot}%
459 \psset{unit=1cm}%
460 \begin{pspicture}(1.6in,0)(23cm,21.7cm)
461 \psframe[fillstyle=solid,linecolor=lightgray,fillcolor=lightgray,linestyle=solid](0,-5.75)(23,10)
462 \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,10)(23,10.5)
463 \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,21.1)(23,21.2)
464 \rput[lb](3,22){\Huge\sffamily\color{Orange!65!Red}\psscalebox{2}{\textbf{PSTricks}}}
465 \rput[lb](3,14.1){\parbox{17cm}{\sffamily\RaggedRight\bfseries\huge\@title}}
466 \rput[lb](3,12.6){\parbox{15cm}{\sffamily\Large\@subtitle}}
467 \rput[lb](3,7.6){\parbox{15cm}{\sffamily\@date}}
468 \rput[lb](3,-2.6){\parbox[b]{19cm}{\sffamily\RaggedRight
469 \ifx\@docauthor\empty~\else Documentation by\fi\hfill\makebox[7cm][l]{Package author(s):}\\
470 \ifx\@docauthor\empty~\else{\bfseries\tabular[t]{@{}l@{}}\@docauthor\endtabular}\fi\hfill\makebox[7cm][l]{%
471 \bfseries\shortstack[l]{\@author}
472 %\begin{tabular}[t]{@{}l@{}} \@author\end{tabular}%
473 }}}
474 \rput[C](11,4){\bgImage}%
475 \end{pspicture}%
476 \end{titlepage}
477 \setcounter{footnote}{0}%
478 \global\let\thanks\relax%
479 \global\let\maketitle\relax%
480 \global\let\@thanks\@empty%
481 \global\let\@author\@empty%
482 \global\let\@docauthor\@empty%
483 \global\let\@date\@empty%
484 \global\let\@title\@empty%
485 \global\let\@subtitle\@empty%
486 \global\let\title\relax%
487 \global\let\author\relax%
488 \global\let\date\relax%
489 \global\let\and\relax%
490 % \restoregeometry%
491 }
492
493 \newdimen\fullWidth
494 \fullWidth=\linewidth
495 \advance\fullWidth by \marginparsep
496 \advance\fullWidth by \marginparwidth
497 \makeatother
498 %%
499 %% End of file `pst-doc.cls'.