CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
% generated by GAPDoc2LaTeX from XML source (Frank Luebeck)
2
\documentclass[a4paper,11pt]{report}
3
4
\usepackage{a4wide}
5
\sloppy
6
\pagestyle{myheadings}
7
\usepackage{amssymb}
8
\usepackage[latin1]{inputenc}
9
\usepackage{makeidx}
10
\makeindex
11
\usepackage{color}
12
\definecolor{FireBrick}{rgb}{0.5812,0.0074,0.0083}
13
\definecolor{RoyalBlue}{rgb}{0.0236,0.0894,0.6179}
14
\definecolor{RoyalGreen}{rgb}{0.0236,0.6179,0.0894}
15
\definecolor{RoyalRed}{rgb}{0.6179,0.0236,0.0894}
16
\definecolor{LightBlue}{rgb}{0.8544,0.9511,1.0000}
17
\definecolor{Black}{rgb}{0.0,0.0,0.0}
18
19
\definecolor{linkColor}{rgb}{0.0,0.0,0.554}
20
\definecolor{citeColor}{rgb}{0.0,0.0,0.554}
21
\definecolor{fileColor}{rgb}{0.0,0.0,0.554}
22
\definecolor{urlColor}{rgb}{0.0,0.0,0.554}
23
\definecolor{promptColor}{rgb}{0.0,0.0,0.589}
24
\definecolor{brkpromptColor}{rgb}{0.589,0.0,0.0}
25
\definecolor{gapinputColor}{rgb}{0.589,0.0,0.0}
26
\definecolor{gapoutputColor}{rgb}{0.0,0.0,0.0}
27
28
%% for a long time these were red and blue by default,
29
%% now black, but keep variables to overwrite
30
\definecolor{FuncColor}{rgb}{0.0,0.0,0.0}
31
%% strange name because of pdflatex bug:
32
\definecolor{Chapter }{rgb}{0.0,0.0,0.0}
33
\definecolor{DarkOlive}{rgb}{0.1047,0.2412,0.0064}
34
35
36
\usepackage{fancyvrb}
37
38
\usepackage{mathptmx,helvet}
39
\usepackage[T1]{fontenc}
40
\usepackage{textcomp}
41
42
43
\usepackage[
44
pdftex=true,
45
bookmarks=true,
46
a4paper=true,
47
pdftitle={Written with GAPDoc},
48
pdfcreator={LaTeX with hyperref package / GAPDoc},
49
colorlinks=true,
50
backref=page,
51
breaklinks=true,
52
linkcolor=linkColor,
53
citecolor=citeColor,
54
filecolor=fileColor,
55
urlcolor=urlColor,
56
pdfpagemode={UseNone},
57
]{hyperref}
58
59
\newcommand{\maintitlesize}{\fontsize{50}{55}\selectfont}
60
61
% write page numbers to a .pnr log file for online help
62
\newwrite\pagenrlog
63
\immediate\openout\pagenrlog =\jobname.pnr
64
\immediate\write\pagenrlog{PAGENRS := [}
65
\newcommand{\logpage}[1]{\protect\write\pagenrlog{#1, \thepage,}}
66
%% were never documented, give conflicts with some additional packages
67
68
\newcommand{\GAP}{\textsf{GAP}}
69
70
%% nicer description environments, allows long labels
71
\usepackage{enumitem}
72
\setdescription{style=nextline}
73
74
%% depth of toc
75
\setcounter{tocdepth}{1}
76
77
78
79
80
81
%% command for ColorPrompt style examples
82
\newcommand{\gapprompt}[1]{\color{promptColor}{\bfseries #1}}
83
\newcommand{\gapbrkprompt}[1]{\color{brkpromptColor}{\bfseries #1}}
84
\newcommand{\gapinput}[1]{\color{gapinputColor}{#1}}
85
86
87
\begin{document}
88
89
\logpage{[ 0, 0, 0 ]}
90
\begin{titlepage}
91
\mbox{}\vfill
92
93
\begin{center}{\maintitlesize \textbf{A Complete Example ($\to$ \ref{One})\mbox{}}}\\
94
\vfill
95
96
\hypersetup{pdftitle=A Complete Example ($\to$ \ref{One})}
97
\markright{\scriptsize \mbox{}\hfill A Complete Example ($\to$ \ref{One}) \hfill\mbox{}}
98
{\Huge \textbf{Every element shows up\mbox{}}}\\
99
\vfill
100
101
{\Huge Version 1.6.1 \mbox{}}\\[1cm]
102
{November 2017\mbox{}}\\[1cm]
103
\mbox{}\\[2cm]
104
{\Large \textbf{Frank L{\"u}beck \mbox{}}}\\
105
{\Large \textbf{ Max Neunh{\"o}ffer \mbox{}}}\\
106
\hypersetup{pdfauthor=Frank L{\"u}beck ; Max Neunh{\"o}ffer }
107
\mbox{}\\[2cm]
108
\begin{minipage}{12cm}\noindent
109
If the subtitle is not sufficient, this {\textless}TitleComment{\textgreater}
110
element can be used for a slightly longer text on the front page. \end{minipage}
111
112
\end{center}\vfill
113
114
\mbox{}\\
115
{\mbox{}\\
116
\small \noindent \textbf{Frank L{\"u}beck } Email: \href{mailto://Frank.Luebeck@Math.RWTH-Aachen.De} {\texttt{Frank.Luebeck@Math.RWTH-Aachen.De}}}\\
117
{\mbox{}\\
118
\small \noindent \textbf{ Max Neunh{\"o}ffer } Email: \href{mailto://neunhoef at mcs.st-and.ac.uk} {\texttt{neunhoef at mcs.st-and.ac.uk}}}\\
119
120
\noindent \textbf{Address: }\begin{minipage}[t]{8cm}\noindent
121
Lehrstuhl D f{\"u}r Mathematik\\
122
Pontdriesch 14/16\\
123
52062 Aachen\\
124
(Germany) \end{minipage}
125
\end{titlepage}
126
127
\newpage\setcounter{page}{2}
128
{\small
129
\section*{Abstract}
130
\logpage{[ 0, 0, 1 ]}
131
This document tries to use all elements that exist in \textsf{GAPDoc}. In addition, the final output not only contains the usual content, but also
132
an appendix with the source text. There are also links from the usual content
133
to the corresponding source text. This should enable new users to learn \textsf{GAPDoc} quickly. \mbox{}}\\[1cm]
134
{\small
135
\section*{Copyright}
136
\logpage{[ 0, 0, 2 ]}
137
{\copyright} 2000-2017 by Frank L{\"u}beck and Max Neunh{\"o}ffer \mbox{}}\\[1cm]
138
{\small
139
\section*{Acknowledgements}
140
\logpage{[ 0, 0, 3 ]}
141
We thank Lehrstuhl D f{\"u}r Mathematik. \mbox{}}\\[1cm]
142
{\small
143
\section*{Colophon}
144
\logpage{[ 0, 0, 4 ]}
145
This is the Colophon page. \mbox{}}\\[1cm]
146
\newpage
147
148
\def\contentsname{Contents\logpage{[ 0, 0, 5 ]}}
149
150
\tableofcontents
151
\newpage
152
153
Text before chapter \ref{First}. ($\to$ \ref{Two})
154
\chapter{\textcolor{Chapter }{Sectioning Elements}}\label{First}
155
\logpage{[ 1, 0, 0 ]}
156
\hyperdef{L}{X80E2AD7481DD69D9}{}
157
{
158
Text before the section \ref{FirstSect}. ($\to$ \ref{Two}) \label{ThreeBack}
159
\section{\textcolor{Chapter }{Normal subsections}}\label{FirstSect}
160
\logpage{[ 1, 1, 0 ]}
161
\hyperdef{L}{X7818BD01870A269E}{}
162
{
163
[$\to$ \ref{Three}]
164
\subsection{\textcolor{Chapter }{A subsection}}\label{Asub}
165
\logpage{[ 1, 1, 1 ]}
166
\hyperdef{L}{X7E193BD379F58A4C}{}
167
{
168
This is text in the first subsection. }
169
170
171
\subsection{\textcolor{Chapter }{Another subsection}}\label{Another}
172
\logpage{[ 1, 1, 2 ]}
173
\hyperdef{L}{X79C2A0097ADE9776}{}
174
{
175
This is text in the second subsection. This subsection has a label, such that
176
one can reference it. }
177
178
}
179
180
181
\section{\textcolor{Chapter }{ManSections}}\logpage{[ 1, 2, 0 ]}
182
\hyperdef{L}{X7C2D89087EA8BC84}{}
183
{
184
\label{FourBack} [$\to$ \ref{Four}]
185
186
\subsection{\textcolor{Chapter }{f}}
187
\logpage{[ 1, 2, 1 ]}\nobreak
188
\hyperdef{L}{X7FA1D0937FA1D093}{}
189
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{f({\mdseries\slshape x[, y]})\index{f@\texttt{f}}
190
\label{f}
191
}\hfill{\scriptsize (function)}}\\
192
\textbf{\indent Returns:\ }
193
an element in \texttt{IsBlubb} (\ref{IsBlubb}) or \texttt{fail}.
194
195
196
197
This function calculates something. }
198
199
200
201
\subsection{\textcolor{Chapter }{\texttt{\symbol{92}}\texttt{\symbol{94}}\texttt{\symbol{92}}\texttt{\symbol{123}}\texttt{\symbol{92}}\texttt{\symbol{125}}\texttt{\symbol{92}}[\texttt{\symbol{92}}]\texttt{\symbol{92}}{\textless}\texttt{\symbol{92}}\& (for nothing)}}
202
\logpage{[ 1, 2, 2 ]}\nobreak
203
\hyperdef{L}{X822B5C487B29E799}{}
204
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{\texttt{\symbol{92}}\texttt{\symbol{94}}\texttt{\symbol{92}}\texttt{\symbol{123}}\texttt{\symbol{92}}\texttt{\symbol{125}}\texttt{\symbol{92}}[\texttt{\symbol{92}}]\texttt{\symbol{92}}{\textless}\texttt{\symbol{92}}\&({\mdseries\slshape c})\index{^{}[]<&@\texttt{\texttt{\symbol{92}}\texttt{\symbol{94}}\texttt{\symbol{92}}\texttt{\symbol{123}}\texttt{\symbol{92}}\texttt{\symbol{125}}\texttt{\symbol{92}}[\texttt{\symbol{92}}]\texttt{\symbol{92}}{\textless}\texttt{\symbol{92}}\&}!for nothing}
205
\label{^{}[]<&:for nothing}
206
}\hfill{\scriptsize (method)}}\\
207
208
209
This method is for an operation with a tricky name. }
210
211
212
213
\subsection{\textcolor{Chapter }{MyOperation}}
214
\logpage{[ 1, 2, 3 ]}\nobreak
215
\hyperdef{L}{X7D33C2597988F481}{}
216
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{MyOperation({\mdseries\slshape x})\index{MyOperation@\texttt{MyOperation}}
217
\label{MyOperation}
218
}\hfill{\scriptsize (operation)}}\\
219
220
221
The operation \texttt{MyOperation} operates on \mbox{\texttt{\mdseries\slshape x}}. }
222
223
224
225
\subsection{\textcolor{Chapter }{MyOperation (First)}}
226
\logpage{[ 1, 2, 4 ]}\nobreak
227
\hyperdef{L}{X783DCD4E826289D4}{}
228
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{MyOperation({\mdseries\slshape x})\index{MyOperation@\texttt{MyOperation}!First}
229
\label{MyOperation:First}
230
}\hfill{\scriptsize (method)}}\\
231
232
233
This method calculates something by the generic method. }
234
235
236
237
\subsection{\textcolor{Chapter }{MyOperation (for bla)}}
238
\logpage{[ 1, 2, 5 ]}\nobreak
239
\hyperdef{L}{X7A5F4A287D06988C}{}
240
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{MyOperation({\mdseries\slshape x[, good{\textunderscore}hint]})\index{MyOperation@\texttt{MyOperation}!for bla}
241
\label{MyOperation:for bla}
242
}\hfill{\scriptsize (method)}}\\
243
244
245
This is the super-fast method for the operation \texttt{MyOperation} (\ref{MyOperation}) if the argument \mbox{\texttt{\mdseries\slshape x}} is in the representation \texttt{IsBla} (\ref{IsBla}). It will become even faster if the optional argument \mbox{\texttt{\mdseries\slshape good{\textunderscore}hint}} is given. }
246
247
248
249
\subsection{\textcolor{Chapter }{MyConstructor}}
250
\logpage{[ 1, 2, 6 ]}\nobreak
251
\hyperdef{L}{X86E3B93D87FE4828}{}
252
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{MyConstructor({\mdseries\slshape filt, x})\index{MyConstructor@\texttt{MyConstructor}}
253
\label{MyConstructor}
254
}\hfill{\scriptsize (constructor)}}\\
255
256
257
The constructor \texttt{MyConstructor} constructs from \mbox{\texttt{\mdseries\slshape x}} an object in \mbox{\texttt{\mdseries\slshape filt}}. }
258
259
260
261
\subsection{\textcolor{Chapter }{IsBla}}
262
\logpage{[ 1, 2, 7 ]}\nobreak
263
\hyperdef{L}{X82954B687D2DF3C2}{}
264
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{IsBla({\mdseries\slshape obj})\index{IsBla@\texttt{IsBla}}
265
\label{IsBla}
266
}\hfill{\scriptsize (representation)}}\\
267
268
269
For objects in this representation there is a super-fast method (see \texttt{MyOperation} (\ref{MyOperation:for bla})) for the operation \texttt{MyOperation} (\ref{MyOperation}). }
270
271
272
273
\subsection{\textcolor{Chapter }{IsBlubb}}
274
\logpage{[ 1, 2, 8 ]}\nobreak
275
\hyperdef{L}{X80C364DD7C919CCE}{}
276
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{IsBlubb({\mdseries\slshape obj})\index{IsBlubb@\texttt{IsBlubb}}
277
\label{IsBlubb}
278
}\hfill{\scriptsize (property)}}\\
279
280
281
A property. }
282
283
284
285
\subsection{\textcolor{Chapter }{NumberBlobbs}}
286
\logpage{[ 1, 2, 9 ]}\nobreak
287
\hyperdef{L}{X8052A45E7F9F054C}{}
288
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{NumberBlobbs({\mdseries\slshape obj})\index{NumberBlobbs@\texttt{NumberBlobbs}}
289
\label{NumberBlobbs}
290
}\hfill{\scriptsize (attribute)}}\\
291
292
293
An attribute. Number of blobbs. }
294
295
296
297
\subsection{\textcolor{Chapter }{AllBlibbs}}
298
\logpage{[ 1, 2, 10 ]}\nobreak
299
\hyperdef{L}{X7C00E05A7DDEF003}{}
300
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{AllBlibbs\index{AllBlibbs@\texttt{AllBlibbs}}
301
\label{AllBlibbs}
302
}\hfill{\scriptsize (global variable)}}\\
303
304
305
This global variable holds a list of all blibbs. }
306
307
308
309
\subsection{\textcolor{Chapter }{BlibbsFamily}}
310
\logpage{[ 1, 2, 11 ]}\nobreak
311
\hyperdef{L}{X7CBC935A8142E374}{}
312
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{BlibbsFamily\index{BlibbsFamily@\texttt{BlibbsFamily}}
313
\label{BlibbsFamily}
314
}\hfill{\scriptsize (family)}}\\
315
316
317
Family of all blibbs. }
318
319
320
321
\subsection{\textcolor{Chapter }{InfoBlibbs}}
322
\logpage{[ 1, 2, 12 ]}\nobreak
323
\hyperdef{L}{X84D7D77378AD030A}{}
324
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{InfoBlibbs\index{InfoBlibbs@\texttt{InfoBlibbs}}
325
\label{InfoBlibbs}
326
}\hfill{\scriptsize (info class)}}\\
327
328
329
This info class is used throughout the library of blibbs. }
330
331
}
332
333
}
334
335
336
\chapter{\textcolor{Chapter }{Other Markup}}\logpage{[ 2, 0, 0 ]}
337
\hyperdef{L}{X82793A7E7A3F2A54}{}
338
{
339
\label{FiveBack}
340
\section{\textcolor{Chapter }{Various types of text}}\logpage{[ 2, 1, 0 ]}
341
\hyperdef{L}{X7A480B9A795EF264}{}
342
{
343
[$\to$ \ref{Five}]
344
345
In this section we present examples for all the various types of text that are
346
possible in \textsf{GAPDoc}:
347
\begin{itemize}
348
\item \emph{This} is \emph{emphasized}.
349
\item \emph{Keywords} are typeset like \texttt{this} and \texttt{that}.
350
\item \emph{Arguments} of functions have an element. They look like this: \mbox{\texttt{\mdseries\slshape x}} and \mbox{\texttt{\mdseries\slshape y}}.
351
\item \emph{Code} can be written with the Code element: \texttt{if x = y then Print("Equal"); fi;} or \texttt{while true do Print("Hello"); od;}.
352
\item \emph{Filenames} have their own element: \texttt{/usr/local/ca/gap4r2} or \texttt{pkg/xgap/doc}.
353
\item \emph{Buttons}, \emph{menus}, \emph{menu entries}, and such things are also supported: \textsc{OK} or \textsc{Cancel}.
354
\item \emph{Packages} are typeset like this: \textsf{Small Groups Library}
355
\item \emph{Quoted} text: ``This is a text in quotes.''
356
\end{itemize}
357
\emph{Paragraphs} are separated by the empty \texttt{Par} or \texttt{P} element.
358
359
\emph{Alternatives} for different output formats: This is {\LaTeX} output.
360
361
\label{SixBack} There are also three elements to typeset ``verbatim-like'' text. ($\to$ \ref{Six})
362
363
The first is a \emph{Listing}:
364
\begin{Verbatim}[fontsize=\small,frame=single,label=GAP code]
365
Sieve := function(n)
366
# Returns the primes less than n
367
local l,p,i;
368
l := [1..n]; Unbind(l[1]);
369
p := 2;
370
while p^2 <= n do
371
if IsBound(l[p]) then
372
i := 2 * p;
373
while i <= n do Unbind(l[i]); i := i + p; od;
374
fi;
375
p := p + 1;
376
od;
377
return Compacted(l);
378
end;
379
\end{Verbatim}
380
Here is a \emph{Log} of a \textsf{GAP} session using this function:
381
\begin{Verbatim}[commandchars=!@|,fontsize=\small,frame=single,label=Example]
382
!gapprompt@gap>| !gapinput@Sieve(100);|
383
[ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61,
384
67, 71, 73, 79, 83, 89, 97 ]
385
!gapprompt@gap>| !gapinput@Length(last);|
386
25
387
\end{Verbatim}
388
Here is a \textsf{GAP} \emph{Example} session that is automatically tested:
389
\begin{Verbatim}[commandchars=!@|,fontsize=\small,frame=single,label=Example]
390
!gapprompt@gap>| !gapinput@s := Size(CharacterTable("M"));|
391
808017424794512875886459904961710757005754368000000000
392
!gapprompt@gap>| !gapinput@s < 10^53; |
393
false
394
!gapprompt@gap>| !gapinput@s < 10^54;|
395
true
396
\end{Verbatim}
397
}
398
399
400
\section{\textcolor{Chapter }{Formulae}}\logpage{[ 2, 2, 0 ]}
401
\hyperdef{L}{X7AA5BF0279938BE0}{}
402
{
403
\label{SevenBack} [$\to$ \ref{Seven}]
404
405
There are three types of formulae.
406
407
The first is the \emph{normal math mode} of {\LaTeX}: $b_i \cdot b_j = \sum_{k=1}^d h_{ijk} b_k$. Then there are \emph{displayed formulae}:
408
\[ \Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot
409
\left(\sum_{j=1}^d y_j b_j \right) = \sum_{k=1}^d \left( \sum_{i,j} x_i y_j
410
h_{ijk} \right) b_k \]
411
If possible, use the \texttt{Alt} element to specify a better readable text version of such a formula as in the
412
following example:
413
414
415
\[ \Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot
416
\left(\sum_{j=1}^d y_j b_j \right) = \sum_{k=1}^d \left( \sum_{i,j} x_i y_j
417
h_{ijk} \right) b_k \]
418
For small formulae without ``difficult'' parts use the \texttt{M} element: $b_i$, $x^2$, $x^2 + 2x + 1 = (x + 1)^2$. Note that here whitespace matters for text (or HTML) output.
419
420
Here are two formulae containing less than characters which are special
421
characters for XML: $a < b < c < d$ and $e < f$.
422
423
Using the \texttt{Mode} attribute of a \texttt{Display} element formulae like
424
\[a \longrightarrow a \bmod m\prime\]
425
can also be displayed nicely in text and HTML output. }
426
427
428
\section{\textcolor{Chapter }{Crossreferencing}}\label{Cross}
429
\logpage{[ 2, 3, 0 ]}
430
\hyperdef{L}{X833C410D85CF96A4}{}
431
{
432
\label{EightBack} [$\to$ \ref{Eight}]
433
434
\label{there} In this section we demonstrate various references to parts of this document.
435
Here is a reference to this section: \ref{Cross}. Here is a reference to chapter \ref{First}, to appendix \ref{Appendix}, and to subsection \ref{Asub}.
436
437
We distinguish among others references to functions (see \texttt{f} (\ref{f})), to methods with tricky name (see \texttt{\texttt{\symbol{92}}\texttt{\symbol{94}}\texttt{\symbol{92}}\texttt{\symbol{123}}\texttt{\symbol{92}}\texttt{\symbol{125}}\texttt{\symbol{92}}[\texttt{\symbol{92}}]\texttt{\symbol{92}}{\textless}\texttt{\symbol{92}}\&} (\ref{^{}[]<&:for nothing})), to operations (see \texttt{MyOperation} (\ref{MyOperation})), to methods (see \texttt{MyOperation} (\ref{MyOperation:First}) or \texttt{MyOperation} (\ref{MyOperation:for bla})), to filters (see \texttt{IsBla} (\ref{IsBla})), to properties (see \texttt{IsBlubb} (\ref{IsBlubb})), to attributes (see \texttt{NumberBlobbs} (\ref{NumberBlobbs})), to variables (\texttt{AllBlibbs} (\ref{AllBlibbs})), to families (see \texttt{BlibbsFamily} (\ref{BlibbsFamily})), and to info classes (see \texttt{InfoBlibbs} (\ref{InfoBlibbs})).
438
439
There are also references to labels: see \ref{there}, to other books: see (\textbf{GAPDoc: What is a DTD?}) or \texttt{IsSubgroup} (\textbf{Reference: IsSubgroup}) in the \textsf{GAP} reference manual.
440
441
References to sections come in two styles: \ref{First} or \hyperref[First]{`Sectioning Elements'}.
442
443
Another type of cross referencing is bibliography. Here is a citation: \cite[(5.22)]{CR1} is an interesting lemma.
444
445
There are also URLs:
446
447
\href{http://www.math.rwth-aachen.de/} {\texttt{http://www.math.rwth-aachen.de/}}
448
449
Email addresses have a special element: \href{mailto://Frank.Luebeck@Math.RWTH-Aachen.De} {\texttt{Frank.Luebeck@Math.RWTH-Aachen.De}}
450
451
and Homepages another one: \href{http://www-groups.mcs.st-and.ac.uk/~neunhoef/} {\texttt{http://www-groups.mcs.st-and.ac.uk/\texttt{\symbol{126}}neunhoef/}}
452
453
And here is a link to the \href{http://www.math.rwth-aachen.de/~Frank.Luebeck/gap/EDIM/index.html#ARCHS} {\textsf{EDIM} archives}.
454
455
One can generate index entries as follows (look up the words ``{\TeX}-UserGroup'', ``RWTH'', ``Aachen, Hauptbahnhof'', and ``\textsf{GAPDoc}, for \textsf{GAP} programmers''). \index{TeX-Usergroup@{\TeX}-UserGroup} \index{RWTH} \index{Aachen!Hauptbahnhof} \index{GAPDoc@\textsf{GAPDoc}!for \textsf{GAP} programmers} }
456
457
458
\section{\textcolor{Chapter }{Lists and Tables}}\logpage{[ 2, 4, 0 ]}
459
\hyperdef{L}{X7F10E951789D6EDF}{}
460
{
461
\label{NineBack} [$\to$ \ref{Nine}]
462
463
There are
464
\begin{itemize}
465
\item lists
466
\item enumerations, and
467
\item tables
468
\end{itemize}
469
or:
470
\begin{enumerate}
471
\item lists
472
\item enumerations, and
473
\item tables
474
\end{enumerate}
475
or with marks:
476
\begin{description}
477
\item[{lists:}] not numbered
478
\item[{enumerations:}] numbered
479
\item[{tables:}] two-dimensional
480
\end{description}
481
Lists can also be nested:
482
\begin{enumerate}
483
\item
484
\begin{enumerate}
485
\item first item of inner enumeration
486
\item second item of inner enumeration
487
\end{enumerate}
488
489
\item
490
\begin{itemize}
491
\item first item of inner list
492
\item second item of inner list
493
\end{itemize}
494
495
\end{enumerate}
496
Here is a \emph{table}: \begin{center}
497
\begin{tabular}{|r|c|l|}\hline
498
Object&
499
Price&
500
available\\
501
\hline
502
\hline
503
Shoe&
504
\$1,00&
505
there\\
506
\hline
507
Hat&
508
\$2,00&
509
not there\\
510
\hline
511
\end{tabular}\\[2mm]
512
\textbf{Table: }Prices\end{center}
513
514
}
515
516
517
\section{\textcolor{Chapter }{Entities and Special Characters}}\logpage{[ 2, 5, 0 ]}
518
\hyperdef{L}{X83A355E68485D6D1}{}
519
{
520
\label{TenBack} [$\to$ \ref{Ten}]
521
522
Here is a table of special characters, the first two are special for XML and
523
must be typed in by entities in \textsf{GAPDoc} documents. The other characters are special for {\LaTeX} but in \textsf{GAPDoc} they can be typed directly. \mbox{}\label{charsInCDATA}\begin{center}
524
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}\hline
525
\texttt{\&}&
526
\texttt{{\textless}}&
527
\texttt{{\textgreater}}&
528
\texttt{\#}&
529
\texttt{\$}&
530
\texttt{\%}&
531
\texttt{\texttt{\symbol{126}}}&
532
\texttt{\texttt{\symbol{92}}}&
533
\texttt{\texttt{\symbol{123}}}&
534
\texttt{\texttt{\symbol{125}}}&
535
\texttt{{\textunderscore}}&
536
\texttt{\texttt{\symbol{94}}}&
537
\texttt{{\nobreakspace}}\\
538
\hline
539
\end{tabular}\\[2mm]
540
\textbf{Table: }Special characters in character data\end{center}
541
542
And here are the predefined entities in \textsf{GAPDoc}: \begin{center}
543
\begin{tabular}{|l|l|}\hline
544
\texttt{\&GAP;}&
545
\textsf{GAP}\\
546
\hline
547
\texttt{\&GAPDoc;}&
548
\textsf{GAPDoc}\\
549
\hline
550
\texttt{\&TeX;}&
551
{\TeX}\\
552
\hline
553
\texttt{\&LaTeX;}&
554
{\LaTeX}\\
555
\hline
556
\texttt{\&BibTeX;}&
557
Bib{\TeX}\\
558
\hline
559
\texttt{\&MeatAxe;}&
560
\textsf{MeatAxe}\\
561
\hline
562
\texttt{\&XGAP;}&
563
\textsf{XGAP}\\
564
\hline
565
\texttt{\&copyright;}&
566
{\copyright}\\
567
\hline
568
\end{tabular}\\[2mm]
569
\textbf{Table: }Predefined Entities in the \textsf{GAPDoc} system\end{center}
570
571
And some more for mathematical symbols: {\ensuremath{\mathbb C}},
572
{\ensuremath{\mathbb Z}}, {\ensuremath{\mathbb N}}, {\ensuremath{\mathbb P}},
573
{\ensuremath{\mathbb Q}}, {\ensuremath{\mathbb H}}, {\ensuremath{\mathbb R}}. }
574
575
}
576
577
578
579
\appendix
580
581
582
\chapter{\textcolor{Chapter }{An Appendix}}\label{Appendix}
583
\logpage{[ "A", 0, 0 ]}
584
\hyperdef{L}{X7B53252784137533}{}
585
{
586
\label{ElevenBack} [$\to$ \ref{Eleven}]
587
588
This is an appendix. }
589
590
591
\chapter{\textcolor{Chapter }{The Source}}\label{Source}
592
\logpage{[ "B", 0, 0 ]}
593
\hyperdef{L}{X7B4F7623844A7E32}{}
594
{
595
596
\section{\textcolor{Chapter }{TitlePage (Source)}}\label{One}
597
\logpage{[ "B", 1, 0 ]}
598
\hyperdef{L}{X7CFACB517D259F59}{}
599
{
600
601
\begin{Verbatim}[fontsize=\small,frame=single,label=]
602
<TitlePage>
603
<Title>A Complete Example (&see; <Ref Sect="One"/>)</Title>
604
<Subtitle>Every element shows up</Subtitle>
605
<Version>Version 1.6.1
606
</Version>
607
<TitleComment>
608
If the subtitle ist not sufficient, this &lt;TitleComment>
609
element can be used for a slightly longer text on the front page.
610
</TitleComment>
611
<Author>Frank L�beck
612
<Email>Frank.Luebeck@Math.RWTH-Aachen.De</Email>
613
</Author>
614
<Author> Max Neunh�ffer
615
<Email>neunhoef at mcs.st-and.ac.uk</Email>
616
</Author>
617
<Date>September 2011</Date>
618
<Address>
619
Lehrstuhl D f�r Mathematik<Br/> Templergraben
620
64<Br/> 52062 Aachen<Br/> (Germany)
621
</Address>
622
<Abstract>This document tries to use all elements that exist in &GAPDoc;.
623
In addition, the final output not only contains the usual
624
content, but also an appendix with the source text. There
625
are also links from the usual content to the corresponding
626
source text. This should enable new users to learn &GAPDoc;
627
quickly.
628
</Abstract>
629
<Copyright>&copyright; 2000-2011 by Frank L�beck and Max Neunh�ffer
630
</Copyright>
631
<Acknowledgements>We thank Lehrstuhl D f�r Mathematik.
632
</Acknowledgements>
633
<Colophon>This is the Colophon page.
634
</Colophon>
635
</TitlePage>
636
\end{Verbatim}
637
}
638
639
640
\section{\textcolor{Chapter }{Before First Chapter (Source)}}\label{Two}
641
\logpage{[ "B", 2, 0 ]}
642
\hyperdef{L}{X7A4D1C8680D81F2A}{}
643
{
644
645
\begin{Verbatim}[fontsize=\small,frame=single,label=]
646
<TableOfContents/>
647
648
<Body>
649
650
Text before chapter <Ref Chap="First"/>.
651
652
<Chapter Label="First"><Heading>Sectioning Elements</Heading>
653
654
Text before the section <Ref Sect="FirstSect"/>.
655
\end{Verbatim}
656
}
657
658
659
\section{\textcolor{Chapter }{First Chapter (Source)}}\label{Three}
660
\logpage{[ "B", 3, 0 ]}
661
\hyperdef{L}{X78308EBC7C2FF426}{}
662
{
663
[\ref{ThreeBack}]
664
\begin{Verbatim}[fontsize=\small,frame=single,label=]
665
<Section Label="FirstSect"><Heading>Normal subsections</Heading>
666
667
<Subsection Label="Asub"><Heading>A subsection</Heading>
668
669
This is text in the first subsection.
670
671
</Subsection>
672
673
<Subsection Label="Another"><Heading>Another subsection</Heading>
674
675
This is text in the second subsection. This subsection
676
has a label, such that one can reference it.
677
678
</Subsection>
679
680
</Section>
681
\end{Verbatim}
682
}
683
684
685
\section{\textcolor{Chapter }{ManSections (Source)}}\label{Four}
686
\logpage{[ "B", 4, 0 ]}
687
\hyperdef{L}{X814E3376826E1DB0}{}
688
{
689
[\ref{FourBack}]
690
\begin{Verbatim}[fontsize=\small,frame=single,label=]
691
<Section><Heading>ManSections</Heading>
692
693
<ManSection>
694
<Func Name="f" Arg="x[,y]" Comm="calculates something"/>
695
<Returns>an element in <Ref Filt="IsBlubb" /> or <K>fail</K>.</Returns>
696
<Description>
697
This function calculates something.
698
</Description>
699
</ManSection>
700
701
<ManSection>
702
<Meth Name="\^\{\}\[\]\&lt;\&amp;" Arg="c"
703
Label="for nothing" Comm="tricky name"/>
704
<Description>
705
This method is for an operation with a tricky name.
706
</Description>
707
</ManSection>
708
709
<ManSection>
710
<Oper Name="MyOperation" Arg="x" Comm="calculates something"/>
711
<Description>
712
The operation <Ref Oper="MyOperation"/> operates on <Arg>x</Arg>.
713
</Description>
714
</ManSection>
715
716
<ManSection>
717
<Meth Name="MyOperation" Label="First" Arg="x"
718
Comm="generic method"/>
719
<Description>
720
This method calculates something by the generic method.
721
</Description>
722
</ManSection>
723
724
<ManSection>
725
<Meth Name="MyOperation" Label="for bla" Arg="x[, good_hint]"
726
Comm="for bla arguments"/>
727
<Description>
728
This is the super-fast method for the operation
729
<Ref Oper="MyOperation"/> if the argument <A>x</A> is in the
730
representation <Ref Filt="IsBla"/>. It will become even faster if
731
the optional argument <A>good_hint</A> is given.
732
</Description>
733
</ManSection>
734
735
<ManSection>
736
<Constr Name="MyConstructor" Arg="filt, x" Comm="constructs something"/>
737
<Description>
738
The constructor <Ref Oper="MyConstructor"/> constructs from <Arg>x</Arg>
739
an object in <A>filt</A>.
740
</Description>
741
</ManSection>
742
743
<ManSection>
744
<Filt Name="IsBla" Arg="obj" Comm="representation bla"
745
Type="representation"/>
746
<Description>
747
For objects in this representation there is a super-fast method
748
(see <Ref Meth="MyOperation" Label="for bla"/>) for the operation
749
<Ref Oper="MyOperation"/>.
750
</Description>
751
</ManSection>
752
753
<ManSection>
754
<Prop Name="IsBlubb" Arg="obj" Comm="property, whether object is blubb"/>
755
<Description>
756
A property.
757
</Description>
758
</ManSection>
759
760
<ManSection>
761
<Attr Name="NumberBlobbs" Arg="obj" Comm="number of blobbs"/>
762
<Description>
763
An attribute. Number of blobbs.
764
</Description>
765
</ManSection>
766
767
<ManSection>
768
<Var Name="AllBlibbs" Comm="list of all blibbs in the system"/>
769
<Description>
770
This global variable holds a list of all blibbs.
771
</Description>
772
</ManSection>
773
774
<ManSection>
775
<Fam Name="BlibbsFamily" Comm="family of blibbs"/>
776
<Description>
777
Family of all blibbs.
778
</Description>
779
</ManSection>
780
781
<ManSection>
782
<InfoClass Name="InfoBlibbs" Comm="InfoClass for the library of blibbs"/>
783
<Description>
784
This info class is used throughout the library of blibbs.
785
</Description>
786
</ManSection>
787
788
</Section>
789
\end{Verbatim}
790
}
791
792
793
\section{\textcolor{Chapter }{Various Types of Text (Source)}}\label{Five}
794
\logpage{[ "B", 5, 0 ]}
795
\hyperdef{L}{X82A731CA83FB9ADD}{}
796
{
797
[\ref{FiveBack}]
798
\begin{Verbatim}[fontsize=\small,frame=single,label=]
799
<Chapter><Heading>Other Markup</Heading>
800
801
<Section><Heading>Various types of text</Heading>
802
803
In this section we present examples for all the various types of text
804
that are possible in &GAPDoc;:
805
<List>
806
<Item>
807
<Emph>This</Emph> is <E>emphasized</E>.</Item>
808
<Item>
809
<E>Keywords</E> are typeset like <Keyword>this</Keyword> and <K>that</K>.
810
</Item>
811
<Item>
812
<E>Arguments</E> of functions have an element. They look like this:
813
<Arg>x</Arg> and <A>y</A>.</Item>
814
<Item>
815
<E>Code</E> can be written with the Code element:
816
<Code>if x = y then Print("Equal"); fi;</Code> or
817
<C>while true do Print("Hello"); od;</C>.</Item>
818
<Item>
819
<E>Filenames</E> have their own element:
820
<File>/usr/local/ca/gap4r2</File> or <F>pkg/xgap/doc</F>.</Item>
821
<Item>
822
<E>Buttons</E>, <E>menus</E>, <E>menu entries</E>, and such things
823
are also supported: <B>OK</B> or <Button>Cancel</Button>.</Item>
824
<Item>
825
<E>Packages</E> are typeset like this:
826
<Package>Small Groups Library</Package>
827
</Item>
828
<Item>
829
<E>Quoted</E> text: <Q>This is a text in quotes.</Q>
830
</Item>
831
</List>
832
833
<E>Paragraphs</E> are separated by the empty <C>Par</C> or <C>P</C> element.
834
<Par/><E>Alternatives</E> for different output formats:
835
836
<Alt Only="LaTeX">This is &LaTeX; output.</Alt>
837
<Alt Not="LaTeX">This is other than &LaTeX; output, namely:
838
<Alt Only="HTML"><![CDATA[<b>HTML</b>]]></Alt>
839
<Alt Only="Text">Text</Alt> output.</Alt>
840
841
<P/>
842
\end{Verbatim}
843
}
844
845
846
\section{\textcolor{Chapter }{Verbatim-like text (Source)}}\label{Six}
847
\logpage{[ "B", 6, 0 ]}
848
\hyperdef{L}{X824BD70087820CF0}{}
849
{
850
[\ref{SixBack}]
851
\begin{Verbatim}[fontsize=\small,frame=single,label=]
852
There are also three elements to typeset <Q>verbatim-like</Q> text.
853
<P/>
854
The first is a <E>Listing</E>:
855
856
<Listing Type="GAP code">
857
<![CDATA[Sieve := function(n)
858
# Returns the primes less than n
859
local l,p,i;
860
l := [1..n]; Unbind(l[1]);
861
p := 2;
862
while p^2 <= n do
863
if IsBound(l[p]) then
864
i := 2 * p;
865
while i <= n do Unbind(l[i]); i := i + p; od;
866
fi;
867
p := p + 1;
868
od;
869
return Compacted(l);
870
end;]]>
871
</Listing>
872
873
Here is a <E>Log</E> of a &GAP; session using this function:
874
875
<Log>
876
gap&gt; Sieve(100);
877
[ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61,
878
67, 71, 73, 79, 83, 89, 97 ]
879
gap&gt; Length(last);
880
25
881
</Log>
882
883
Here is a &GAP; <E>Example</E> session that is automatically tested:
884
885
<Example>
886
gap&gt; s := Size(CharacterTable("M"));
887
808017424794512875886459904961710757005754368000000000
888
gap&gt; s &lt; 10^53;
889
false
890
gap&gt; s &lt; 10^54;
891
true
892
</Example>
893
894
</Section>
895
\end{Verbatim}
896
}
897
898
899
\section{\textcolor{Chapter }{Formulae (Source)}}\label{Seven}
900
\logpage{[ "B", 7, 0 ]}
901
\hyperdef{L}{X8516FAA07A95BBB5}{}
902
{
903
[\ref{SevenBack}]
904
\begin{Verbatim}[fontsize=\small,frame=single,label=]
905
<Section><Heading>Formulae</Heading>
906
907
There are three types of formulae. <P/>
908
The first is the <E>normal math mode</E> of &LaTeX;:
909
910
<Math>b_i \cdot b_j = \sum_{k=1}^d h_{ijk} b_k</Math>.
911
912
Then there are <E>displayed formulae</E>:
913
<Display>
914
\Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot
915
\left(\sum_{j=1}^d y_j b_j \right) =
916
\sum_{k=1}^d \left( \sum_{i,j} x_i y_j h_{ijk} \right) b_k
917
</Display>
918
919
If possible, use the <C>Alt</C> element to specify a better readable text
920
version of such a formula as in the following example:<P/>
921
922
<Alt Not="Text,HTML"><Display>
923
\Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot
924
\left(\sum_{j=1}^d y_j b_j \right) =
925
\sum_{k=1}^d \left( \sum_{i,j} x_i y_j h_{ijk} \right) b_k
926
</Display></Alt>
927
<Alt Only="Text,HTML"><Verb>
928
d d d
929
----- ----- ----- -----
930
\ \ \ \
931
==> ( ) x_i b_i )( ) y_i b_i ) = ) ( ) x_i y_j h_ijk ) b_k
932
/ / / /
933
----- ----- ----- -----
934
i = 1 i = 1 k = 1 i,j
935
</Verb><P/></Alt>
936
937
For small formulae without <Q>difficult</Q> parts use the <C>M</C>
938
element: <M>b_i</M>,
939
<M>x^2</M>, <M>x^2 + 2x + 1 = (x + 1)^2</M>. Note that here whitespace
940
matters for text (or HTML) output).<P/>
941
942
Here are two formulae containing less than characters which are special
943
characters for XML:
944
<M><![CDATA[a < b < c < d]]></M> and <M>e &lt; f</M>.
945
</Section>
946
\end{Verbatim}
947
}
948
949
950
\section{\textcolor{Chapter }{Crossreferencing (Source)}}\label{Eight}
951
\logpage{[ "B", 8, 0 ]}
952
\hyperdef{L}{X7D19CF4782309661}{}
953
{
954
[\ref{EightBack}]
955
\begin{Verbatim}[fontsize=\small,frame=single,label=]
956
<Section Label="Cross"><Heading>Crossreferencing</Heading>
957
958
<Label Name="there"/>
959
960
In this section we demonstrate various references to parts of this
961
document. Here is a reference to this section: <Ref Sect="Cross"/>.
962
Here is a reference to chapter <Ref Chap="First"/>, to appendix
963
<Ref Appendix="Appendix"/>, and to subsection <Ref Subsect="Asub"/>.
964
<P/>
965
966
We distinguish among others references
967
to functions (see <Ref Func="f"/>),
968
to methods with tricky name (see
969
<Ref Meth="\^\{\}\[\]\&lt;\&amp;" Label="for nothing"/>),
970
to operations (see <Ref Oper="MyOperation"/>),
971
to methods (see <Ref Meth="MyOperation" Label="First"/> or
972
<Ref Meth="MyOperation" Label="for bla"/>),
973
to filters (see <Ref Filt="IsBla"/>),
974
to properties (see <Ref Prop="IsBlubb"/>),
975
to attributes (see <Ref Attr="NumberBlobbs"/>),
976
to variables (<Ref Var="AllBlibbs"/>),
977
to families (see <Ref Fam="BlibbsFamily"/>),
978
and to info classes (see <Ref InfoClass="InfoBlibbs"/>).
979
<P/>
980
981
There are also references to labels: see <Ref Text="here" Label="there"/>,
982
to other books: see <Ref Sect="syntaxXML" BookName="gapdoc"/> or
983
<Ref Oper="IsSubgroup" BookName="ref"/> in the &GAP; reference
984
manual.
985
<P/>
986
987
References to sections come in two styles:
988
<Ref Chap="First" Style="Number"/>
989
or <Ref Chap="First" Style="Text"/>.
990
<P/>
991
992
Another type of cross referencing is bibliography. Here is a
993
citation: <Cite Key="CR1" Where="(5.22)"/> is an interesting lemma.
994
<P/>
995
996
There are also URLs:<P/>
997
998
<URL>http://www.math.rwth-aachen.de/LDfM/</URL><P/>
999
1000
Email addresses have a special element:
1001
<Email>Frank.Luebeck@Math.RWTH-Aachen.De</Email>
1002
<P/>
1003
1004
and Homepages another one:
1005
<Homepage>http://www-groups.mcs.st-and.ac.uk/~neunhoef/</Homepage>
1006
<P/>
1007
1008
One can generate index entries as follows (look up the words
1009
<Q>&TeX;-UserGroup</Q>, <Q>RWTH</Q>, and <Q>Aachen, Hauptbahnhof</Q>).
1010
<Index Key="TeX-Usergroup">&TeX;-UserGroup</Index>
1011
<Index>RWTH</Index>
1012
<Index>Aachen <Subkey>Hauptbahnhof</Subkey></Index>
1013
<Index Key="GAPDoc" Subkey="for GAP programmers">&GAPDoc;
1014
<Subkey>for &GAP; programmers</Subkey></Index>
1015
1016
</Section>
1017
\end{Verbatim}
1018
}
1019
1020
1021
\section{\textcolor{Chapter }{Lists and Tables (Source)}}\label{Nine}
1022
\logpage{[ "B", 9, 0 ]}
1023
\hyperdef{L}{X7BB822947F626E1A}{}
1024
{
1025
[\ref{NineBack}]
1026
\begin{Verbatim}[fontsize=\small,frame=single,label=]
1027
<Section><Heading>Lists and Tables</Heading>
1028
1029
There are
1030
<List>
1031
<Item>lists</Item>
1032
<Item>enumerations, and</Item>
1033
<Item>tables</Item>
1034
</List>
1035
or:
1036
<Enum>
1037
<Item>lists</Item>
1038
<Item>enumerations, and</Item>
1039
<Item>tables</Item>
1040
</Enum>
1041
or with marks:
1042
<List>
1043
<Mark>lists:</Mark><Item> not numbered</Item>
1044
<Mark>enumerations:</Mark><Item> numbered</Item>
1045
<Mark>tables:</Mark><Item> two-dimensional</Item>
1046
</List>
1047
1048
Lists can also be nested:
1049
<Enum>
1050
<Item>
1051
<Enum>
1052
<Item>first item of inner enumeration </Item>
1053
<Item>second item of inner enumeration </Item>
1054
</Enum>
1055
</Item>
1056
<Item>
1057
<List>
1058
<Item>first item of inner list </Item>
1059
<Item>second item of inner list </Item>
1060
</List>
1061
</Item>
1062
</Enum>
1063
1064
Here is a <E>table</E>:
1065
1066
<Table Align="|r|c|l|">
1067
<Caption>Prices</Caption>
1068
<HorLine/>
1069
<Row>
1070
<Item>Object</Item><Item>Price</Item><Item>available</Item>
1071
</Row>
1072
<HorLine/>
1073
<HorLine/>
1074
<Row>
1075
<Item>Shoe</Item><Item>$1,00</Item><Item>there</Item>
1076
</Row>
1077
<HorLine/>
1078
<Row>
1079
<Item>Hat</Item><Item>$2,00</Item><Item>not there</Item>
1080
</Row>
1081
<HorLine/>
1082
</Table>
1083
1084
</Section>
1085
\end{Verbatim}
1086
}
1087
1088
1089
\section{\textcolor{Chapter }{Entities and Special Characters (Source)}}\label{Ten}
1090
\logpage{[ "B", 10, 0 ]}
1091
\hyperdef{L}{X80B478CD7E584F6F}{}
1092
{
1093
[\ref{TenBack}]
1094
\begin{Verbatim}[fontsize=\small,frame=single,label=]
1095
<Section><Heading>Entities and Special Characters</Heading>
1096
<Label Name="TenBack"/>
1097
1098
[&see; <Ref Sect="Ten"/>]<P/>
1099
1100
Here is a table of special characters, the first two are special for
1101
XML and must be typed in by entities in &GAPDoc; documents. The other
1102
characters are special for &LaTeX; but in &GAPDoc; they can be typed
1103
directly.
1104
1105
<Table Align="|c|c|c|c|c|c|c|c|c|c|c|c|c|" Label="charsInCDATA">
1106
<Caption>Special characters in character data</Caption>
1107
<HorLine/> <Row>
1108
<Item><C>&amp;</C></Item>
1109
<Item><C>&lt;</C></Item>
1110
<Item><C>></C></Item>
1111
<Item><C>#</C></Item>
1112
<Item><C>$</C></Item>
1113
<Item><C>%</C></Item>
1114
<Item><C>~</C></Item>
1115
<Item><C>\</C></Item>
1116
<Item><C>{</C></Item>
1117
<Item><C>}</C></Item>
1118
<Item><C>_</C></Item>
1119
<Item><C>^</C></Item>
1120
<Item><C>&nbsp;</C></Item>
1121
</Row> <HorLine/>
1122
</Table>
1123
1124
And here are the predefined entities in &GAPDoc;:
1125
1126
<Table Align="|l|l|">
1127
<Caption>Predefined Entities in the &GAPDoc; system</Caption>
1128
<HorLine/>
1129
<Row> <Item><C>&amp;GAP;</C></Item> <Item>&GAP;</Item> </Row>
1130
<HorLine/>
1131
<Row> <Item><C>&amp;GAPDoc;</C></Item> <Item>&GAPDoc;</Item> </Row>
1132
<HorLine/>
1133
<Row> <Item><C>&amp;TeX;</C></Item> <Item>&TeX;</Item> </Row>
1134
<HorLine/>
1135
<Row> <Item><C>&amp;LaTeX;</C></Item> <Item>&LaTeX;</Item> </Row>
1136
<HorLine/>
1137
<Row> <Item><C>&amp;BibTeX;</C></Item> <Item>&BibTeX;</Item> </Row>
1138
<HorLine/>
1139
<Row> <Item><C>&amp;MeatAxe;</C></Item> <Item>&MeatAxe;</Item> </Row>
1140
<HorLine/>
1141
<Row> <Item><C>&amp;XGAP;</C></Item> <Item>&XGAP;</Item> </Row>
1142
<HorLine/>
1143
<Row> <Item><C>&amp;copyright;</C></Item> <Item>&copyright;</Item> </Row>
1144
<HorLine/>
1145
</Table>
1146
1147
And some more for mathematical symbols:
1148
&CC;, &ZZ;, &NN;, &PP;, &QQ;, &HH;, &RR;.
1149
1150
</Section>
1151
1152
</Chapter>
1153
1154
</Body>
1155
\end{Verbatim}
1156
}
1157
1158
1159
\section{\textcolor{Chapter }{Appendix (Source)}}\label{Eleven}
1160
\logpage{[ "B", 11, 0 ]}
1161
\hyperdef{L}{X85E7E6BA81367928}{}
1162
{
1163
[\ref{ElevenBack}]
1164
\begin{Verbatim}[fontsize=\small,frame=single,label=GAPDoc source]
1165
<Appendix><Heading>An Appendix</Heading>
1166
1167
This is an appendix.
1168
</Appendix>
1169
\end{Verbatim}
1170
}
1171
1172
}
1173
1174
\def\bibname{References\logpage{[ "Bib", 0, 0 ]}
1175
\hyperdef{L}{X7A6F98FD85F02BFE}{}
1176
}
1177
1178
\bibliographystyle{alpha}
1179
\bibliography{examplebib.xml}
1180
1181
\addcontentsline{toc}{chapter}{References}
1182
1183
\def\indexname{Index\logpage{[ "Ind", 0, 0 ]}
1184
\hyperdef{L}{X83A0356F839C696F}{}
1185
}
1186
1187
\cleardoublepage
1188
\phantomsection
1189
\addcontentsline{toc}{chapter}{Index}
1190
1191
1192
\printindex
1193
1194
\newpage
1195
\immediate\write\pagenrlog{["End"], \arabic{page}];}
1196
\immediate\closeout\pagenrlog
1197
\end{document}
1198
1199