[104X
[4X[104X
[4X Text before chapter .[104X
[4X[104X
[4XSectioning Elements[104X
[4X[104X
[4X Text before the section .[104X
[4X[32X[104X
[1XB.3 [33X[0;0YFirst Chapter (Source)[133X[101X
[33X[0;0Y[[14X1.[114X][133X
[4X[32X[104X
[4XNormal subsections[104X
[4X[104X
[4X A subsection[104X
[4X[104X
[4X This is text in the first subsection.[104X
[4X[104X
[4X [104X
[4X[104X
[4X Another subsection[104X
[4X [104X
[4X This is text in the second subsection. This subsection [104X
[4X has a label, such that one can reference it.[104X
[4X[104X
[4X [104X
[4X[104X
[4X [104X
[4X[32X[104X
[1XB.4 [33X[0;0YManSections (Source)[133X[101X
[33X[0;0Y[[14X1.2[114X][133X
[4X[32X[104X
[4XManSections[104X
[4X[104X
[4X [104X
[4X [104X
[4X an element in or fail.[104X
[4X [104X
[4X This function calculates something.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X This method is for an operation with a tricky name.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X The operation operates on x.[104X
[4X [104X
[4X [104X
[4X [104X
[4X [104X
[4X [104X
[4X [104X
[4X This method calculates something by the generic method.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X This is the super-fast method for the operation[104X
[4X if the argument x is in the[104X
[4X representation . It will become even faster if[104X
[4X the optional argument good_hint is given.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X The constructor constructs from x[104X
[4X an object in filt.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X For objects in this representation there is a super-fast method[104X
[4X (see ) for the operation[104X
[4X .[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X A property.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X An attribute. Number of blobbs.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X This global variable holds a list of all blibbs.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X Family of all blibbs.[104X
[4X [104X
[4X [104X
[4X[104X
[4X [104X
[4X [104X
[4X [104X
[4X This info class is used throughout the library of blibbs.[104X
[4X [104X
[4X [104X
[4X [104X
[4X [104X
[4X[32X[104X
[1XB.5 [33X[0;0YVarious Types of Text (Source)[133X[101X
[33X[0;0Y[[14X2.[114X][133X
[4X[32X[104X
[4XOther Markup[104X
[4X[104X
[4XVarious types of text[104X
[4X[104X
[4XIn this section we present examples for all the various types of text[104X
[4Xthat are possible in &GAPDoc;: [104X
[4X[104X
[4X [104X
[4X This is emphasized.[104X
[4X [104X
[4X Keywords are typeset like this and that.[104X
[4X [104X
[4X [104X
[4X Arguments of functions have an element. They look like this: [104X
[4X x and y.[104X
[4X [104X
[4X Code can be written with the Code element: [104X
[4X if x = y then Print("Equal"); fi; or[104X
[4X while true do Print("Hello"); od;. [104X
[4X [104X
[4X Filenames have their own element:[104X
[4X /usr/local/ca/gap4r2 or pkg/xgap/doc.[104X
[4X [104X
[4X Buttons, menus, menu entries, and such things[104X
[4X are also supported: OK or .[104X
[4X [104X
[4X Packages are typeset like this: [104X
[4X Small Groups Library[104X
[4X [104X
[4X [104X
[4X Quoted text: This is a text in quotes.[104X
[4X [104X
[4X[104X
[4X[104X
[4XParagraphs are separated by the empty Par or P element.[104X
[4XAlternatives for different output formats:[104X
[4X[104X
[4XThis is &LaTeX; output.[104X
[4XThis is other than &LaTeX; output, namely:[104X
[4XHTML]]>[104X
[4XText output.[104X
[4X[104X
[4X[104X
[4X[32X[104X
[1XB.6 [33X[0;0YVerbatim-like text (Source)[133X[101X
[33X[0;0Y[[14X2.1[114X][133X
[4X[32X[104X
[4XThere are also three elements to typeset verbatim-like text.[104X
[4X[104X
[4XThe first is a Listing:[104X
[4X[104X
[4X[104X
[4X[104X
[4X[104X
[4X[104X
[4XHere is a Log of a ⪆ session using this function:[104X
[4X[104X
[4X[104X
[4Xgap> Sieve(100);[104X
[4X[ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61,[104X
[4X 67, 71, 73, 79, 83, 89, 97 ][104X
[4Xgap> Length(last);[104X
[4X25[104X
[4X[104X
[4X[104X
[4XHere is a ⪆ Example session that is automatically tested:[104X
[4X[104X
[4X[104X
[4Xgap> s := Size(CharacterTable("M"));[104X
[4X808017424794512875886459904961710757005754368000000000[104X
[4Xgap> s < 10^53; [104X
[4Xfalse[104X
[4Xgap> s < 10^54;[104X
[4Xtrue[104X
[4X[104X
[4X[104X
[4X[104X
[4X[32X[104X
[1XB.7 [33X[0;0YFormulae (Source)[133X[101X
[33X[0;0Y[[14X2.2[114X][133X
[4X[32X[104X
[4XFormulae[104X
[4X[104X
[4XThere are three types of formulae. [104X
[4XThe first is the normal math mode of &LaTeX;: [104X
[4X[104X
[4X. [104X
[4X[104X
[4XThen there are displayed formulae:[104X
[4X[104X
[4X \Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot[104X
[4X \left(\sum_{j=1}^d y_j b_j \right) =[104X
[4X \sum_{k=1}^d \left( \sum_{i,j} x_i y_j h_{ijk} \right) b_k [104X
[4X[104X
[4X[104X
[4XIf possible, use the Alt element to specify a better readable text[104X
[4Xversion of such a formula as in the following example:[104X
[4X[104X
[4X[104X
[4X \Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot[104X
[4X \left(\sum_{j=1}^d y_j b_j \right) =[104X
[4X \sum_{k=1}^d \left( \sum_{i,j} x_i y_j h_{ijk} \right) b_k [104X
[4X[104X
[4X[104X
[4X d d d [104X
[4X ----- ----- ----- ----- [104X
[4X \ \ \ \ [104X
[4X ==> ( ) x_i b_i )( ) y_i b_i ) = ) ( ) x_i y_j h_ijk ) b_k[104X
[4X / / / / [104X
[4X ----- ----- ----- ----- [104X
[4X i = 1 i = 1 k = 1 i,j [104X
[4X[104X
[4X[104X
[4XFor small formulae without difficult parts use the M[104X
[4Xelement: b_i,[104X
[4Xx^2, x^2 + 2x + 1 = (x + 1)^2. Note that here whitespace [104X
[4Xmatters for text (or HTML) output).[104X
[4X[104X
[4XHere are two formulae containing less than characters which are special[104X
[4Xcharacters for XML:[104X
[4X and e < f.[104X
[4X[104X
[4X[32X[104X
[1XB.8 [33X[0;0YCrossreferencing (Source)[133X[101X
[33X[0;0Y[[14X2.3[114X][133X
[4X[32X[104X
[4XCrossreferencing[104X
[4X[104X
[4X[104X
[4X[104X
[4XIn this section we demonstrate various references to parts of this[104X
[4Xdocument. Here is a reference to this section: .[104X
[4XHere is a reference to chapter , to appendix[104X
[4X, and to subsection . [104X
[4X[104X
[4X[104X
[4XWe distinguish among others references [104X
[4X to functions (see ), [104X
[4X to methods with tricky name (see [104X
[4X ),[104X
[4X to operations (see ), [104X
[4X to methods (see or [104X
[4X ), [104X
[4X to filters (see ), [104X
[4X to properties (see ),[104X
[4X to attributes (see ), [104X
[4X to variables (), [104X
[4X to families (see ),[104X
[4X and to info classes (see ).[104X
[4X[104X
[4X[104X
[4XThere are also references to labels: see ,[104X
[4Xto other books: see or[104X
[4X in the &GAP; reference[104X
[4Xmanual.[104X
[4X[104X
[4X[104X
[4XReferences to sections come in two styles: [104X
[4X[104X
[4Xor .[104X
[4X[104X
[4X[104X
[4XAnother type of cross referencing is bibliography. Here is a [104X
[4Xcitation: is an interesting lemma.[104X
[4X[104X
[4X[104X
[4XThere are also URLs:[104X
[4X[104X
[4Xhttp://www.math.rwth-aachen.de/LDfM/[104X
[4X[104X
[4XEmail addresses have a special element:[104X
[4XFrank.Luebeck@Math.RWTH-Aachen.De[104X
[4X[104X
[4X[104X
[4Xand Homepages another one:[104X
[4Xhttp://www-groups.mcs.st-and.ac.uk/~neunhoef/[104X
[4X[104X
[4X[104X
[4XOne can generate index entries as follows (look up the words [104X
[4X&TeX;-UserGroup, RWTH, and Aachen, Hauptbahnhof).[104X
[4X&TeX;-UserGroup[104X
[4XRWTH[104X
[4XAachen Hauptbahnhof[104X
[4X&GAPDoc; [104X
[4Xfor &GAP; programmers[104X
[4X[104X
[4X[104X
[4X[32X[104X
[1XB.9 [33X[0;0YLists and Tables (Source)[133X[101X
[33X[0;0Y[[14X2.4[114X][133X
[4X[32X[104X
[4XLists and Tables[104X
[4X[104X
[4XThere are[104X
[4X[104X
[4X lists[104X
[4X enumerations, and[104X
[4X tables[104X
[4X[104X
[4Xor:[104X
[4X[104X
[4X lists[104X
[4X enumerations, and[104X
[4X tables[104X
[4X[104X
[4Xor with marks:[104X
[4X[104X
[4X lists: not numbered[104X
[4X enumerations: numbered[104X
[4X tables: two-dimensional[104X
[4X[104X
[4X[104X
[4XLists can also be nested:[104X
[4X[104X
[4X [104X
[4X [104X
[4X first item of inner enumeration [104X
[4X second item of inner enumeration [104X
[4X [104X
[4X [104X
[4X [104X
[4X [104X
[4X first item of inner list [104X
[4X second item of inner list [104X
[4X [104X
[4X [104X
[4X[104X
[4X[104X
[4XHere is a table:[104X
[4X[104X
[4X
[104X
[4X[104X
[4X[104X
[4X[32X[104X
[1XB.10 [33X[0;0YEntities and Special Characters (Source)[133X[101X
[33X[0;0Y[[14X2.5[114X][133X
[4X[32X[104X
[4XEntities and Special Characters[104X
[4X[104X
[4X[104X
[4X[&see; ][104X
[4X[104X
[4XHere is a table of special characters, the first two are special for[104X
[4XXML and must be typed in by entities in &GAPDoc; documents. The other [104X
[4Xcharacters are special for &LaTeX; but in &GAPDoc; they can be typed[104X
[4Xdirectly. [104X
[4X[104X
[4X