Debian Codegraph @

texmf-dist/doc/generic/stretchy/Documentation/symbols.tex

raw
1 %% S. Lurp --- STRETCHY docs --- MIT License
2 Stretchy provides the stretchy symbols listed below.
3
4 \subsection{Repeated symbols}
5
6 Stretchy provides methods of repeating symbols, while also adding stretched material to it.
7 These symbols are:
8
9 \macroexp{\strtyint {<N>}{<sup>}{<sub>}/crcr
10 \strtyintlimits {<N>}{<sup>}{<sub>}}
11 This prints {\it N} integral signs, with {\it sup} and {\it sub} as superscript and subscript material,
12 respectively.
13 \macro\strtyint{} differs from \macro\strtyintlimits{} regarding where the limits are placed.
14 The former places them next to the symbols, the latter above and below.
15
16 For example, \inlinecode|\strtyint{5}{}{{\bb R}^5}| and \inlinecode|\strtyintlimits{5}{}{{\bb R}^5}| prints
17 $$ \strtyint{5}{}{{\bb R}^5} \quad \strtyintlimits{5}{}{{\bb R}^5} $$
18 \emacroexp
19
20 \macroexp{\strtyoint {<N>}{<sup>}{<sub>}/crcr
21 \strtyointlimits {<N>}{<sup>}{<sub>}}
22 This prints {\it N} integral signs with a circle stretched out painted on them.
23 {\it sup} and {\it sub} are the superscript and subscript material respectively.
24 \macro\strtyoint{} differs from \macro\strtyointlimits{} regarding where the limits are placed.
25 The former places them next to the symbols, the latter above and below.
26
27 For example, \inlinecode|\strtyoint{5}{}{\partial S}| and \inlinecode|\stryointlimits{5}{}{\partial S}| prints
28 $$ \strtyoint{5}{}{\partial S} \quad \strtyointlimits{5}{}{{\bb R}^5} $$
29 \emacroexp
30
31 \macroexp{\strtysqint {<N>}{<sup>}{<sub>}/crcr
32 \strtysqintlimits {<N>}{<sup>}{<sub>}}
33 This prints {\it N} integral signs with a square stretched out painted on them.
34 {\it sup} and {\it sub} are the superscript and subscript material respectively.
35 \macro\strtysqint{} differs from \macro\strtysqintlimits{} regarding where the limits are placed.
36 The former places them next to the symbols, the latter above and below.
37
38 For example, \inlinecode|\strtysqint{5}{}{\partial S}| and \inlinecode|\strysqintlimits{5}{}{\partial S}| prints
39 $$ \strtysqint{5}{}{\partial S} \quad \strtysqintlimits{5}{}{{\bb R}^5} $$
40 \emacroexp
41
42 \macroexp{\strtyrsqint {<N>}{<sup>}{<sub>}/crcr
43 \strtyrsqintlimits {<N>}{<sup>}{<sub>}}
44 This prints {\it N} integral signs with a rounded square stretched out painted on them.
45 {\it sup} and {\it sub} are the superscript and subscript material respectively.
46 \macro\strtyrsqint{} differs from \macro\strtyrsqintlimits{} regarding where the limits are placed.
47 The former places them next to the symbols, the latter above and below.
48
49 For example, \inlinecode|\strtyrsqint{5}{}{\partial S}| and \inlinecode|\stryrsqintlimits{5}{}{\partial S}| prints
50 $$ \strtyrsqint{5}{}{\partial S} \quad \strtyrsqintlimits{5}{}{{\bb R}^5} $$
51 \emacroexp
52
53 \macroexp{\strtytriint {<N>}{<sup>}{<sub>}/crcr
54 \strtytriintlimits {<N>}{<sup>}{<sub>}}
55 This prints {\it N} integral signs with a triangle stretched out painted on them.
56 {\it sup} and {\it sub} are the superscript and subscript material respectively.
57 \macro\strtytriint{} differs from \macro\strtytriintlimits{} regarding where the limits are placed.
58 The former places them next to the symbols, the latter above and below.
59
60 For example, \inlinecode|\strtytriint{5}{}{\partial S}| and \inlinecode|\strytriintlimits{5}{}{\partial S}| prints
61 $$ \strtytriint{5}{}{\partial S} \quad \strtytriintlimits{5}{}{{\bb R}^5} $$
62 \emacroexp
63
64 \macroexp{\pii {<N>}}
65 Prints $\pi$ with {\it N} legs.
66 This can be used for fractions of $\pi$.
67 That is, \inlinecode|\pii{N}| corresponds to the value $2\pi/N$.
68 For example, \inlinecode|\pii{5}| gives $\pii{5}$
69 \emacroexp
70
71 \subsection{Stretched symbols}
72
73 Stretchy provides methods of stretching symbols, allowing them to grow arbitrarily large.
74 These symbols are:
75
76 \macroexp{\xint {<sup>}{<sub>}{<material>}}
77 This draws an integral sign stretched to match the height and depth of {\it material} with superscript and
78 subscript material corresponding to {\it sup} and {\it sub} respectively.
79
80 For example \inlinecode|\xint {-3}{-2}{\sum_{n=1}^\infty n^x\,dx}| produces
81 $$ \xint {-3}{-2}{\sum_{n=1}^\infty n^x\,dx} $$
82 \emacroexp
83
84 \macroexp{\xhsum {<sup>}{<sub>}/crcr
85 \xvsum {<sup>}{<sub>}{<material>}/crcr
86 \xhvsum {<sup>}{<sub>}{<material>}}
87 \blist
88 \item \macro\xhsum{} paints a summation symbol stretched horizontally to match the width of its limits;
89 \item \macro\xvsum{} paints a summation symbol stretched vertically to match the height and depth of
90 {\it material} with the specified limits;
91 \item \macro\xhvsum{} paints a summation symbol stretched both horizontally (to match the width of its
92 limits) and vertically (to match the height and depth of {\it material}).
93 \elist
94 For example,
95 \begincode
96 \xhsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{1\over n}
97 \xvsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{{1\over n}}
98 \xhvsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{{1\over n}}
99 /endcode
100 $$
101 \xhsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{1\over n};\qquad
102 \xvsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{{1\over n}};\qquad
103 \xhvsum {}{n\in\{2a+3b\;\mid\;a,b\in{\bb Z}\}}{{1\over n}}
104 $$
105 \emacroexp
106
107 \macroexp{\xhbigcup {<sup>}{<sub>}/crcr
108 \xvbigcup {<sup>}{<sub>}{<material>}/crcr
109 \xhvbigcup {<sup>}{<sub>}{<material>}}
110 \blist
111 \item \macro\xhbigcup{} paints a big-cup symbol stretched horizontally to match the width of its limits;
112 \item \macro\xvbigcup{} paints a big-cup symbol stretched vertically to match the height and depth of
113 {\it material} with the specified limits;
114 \item \macro\xhvbigcup{} paints a big-cup symbol stretched both horizontally (to match the width of its
115 limits) and vertically (to match the height and depth of {\it material}).
116 \elist
117 For example,
118 \begincode
119 \xhbigcup{}{f\in L^2(\mu),\int f>0}\left\{{1\over f},f\right\};\qquad
120 \xvbigcup{}{f\in L^2(\mu),\int f>0}{\left\{{1\over f},f\right\}};\qquad
121 \xhvbigcup{}{f\in L^2(\mu),\int f>0}{\left\{{1\over f},f\right\}}
122 /endcode
123 $$
124 \xhbigcup{}{f\in L^2(\mu),\int f>0}\left\{{1\over f},f\right\};\qquad
125 \xvbigcup{}{f\in L^2(\mu),\int f>0}{\left\{{1\over f},f\right\}};\qquad
126 \xhvbigcup{}{f\in L^2(\mu),\int f>0}{\left\{{1\over f},f\right\}}
127 $$
128 \emacroexp
129
130 \macroexp{\xhbigcap {<sup>}{<sub>}/crcr
131 \xvbigcap {<sup>}{<sub>}{<material>}/crcr
132 \xhvbigcap {<sup>}{<sub>}{<material>}}
133 \blist
134 \item \macro\xhbigcap{} paints a big-cap symbol stretched horizontally to match the width of its limits;
135 \item \macro\xvbigcap{} paints a big-cap symbol stretched vertically to match the height and depth of
136 {\it material} with the specified limits;
137 \item \macro\xhvbigcap{} paints a big-cap symbol stretched both horizontally (to match the width of its
138 limits) and vertically (to match the height and depth of {\it material}).
139 \elist
140 For example,
141 \begincode
142 \xhbigcap{}{n=1,2,3,\dots}\left[0,{1\over n}\right]
143 \xvbigcap{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
144 \xhvbigcap{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
145 /endcode
146 $$
147 \xhbigcap{}{n=1,2,3,\dots}\left[0,{1\over n}\right];\qquad
148 \xvbigcap{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]};\qquad
149 \xhvbigcap{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
150 $$
151 \emacroexp
152
153 \macroexp{\xhprod {<sup>}{<sub>}/crcr
154 \xvprod {<sup>}{<sub>}{<material>}/crcr
155 \xhvprod {<sup>}{<sub>}{<material>}}
156 \blist
157 \item \macro\xhprod{} paints a product symbol stretched horizontally to match the width of its limits;
158 \item \macro\xvprod{} paints a productsymbol stretched vertically to match the height and depth of
159 {\it material} with the specified limits;
160 \item \macro\xhvprod{} paints a product symbol stretched both horizontally (to match the width of its
161 limits) and vertically (to match the height and depth of {\it material}).
162 \elist
163 For example,
164 \begincode
165 \xhprod{}{n=1,2,3,\dots}\left[0,{1\over n}\right]
166 \xvprod{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
167 \xhvprod{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
168 /endcode
169 $$
170 \xhprod{}{n=1,2,3,\dots}\left[0,{1\over n}\right];\qquad
171 \xvprod{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]};\qquad
172 \xhvprod{}{n=1,2,3,\dots}{\left[0,{1\over n}\right]}
173 $$
174 \emacroexp
175
176 \subsection{Stretchy Logo}
177
178 Stretchy also provides macros for producing its logo.
179 To produce the logo itself, Stretchy provides the macro \macro\stretchylogo:
180
181 \centerline{\stretchylogo}
182
183 To produce the e and t in the Stretchy logo, Stretchy provides the macros \macro\strty@e{} and
184 \macro\strty@t, whose usages are
185
186 \getmacrousage{\strty@e {<width>}/crcr\strty@t {<width>}{<height+depth>}}
187
188 For example,
189
190 \begincode
191 \strty@e{15pt}
192 \strty@t{15pt}{10pt}
193 /endcode
194
195 \centerline{\strty@e{15pt}\qquad\strty@t{15pt}{10pt}}