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