Debian Codegraph @

texmf-dist/doc/latex/pst-exa/pst-exa-doc.inc

raw
1 \DeclareRobustCommand\PST{\texttt{PSTricks\xspace}}
2 \DeclareRobustCommand\PS{\texttt{PostScript\xspace}}
3 \def\dt{\ensuremath{\,\mathrm{d}t}}
4 \def\Index#1{\index{#1}#1}
5 %
6 \def\LPack#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Package!#1@\texttt{#1}}}
7 \def\nxLPack#1{\texttt{#1}}
8 \def\Lprog#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Program!#1@\texttt{#1}}}
9 \let\nxLprog\nxLPack
10 \def\LFile#1{\texttt{#1}\index{#1@\texttt{#1}}\index{File!#1@\texttt{#1}}}
11 \def\nxLFile#1{\texttt{#1}}
12 \def\Lext#1{\texttt{.#1}\index{#1@\texttt{.#1}}\index{Extension!#1@\texttt{.#1}}}
13 \def\nxLext#1{\texttt{.#1}}
14 \def\xLcs#1{\index{#1@\nxLcs{#1}}\index{Macro!#1@\nxLcs{#1}}}
15 \def\Lcs#1{\nxLcs{#1}\xLcs{#1}}
16 \def\LcsStar#1{\index{#1*@\nxLcs{#1*}}\index{Macro!#1@\nxLcs{#1*}}\nxLcs{#1}\OptArg*{*}}
17 \def\nxLcs#1{\texttt{\textbackslash#1}}
18 \def\xLenv#1{\index{#1@\texttt{#1}}\index{Environment!#1@\texttt{#1}}}
19 \def\Lenv#1{\texttt{#1}\xLenv{#1}}
20 \def\Ldim#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Dimension!#1@\texttt{\textbackslash#1}}}
21 \def\Lskip#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}\index{Skip!#1@\texttt{\textbackslash#1}}}
22 \def\Lkeyword#1{\texttt{#1}\xLkeyword{#1}}
23 \def\xLkeyword#1{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
24 \def\nxLkeyword#1{\texttt{#1}}
25
26 \def\LKeyword#1{\LKeyword@i#1!!}
27 \def\LKeyword@i#1=#2!!{\Lkeyword{#1}\nxLkeyword{=#2}}
28 \let\nxLKeyword\nxLenv % same formatting
29
30 \let\nxLkeyval\nxLkeyword
31 \let\nxLenv\nxLkeyword
32 \let\nxLps\nxLkeyword
33 \def\LColor#1{\texttt{#1}\xLColor{#1}}
34 \def\xLColor#1{\index{#1@\texttt{#1}}\index{Color!#1@\texttt{#1}}}
35 \def\Lkeyval#1{\texttt{#1}\xLkeyval{#1}}
36 \def\xLkeyval#1{\index{#1@\texttt{#1}}\index{Keyvalue!#1@\texttt{#1}}}
37 \def\xLoption#1{\index{#1@\texttt{#1}}\index{Package option!#1@\texttt{#1}}}
38 \def\Loption#1{\texttt{#1}\xLoption{#1}}
39 \def\LPS#1{\texttt{#1}\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
40 \def\xLps#1{\index{#1@\texttt{#1}}\index{PostScript!#1@\texttt{#1}}}
41 \def\nxLps#1{\texttt{#1}}
42 \def\Lps#1{\nxLps{#1}\xLps{#1}}
43 \def\LClass#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Class!#1@\texttt{#1}}}
44 \let\nxLClass\nxLPack
45 \let\nxLdim\nxLcs
46 \let\nxLskip\nxLcs
47 \def\Lctr#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Counter!#1@\texttt{#1}}}
48 \def\LCtr#1{\texttt{#1}\index{#1@\texttt{#1}}\index{TeX Counter@\TeX\ Counter!#1@\texttt{#1}}}
49 \def\nxLctr#1{\texttt{#1}}
50 %
51 \newcommand\Lnotation [1]{\nxLnotation{#1}\xLnotation{#1}}
52 \newcommand\Lmnotation[1]{\nxLnotation{#1}\xLmnotation{#1}}
53 \newcommand\xLnotation[1]{\index{Syntax!#1@\nxLnotation{#1}}\index{#1@\nxLnotation{#1}}}
54 \def\nxLnotation#1{\texttt{#1}}
55 \def\xLkeyset#1{\expandafter\xLkeyset@i#1\@nil}
56 \def\xLkeyset@i#1=#2\@nil{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}
57 \index{#2@\texttt{#2}}\index{Value!#2@\texttt{#2}}}
58 \def\Lkeyset#1{\expandafter\Lkeyset@i#1\@nil}
59 \def\Lkeyset@i#1=#2\@nil{\texttt{#1=#2}%
60 \index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}
61 \index{#2@\texttt{#2}}\index{Value!#2@\texttt{#2}}}
62 %
63 \def\xLKeyset#1{\expandafter\xLKeyset@i#1\@nil}% without using the right value of =
64 \def\xLKeyset@i#1=#2\@nil{\index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
65 \def\LKeyset#1{\expandafter\LKeyset@i#1\@nil}
66 \def\LKeyset@i#1=#2\@nil{\texttt{#1=#2}%
67 \index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
68 \let\LKeyword\LKeyset
69 %
70 \newcommand\Larg [1]{{\normalfont\itshape#1\/}}
71 \newcommand\Larga[1]{$\langle$\Larg{#1}$\rangle$}% angles
72 \newcommand\Largb[1]{\lcb\Larg{#1}\rcb} % curly brace
73 \newcommand\Largs[1]{\lsb\Larg{#1}\rsb} % square brackets
74 \newcommand\Largr[1]{\lrb\Larg{#1}\rrb} % round brackets
75 \newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLenv{#1}}
76 \newcommand\LmBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}\xLmenv{#1}}
77 \newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLenv{#1}}
78 \newcommand\LmEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}\xLmenv{#1}}
79 %
80 \DeclareRobustCommand\bs{{\normalfont\ttfamily\textbackslash}} % \let\bslash=\bs
81 \DeclareRobustCommand\lcb{{\normalfont\ttfamily\textbraceleft}}
82 \DeclareRobustCommand\rcb{{\normalfont\ttfamily\textbraceright}}
83 \DeclareRobustCommand\lsb{{\normalfont\ttfamily[}}
84 \DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
85 \DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
86 \DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
87 \DeclareRobustCommand\false{{\ttfamily false}}
88 \DeclareRobustCommand\true{{\ttfamily true}}
89
90 %
91 % without brackets
92 \def\Coordx#1{$x_{#1}$}
93 \def\Coordy#1{$y_{#1}$}
94 \def\Coordz#1{$z_{#1}$}
95 \def\Coord#1{\Coordx{#1},\kern 1pt\Coordy{#1}}
96 \def\Coordn{\Coordx{n},\kern 1pt\Coordy{n}}
97 \def\CoordIII#1{\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1}}% HjG
98 \def\CAny{\Coordx{},\kern 1pt\Coordy{}}
99 \def\CIIIAny{\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{}}% hv
100 % with brackets
101 \def\coord#1{(\Coordx{#1},\kern 1pt\Coordy{#1})}
102 \def\coordn{(\Coordx{n},\kern 1pt\Coordy{n})}
103 \def\coordiii#1{(\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1})}% hv
104 \def\coordx#1{($x_{#1}$)}
105 \def\coordy#1{($y_{#1}$)}
106 \def\coordz#1{($z_{#1}$)}
107 \def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
108 \def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{})}% hv
109 %
110 \newskip\BDefaboveskip
111 \newskip\BDefbelowskip
112 \newskip\BDefinlineskip
113 \setlength\BDefaboveskip{0pt plus 2pt}% first-level list topsep
114 \setlength\BDefbelowskip{10pt}
115 \setlength\BDefinlineskip{6pt}
116 %
117 \makeatletter
118 \newsavebox{\boxdef}
119 \newenvironment{BDef}
120 {\begin{lrbox}\boxdef
121 \def\arraystretch{1.0}
122 \begin{tabular}{@{}l@{}l@{}l@{}}}
123 {\end{tabular}\end{lrbox}
124 %
125 % braces around next block are needed to stop the list env checking for blank lines
126 % and the \aftergroups then for making sure no indentation happens ... as i said
127 % urg
128 %
129 {\BCmd\fbox{\usebox\boxdef}\endBCmd}
130 \aftergroup\@afterindentfalse\aftergroup\@afterheading
131 }
132 \newenvironment{BDef*}
133 {\begin{lrbox}\boxdef
134 \def\arraystretch{1.0}
135 \begin{tabular}{@{}l@{}l@{}l@{}}
136 }
137 {\end{tabular}\end{lrbox}
138 {\begin{BCmd*}\fbox{\usebox\boxdef}\end{BCmd*}}
139 \aftergroup\@afterindentfalse\aftergroup\@afterheading
140 }
141 \newenvironment{BCmd}{
142 \@beginparpenalty-\@lowpenalty
143 \topsep\BDefaboveskip
144 \fboxsep3pt
145 \flushleft}
146 {\@endparpenalty\@M
147 \@topsepadd\BDefbelowskip
148 \endflushleft}
149
150 \newenvironment{BCmd*}{
151 \@beginparpenalty\@M
152 \topsep\BDefinlineskip
153 \fboxsep3pt
154 \flushleft}
155 {\@endparpenalty5000
156 \endflushleft}
157
158
159 \def\OptArgs{\colorbox{black!20}{\texttt{[Options]}}\kern1pt}
160 \def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}% star version without braces
161 \def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
162 \def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
163 \def\DBS{{\ttfamily\textbackslash\textbackslash}}
164
165 \makeatother