1<TeXmacs|1.0.3.5>
2
3<style|source>
4
5<\body>
6  <active*|<\src-title>
7    <src-package|allouche|1.0>
8
9    <\src-purpose>
10      An example style package used by David Allouche.
11    </src-purpose>
12
13    <src-copyright|1998--2004|David Allouche>
14
15    <\src-license>
16      This software falls under the <hlink|GNU general public
17      license, version 3 or later|$TEXMACS_PATH/LICENSE>.
18      It comes WITHOUT ANY WARRANTY WHATSOEVER.
19      You should have received a copy of the license which the software.
20      If not, see <hlink|http://www.gnu.org/licenses/gpl-3.0.html|http://www.gnu.org/licenses/gpl-3.0.html>.
21    </src-license>
22  </src-title>>
23
24  <with|font-series|bold|Standard macros for help files>
25
26  <assign|TeXmacs|<macro|T<rsub|<space|-0.4spc><move|<resize|<with|math-level|0|E>||||0.5fn|>|0fn|-0.1fn>><space|-0.4spc>X<rsub|<space|-0.4spc><move|<resize|M<space|-0.2spc>A<space|-0.4spc>CS||||0.5fn|>|0fn|-0.1fn>>>>
27
28  <assign|scheme|<with|font-shape|small-caps|Scheme>>
29
30  <assign|tmdef|<macro|concept|<with|font-shape|italic|<arg|concept>>>>
31
32  <assign|tmref|<macro|concept|index|extra|<arg|concept>>>
33
34  <assign|key|<macro|which|<block*|<tformat|<table|<row|<cell|<arg|which>>>>>>>>
35
36  <assign|menu|<macro|name|<with|font-family|ss|<arg|name>>>>
37
38  <assign|submenu|<macro|name|sub|<with|font-family|ss|<arg|name><with|mode|math|\<rightarrow\>><arg|sub>>>>
39
40  <assign|subsubmenu|<macro|name|sub|subsub|<with|font-family|ss|<arg|name><with|mode|math|\<rightarrow\>><arg|sub><with|mode|math|\<rightarrow\>><arg|subsub>>>>
41
42  <assign|at|@>
43
44  <assign|underscore|<with|font-family|tt|_>>
45
46  <assign|TeX|<macro|T<rsub|<space|-0.4spc><move|<resize|<with|math-level|0|E>||||0.5fn|>|0fn|-0.1fn>><space|-0.4spc>X>>
47
48  <assign|LaTeX|<macro|L<rsup|<space|-0.8spc><move|A|0fn|-0.1fn>><space|-0.2spc>T<rsub|<space|-0.4spc><move|<resize|<with|math-level|0|E>||||0.5fn|>|0fn|-0.1fn>><space|-0.4spc>X>>
49
50  <assign|pari|<with|font-shape|small-caps|Pari>>
51
52  \;
53
54  <with|font-series|bold|Additional layout and code snippets macros>
55
56  <assign|noparskip|<macro|body|<with|par-par-sep|0cm|<arg|body>><vspace|<value|par-par-sep>>>>
57
58  <assign|indent step|4spc>
59
60  <assign|indent|<macro|body|<with|par-left|<plus|<value|par-left>|<indent\ step>>|<arg|body>>>>
61
62  <assign|code|<macro|c|<indent|<with|par-par-sep|0|<surround|<yes-indent>|<vspace|0.5fn>|<arg|c>>>>>>
63
64  <assign|NULL|<with|font-family|tt|NULL>>
65
66  <assign|visibility|<macro|x|<with|par-left|<minus|<value|par-left>|<value|indent
67  step>>|<keyw|<arg|x>:>>>>
68
69  \;
70
71  <with|font-series|bold|Shell and filesystem related macros>
72
73  <assign|sh|<macro|arg1|<with|font-family|tt|<arg|arg1>>>>
74
75  Name of a program that can be typed on the shell prompt or asked about
76  using man, or info.
77
78  <assign|bash|<macro|arg1|<with|font-family|tt|<arg|arg1>>>>
79
80  Fragment of a script for the <sh|bash> shell. On a GNU/Linux system, this
81  can generally be typed on the command-line prompt.
82
83  <assign|shopt|<macro|text|<with|font-family|tt|<arg|text>>>>
84
85  Option that can be passed to some shell command.
86
87  <assign|file|<macro|name|<with|font-family|tt|<arg|name>>>>
88
89  Name of a source file.
90
91  <assign|dir|<macro|name|<with|font-family|tt|<arg|name>>>>
92
93  Name of a filesystem directory.
94
95  <assign|path|<macro|thedir|thefile|<dir|<arg|thedir>><with|font-family|tt|/><file|<arg|thefile>>>>
96
97  Full path.
98
99  <assign|c++|<group|<with|font-family|ss|C><space|-.75spc>+<space|-.75spc>+>>
100
101  Name of C++ language
102
103  <assign|c|<with|font-family|ss|C>>
104
105  Name of C language
106
107  <\with|font-series|bold>
108    \;
109
110    Basic C++ language macros
111  </with>
112
113  <assign|var|<macro|name|<with|font-family|tt|<with|color|brown|<arg|name>>>>>
114
115  Name of a variable found in the source.
116
117  <assign|type|<macro|name|<with|font-family|tt|<with|color|green|<arg|name>>>>>
118
119  Name of a data type, structure, class, etc. found in the source.
120
121  <assign|const|<macro|name|<with|font-family|tt|<arg|name>>>>
122
123  Name of a constant value (#define, const variable, etc.)
124
125  <assign|func|<macro|name|<with|font-family|tt|<with|color|blue|<arg|name>>>>>
126
127  Name of a function, a method or a paraterized macro.
128
129  <assign|oper|<macro|op|<if|<equal|<arg|op>|-\<gtr\>>|<with|mode|math|\<rightarrow\>>|<if|<equal|<arg|op>|*>|<with|mode|math|\<ast\>>|<if|<equal|<arg|op>|!=>|<with|mode|math|\<neq\>>|<with|font-family|tt|<arg|op>>>>>>>
130
131  A C++ operator, can pretty print som operators.
132
133  <assign|qmeth|<macro|class|meth|<type|<arg|class>><oper|::><macro|<arg|meth>><macro|>>>
134
135  A qualified method name.
136
137  <assign|ptrmsg|<macro|class|meth|<type|<arg|class>><oper|-\<gtr\>><macro|<arg|meth>><macro|>>>
138
139  A message sent to a object of a given class after dereferencing (with the
140  -\<gtr\> operator).
141
142  <assign|keyw|<macro|word|<with|font-family|ss|<arg|word>>>>
143
144  A C++ keyword.
145
146  \;
147
148  <with|font-series|bold|Advanced C++ language macros>
149
150  <assign|module|<macro|name|<with|font-family|tt|<arg|name>>>>
151
152  Name of a gencc module.
153
154  <assign|parameter|<macro|thetype|thename|default|<type|<arg|thetype>><if|<unequal||<arg|thename>>|
155  ><var|<arg|thename><if|<unequal|<arg|default>|>|<with|mode|math|=>><with|font-family|tt|<arg|default>>>>>
156
157  Function parameter (utility macro). Separating space is not displayed if
158  name is empty
159
160  <assign|funcproto|<macro|r|f|p|<type|<arg|r>><if|<equal|<arg|r>|>||
161  ><macro|<arg|f>>(<with|param-sep||param|<macro|t|n|<value|param-sep><type|<arg|t>><if|<equal|<arg|n>|>||
162  ><var|<arg|n>><assign|param-sep|, >>|<arg|p>>)>>
163
164  A function prototype without a structred parameter signature
165
166  <assign|funcproto0|<macro|ret|name|type1|name1|<funcproto|<arg|ret>|<arg|name>|>>>
167
168  A function prototype without parameter.
169
170  <assign|funcproto1|<macro|ret|name|type1|name1|<funcproto|<arg|ret>|<arg|name>|<parameter|<arg|type1>|<arg|name1>>>>>
171
172  A function prototype with one parameter.
173
174  <assign|funcproto2|<macro|ret|name|type1|name1|type2|name2|<funcproto|<arg|ret>|<arg|name>|<parameter|<arg|type1>|<arg|name1>>,
175  <parameter|<arg|type2>|<arg|name2>>>>>
176
177  <assign|funcproto3|<macro|ret|name|type1|name1|type2|name2|type3|name3|<funcproto|<arg|ret>|<arg|name>|<parameter|<arg|type1>|<arg|name1>>,
178  <parameter|<arg|type2>|<arg|name2>>, <parameter|<arg|type3>|<arg|name3>>>>>
179
180  <assign|funcproto4|<macro|ret|name|type1|name1|type2|name2|type3|name3|type4|name4|<funcproto|<arg|ret>|<arg|name>|<parameter|<arg|type1>|<arg|name1>>,
181  <parameter|<arg|type2>|<arg|name2>>, <parameter|<arg|type3>|<arg|name3>>,
182  <parameter|<arg|type4>|<arg|name4>>>>>
183
184  <assign|funcproto5|<macro|ret|name|type1|name1|type2|name2|type3|name3|type4|name4|type5|name5|<funcproto|<arg|ret>|<arg|name>|<parameter|<arg|type1>|<arg|name1>>,
185  <parameter|<arg|type2>|<arg|name2>>, <parameter|<arg|type3>|<arg|name3>>,
186  <parameter|<arg|type4>|<arg|name4>>, <parameter|<arg|type5>|<arg|name5>>>>>
187
188  Idem with two, three and more parameters.
189
190  \;
191
192  <with|font-series|bold|Scheme language macros>
193
194  <assign|svar|<macro|name|<with|font-family|tt|<arg|name>>>>
195
196  Name of a Scheme variable.
197
198  <assign|sfunc|<macro|name|<with|font-family|tt|<arg|name>>>>
199
200  Name of a Scheme function.
201
202  \;
203
204  <with|font-series|bold|Old definitions>
205
206  <assign|cmnt|<macro|x|<htab|5mm><with|font-size|0.84|<arg|x>>>>
207
208  <assign|cpp|<macro|x|<with|font-family|tt|<arg|x>>>>
209
210  <assign|class|<macro|thename|body|<surround|<assign|theclass|<arg|thename>><subsection|Class
211  <type|<theclass>>>||<arg|body>>>>
212
213  <assign|interface|<macro|thelabel|body|<surround|<subsubsection|<arg|thelabel>>|<vspace|1fn>|<with|par-par-sep|0|first
214  indent|2fn|<surround|<yes-indent*>||<arg|body>>>>>>
215
216  <assign|members|<macro|body|<interface|Members|<arg|body>>>>
217
218  <assign|funcproto|<macro|r|f|p|<type|<arg|r>><if|<equal|<arg|r>|>||
219  ><macro|<arg|f>>(<with|param-sep||param|<macro|t|n|<value|param-sep><type|<arg|t>><if|<equal|<arg|n>|>||
220  ><var|<arg|n>><assign|param-sep|, >>|<arg|p>>)>>
221
222  <assign|//|<macro|//|<htab|5mm><with|font-size|0.84|<arg|//>>>>
223
224  \;
225
226  <with|font-series|bold|Definitions which should become obsolete>
227
228  <assign|theparams|><assign|paramsep|><assign|thecomment|><assign|thereturn|>
229
230  <assign|function|<macro|name|body|<assign|theparams|><assign|paramsep|><assign|thecomment|><assign|thereturn|><with|themethod|<arg|name>|paramsep||theparams||thecomment||thereturn||<arg|body><value|thereturn><with|font-family|tt|<with|color|blue|<value|themethod>>>
231  (<value|theparams>)<htab|5mm><with|font-size|0.84|<value|thecomment>>>>>
232
233  <assign|constructor|<macro|body|<function|<value|theclass>|<assign|thereturn|><arg|body>>>>
234
235  <assign|data|<macro|thetype|thename|thecomment|<with|font-family|tt|color|green|<arg|thetype>>
236  <with|font-family|tt|color|brown|<arg|thename>><htab|5mm><arg|thecomment>>>
237
238  <assign|comment|<macro|text|<assign|thecomment|<arg|text>>>>
239
240  <assign|!param|<macro|x|<assign|theparams|<value|theparams><value|paramsep><arg|x>><assign|paramsep|,
241  >>>
242
243  <assign|param|<macro|thetype|thename|<param|<with|font-family|tt|color|green|<arg|thetype>>
244  <with|font-family|tt|color|brown|<arg|thename>>>>>
245
246  <assign|optparam|<macro|thetype|thename|thedefault|<param|<with|font-family|tt|color|green|<arg|thetype>>
247  <with|font-family|tt|color|brown|<arg|thename>=<arg|thedefault>>>>>
248
249  <assign|return|<macro|thetype|<assign|thereturn|<with|font-family|tt|color|green|<arg|thetype>>
250  >>>
251
252  \;
253</body>
254
255<\initial>
256  <\collection>
257    <associate|page-bot|1in>
258    <associate|page-even|1in>
259    <associate|page-odd|1in>
260    <associate|page-reduce-bot|0.3in>
261    <associate|page-reduce-left|0.7in>
262    <associate|page-reduce-right|0.7in>
263    <associate|page-reduce-top|0.3in>
264    <associate|page-right|1in>
265    <associate|page-top|1in>
266    <associate|page-type|letter>
267    <associate|par-width|6.5in>
268    <associate|preamble|true>
269  </collection>
270</initial>