\contentsline {chapter}{\numberline {1}\leavevmode {\color {Chapter }Introduction and Example}}{7}{chapter.1}
\contentsline {section}{\numberline {1.1}\leavevmode {\color {Chapter }XML}}{7}{section.1.1}
\contentsline {section}{\numberline {1.2}\leavevmode {\color {Chapter }A complete example}}{8}{section.1.2}
\contentsline {section}{\numberline {1.3}\leavevmode {\color {Chapter }Some questions}}{11}{section.1.3}
\contentsline {chapter}{\numberline {2}\leavevmode {\color {Chapter }How To Type a \textsf {GAPDoc} Document}}{12}{chapter.2}
\contentsline {section}{\numberline {2.1}\leavevmode {\color {Chapter }General XML Syntax}}{12}{section.2.1}
\contentsline {subsection}{\numberline {2.1.1}\leavevmode {\color {Chapter }Head of XML Document}}{12}{subsection.2.1.1}
\contentsline {subsection}{\numberline {2.1.2}\leavevmode {\color {Chapter }Comments}}{12}{subsection.2.1.2}
\contentsline {subsection}{\numberline {2.1.3}\leavevmode {\color {Chapter }Processing Instructions}}{13}{subsection.2.1.3}
\contentsline {subsection}{\numberline {2.1.4}\leavevmode {\color {Chapter }Names in XML and Whitespace}}{13}{subsection.2.1.4}
\contentsline {subsection}{\numberline {2.1.5}\leavevmode {\color {Chapter }Elements}}{13}{subsection.2.1.5}
\contentsline {subsection}{\numberline {2.1.6}\leavevmode {\color {Chapter }Start Tags}}{13}{subsection.2.1.6}
\contentsline {subsection}{\numberline {2.1.7}\leavevmode {\color {Chapter }End Tags}}{13}{subsection.2.1.7}
\contentsline {subsection}{\numberline {2.1.8}\leavevmode {\color {Chapter }Combined Tags for Empty Elements}}{13}{subsection.2.1.8}
\contentsline {subsection}{\numberline {2.1.9}\leavevmode {\color {Chapter }Entities}}{14}{subsection.2.1.9}
\contentsline {subsection}{\numberline {2.1.10}\leavevmode {\color {Chapter }Special Characters in XML}}{14}{subsection.2.1.10}
\contentsline {subsection}{\numberline {2.1.11}\leavevmode {\color {Chapter }\texttt {CDATA}}}{14}{subsection.2.1.11}
\contentsline {subsection}{\numberline {2.1.12}\leavevmode {\color {Chapter }Encoding of an XML document}}{14}{subsection.2.1.12}
\contentsline {subsection}{\numberline {2.1.13}\leavevmode {\color {Chapter }Well Formed and Valid XML Documents}}{14}{subsection.2.1.13}
\contentsline {section}{\numberline {2.2}\leavevmode {\color {Chapter }Entering \textsf {GAPDoc} Documents}}{15}{section.2.2}
\contentsline {subsection}{\numberline {2.2.1}\leavevmode {\color {Chapter }More Special Characters}}{15}{subsection.2.2.1}
\contentsline {subsection}{\numberline {2.2.2}\leavevmode {\color {Chapter }Mathematical Formulae}}{16}{subsection.2.2.2}
\contentsline {subsection}{\numberline {2.2.3}\leavevmode {\color {Chapter }More Entities}}{16}{subsection.2.2.3}
\contentsline {chapter}{\numberline {3}\leavevmode {\color {Chapter }The Document Type Definition}}{17}{chapter.3}
\contentsline {section}{\numberline {3.1}\leavevmode {\color {Chapter }What is a DTD?}}{17}{section.3.1}
\contentsline {section}{\numberline {3.2}\leavevmode {\color {Chapter }Overall Document Structure}}{17}{section.3.2}
\contentsline {subsection}{\numberline {3.2.1}\leavevmode {\color {Chapter }\texttt {{\textless }Book{\textgreater }}}}{18}{subsection.3.2.1}
\contentsline {subsection}{\numberline {3.2.2}\leavevmode {\color {Chapter }\texttt {{\textless }TitlePage{\textgreater }}}}{18}{subsection.3.2.2}
\contentsline {subsection}{\numberline {3.2.3}\leavevmode {\color {Chapter }\texttt {{\textless }Title{\textgreater }}}}{18}{subsection.3.2.3}
\contentsline {subsection}{\numberline {3.2.4}\leavevmode {\color {Chapter }\texttt {{\textless }Subtitle{\textgreater }}}}{19}{subsection.3.2.4}
\contentsline {subsection}{\numberline {3.2.5}\leavevmode {\color {Chapter }\texttt {{\textless }Version{\textgreater }}}}{19}{subsection.3.2.5}
\contentsline {subsection}{\numberline {3.2.6}\leavevmode {\color {Chapter }\texttt {{\textless }TitleComment{\textgreater }}}}{20}{subsection.3.2.6}
\contentsline {subsection}{\numberline {3.2.7}\leavevmode {\color {Chapter }\texttt {{\textless }Author{\textgreater }}}}{20}{subsection.3.2.7}
\contentsline {subsection}{\numberline {3.2.8}\leavevmode {\color {Chapter }\texttt {{\textless }Date{\textgreater }}}}{20}{subsection.3.2.8}
\contentsline {subsection}{\numberline {3.2.9}\leavevmode {\color {Chapter }\texttt {{\textless }Address{\textgreater }}}}{20}{subsection.3.2.9}
\contentsline {subsection}{\numberline {3.2.10}\leavevmode {\color {Chapter }\texttt {{\textless }Abstract{\textgreater }}}}{20}{subsection.3.2.10}
\contentsline {subsection}{\numberline {3.2.11}\leavevmode {\color {Chapter }\texttt {{\textless }Copyright{\textgreater }}}}{20}{subsection.3.2.11}
\contentsline {subsection}{\numberline {3.2.12}\leavevmode {\color {Chapter }\texttt {{\textless }Acknowledgements{\textgreater }}}}{21}{subsection.3.2.12}
\contentsline {subsection}{\numberline {3.2.13}\leavevmode {\color {Chapter }\texttt {{\textless }Colophon{\textgreater }}}}{21}{subsection.3.2.13}
\contentsline {subsection}{\numberline {3.2.14}\leavevmode {\color {Chapter }\texttt {{\textless }TableOfContents{\textgreater }}}}{21}{subsection.3.2.14}
\contentsline {subsection}{\numberline {3.2.15}\leavevmode {\color {Chapter }\texttt {{\textless }Bibliography{\textgreater }} }}{21}{subsection.3.2.15}
\contentsline {subsection}{\numberline {3.2.16}\leavevmode {\color {Chapter }\texttt {{\textless }TheIndex{\textgreater }}}}{21}{subsection.3.2.16}
\contentsline {section}{\numberline {3.3}\leavevmode {\color {Chapter }Sectioning Elements}}{22}{section.3.3}
\contentsline {subsection}{\numberline {3.3.1}\leavevmode {\color {Chapter }\texttt {{\textless }Body{\textgreater }}}}{22}{subsection.3.3.1}
\contentsline {subsection}{\numberline {3.3.2}\leavevmode {\color {Chapter }\texttt {{\textless }Chapter{\textgreater }}}}{22}{subsection.3.3.2}
\contentsline {subsection}{\numberline {3.3.3}\leavevmode {\color {Chapter }\texttt {{\textless }Heading{\textgreater }}}}{23}{subsection.3.3.3}
\contentsline {subsection}{\numberline {3.3.4}\leavevmode {\color {Chapter }\texttt {{\textless }Appendix{\textgreater }}}}{23}{subsection.3.3.4}
\contentsline {subsection}{\numberline {3.3.5}\leavevmode {\color {Chapter }\texttt {{\textless }Section{\textgreater }}}}{23}{subsection.3.3.5}
\contentsline {subsection}{\numberline {3.3.6}\leavevmode {\color {Chapter }\texttt {{\textless }Subsection{\textgreater }}}}{23}{subsection.3.3.6}
\contentsline {section}{\numberline {3.4}\leavevmode {\color {Chapter }ManSection}}{24}{section.3.4}
\contentsline {subsection}{\numberline {3.4.1}\leavevmode {\color {Chapter }\texttt {{\textless }ManSection{\textgreater }}}}{24}{subsection.3.4.1}
\contentsline {subsection}{\numberline {3.4.2}\leavevmode {\color {Chapter }\texttt {{\textless }Func{\textgreater }}}}{24}{subsection.3.4.2}
\contentsline {subsection}{\numberline {3.4.3}\leavevmode {\color {Chapter }\texttt {{\textless }Oper{\textgreater }}}}{25}{subsection.3.4.3}
\contentsline {subsection}{\numberline {3.4.4}\leavevmode {\color {Chapter }\texttt {{\textless }Meth{\textgreater }}}}{25}{subsection.3.4.4}
\contentsline {subsection}{\numberline {3.4.5}\leavevmode {\color {Chapter }\texttt {{\textless }Filt{\textgreater }}}}{25}{subsection.3.4.5}
\contentsline {subsection}{\numberline {3.4.6}\leavevmode {\color {Chapter }\texttt {{\textless }Prop{\textgreater }}}}{26}{subsection.3.4.6}
\contentsline {subsection}{\numberline {3.4.7}\leavevmode {\color {Chapter }\texttt {{\textless }Attr{\textgreater }}}}{26}{subsection.3.4.7}
\contentsline {subsection}{\numberline {3.4.8}\leavevmode {\color {Chapter }\texttt {{\textless }Var{\textgreater }}}}{26}{subsection.3.4.8}
\contentsline {subsection}{\numberline {3.4.9}\leavevmode {\color {Chapter }\texttt {{\textless }Fam{\textgreater }}}}{26}{subsection.3.4.9}
\contentsline {subsection}{\numberline {3.4.10}\leavevmode {\color {Chapter }\texttt {{\textless }InfoClass{\textgreater }}}}{27}{subsection.3.4.10}
\contentsline {section}{\numberline {3.5}\leavevmode {\color {Chapter }Cross Referencing and Citations}}{27}{section.3.5}
\contentsline {subsection}{\numberline {3.5.1}\leavevmode {\color {Chapter }\texttt {{\textless }Ref{\textgreater }}}}{27}{subsection.3.5.1}
\contentsline {subsection}{\numberline {3.5.2}\leavevmode {\color {Chapter }\texttt {{\textless }Label{\textgreater }}}}{28}{subsection.3.5.2}
\contentsline {subsection}{\numberline {3.5.3}\leavevmode {\color {Chapter }\texttt {{\textless }Cite{\textgreater }}}}{28}{subsection.3.5.3}
\contentsline {subsection}{\numberline {3.5.4}\leavevmode {\color {Chapter }\texttt {{\textless }Index{\textgreater }}}}{28}{subsection.3.5.4}
\contentsline {subsection}{\numberline {3.5.5}\leavevmode {\color {Chapter }\texttt {{\textless }URL{\textgreater }}}}{29}{subsection.3.5.5}
\contentsline {subsection}{\numberline {3.5.6}\leavevmode {\color {Chapter }\texttt {{\textless }Email{\textgreater }}}}{29}{subsection.3.5.6}
\contentsline {subsection}{\numberline {3.5.7}\leavevmode {\color {Chapter }\texttt {{\textless }Homepage{\textgreater }}}}{29}{subsection.3.5.7}
\contentsline {section}{\numberline {3.6}\leavevmode {\color {Chapter }Structural Elements like Lists}}{29}{section.3.6}
\contentsline {subsection}{\numberline {3.6.1}\leavevmode {\color {Chapter }\texttt {{\textless }List{\textgreater }}}}{29}{subsection.3.6.1}
\contentsline {subsection}{\numberline {3.6.2}\leavevmode {\color {Chapter }\texttt {{\textless }Mark{\textgreater }}}}{30}{subsection.3.6.2}
\contentsline {subsection}{\numberline {3.6.3}\leavevmode {\color {Chapter }\texttt {{\textless }Item{\textgreater }}}}{30}{subsection.3.6.3}
\contentsline {subsection}{\numberline {3.6.4}\leavevmode {\color {Chapter }\texttt {{\textless }Enum{\textgreater }}}}{30}{subsection.3.6.4}
\contentsline {subsection}{\numberline {3.6.5}\leavevmode {\color {Chapter }\texttt {{\textless }Table{\textgreater }}}}{30}{subsection.3.6.5}
\contentsline {section}{\numberline {3.7}\leavevmode {\color {Chapter }Types of Text}}{31}{section.3.7}
\contentsline {subsection}{\numberline {3.7.1}\leavevmode {\color {Chapter }\texttt {{\textless }Emph{\textgreater }} and \texttt {{\textless }E{\textgreater }}}}{31}{subsection.3.7.1}
\contentsline {subsection}{\numberline {3.7.2}\leavevmode {\color {Chapter }\texttt {{\textless }Quoted{\textgreater }} and \texttt {{\textless }Q{\textgreater }}}}{31}{subsection.3.7.2}
\contentsline {subsection}{\numberline {3.7.3}\leavevmode {\color {Chapter }\texttt {{\textless }Keyword{\textgreater }} and \texttt {{\textless }K{\textgreater }}}}{31}{subsection.3.7.3}
\contentsline {subsection}{\numberline {3.7.4}\leavevmode {\color {Chapter }\texttt {{\textless }Arg{\textgreater }} and \texttt {{\textless }A{\textgreater }}}}{32}{subsection.3.7.4}
\contentsline {subsection}{\numberline {3.7.5}\leavevmode {\color {Chapter }\texttt {{\textless }Code{\textgreater }} and \texttt {{\textless }C{\textgreater }}}}{32}{subsection.3.7.5}
\contentsline {subsection}{\numberline {3.7.6}\leavevmode {\color {Chapter }\texttt {{\textless }File{\textgreater }} and \texttt {{\textless }F{\textgreater }}}}{32}{subsection.3.7.6}
\contentsline {subsection}{\numberline {3.7.7}\leavevmode {\color {Chapter }\texttt {{\textless }Button{\textgreater }} and \texttt {{\textless }B{\textgreater }}}}{32}{subsection.3.7.7}
\contentsline {subsection}{\numberline {3.7.8}\leavevmode {\color {Chapter }\texttt {{\textless }Package{\textgreater }}}}{32}{subsection.3.7.8}
\contentsline {subsection}{\numberline {3.7.9}\leavevmode {\color {Chapter }\texttt {{\textless }Listing{\textgreater }}}}{33}{subsection.3.7.9}
\contentsline {subsection}{\numberline {3.7.10}\leavevmode {\color {Chapter }\texttt {{\textless }Log{\textgreater }} and \texttt {{\textless }Example{\textgreater }}}}{33}{subsection.3.7.10}
\contentsline {subsection}{\numberline {3.7.11}\leavevmode {\color {Chapter }{\textless }Verb{\textgreater }}}{33}{subsection.3.7.11}
\contentsline {section}{\numberline {3.8}\leavevmode {\color {Chapter }Elements for Mathematical Formulae}}{33}{section.3.8}
\contentsline {subsection}{\numberline {3.8.1}\leavevmode {\color {Chapter }\texttt {{\textless }Math{\textgreater }} and \texttt {{\textless }Display{\textgreater }}}}{33}{subsection.3.8.1}
\contentsline {subsection}{\numberline {3.8.2}\leavevmode {\color {Chapter }\texttt {{\textless }M{\textgreater }}}}{34}{subsection.3.8.2}
\contentsline {section}{\numberline {3.9}\leavevmode {\color {Chapter }Everything else}}{35}{section.3.9}
\contentsline {subsection}{\numberline {3.9.1}\leavevmode {\color {Chapter }\texttt {{\textless }Alt{\textgreater }}}}{35}{subsection.3.9.1}
\contentsline {subsection}{\numberline {3.9.2}\leavevmode {\color {Chapter }\texttt {{\textless }Par{\textgreater }} and \texttt {{\textless }P{\textgreater }}}}{36}{subsection.3.9.2}
\contentsline {subsection}{\numberline {3.9.3}\leavevmode {\color {Chapter }\texttt {{\textless }Br{\textgreater }}}}{36}{subsection.3.9.3}
\contentsline {chapter}{\numberline {4}\leavevmode {\color {Chapter }Distributing a Document into Several Files}}{37}{chapter.4}
\contentsline {section}{\numberline {4.1}\leavevmode {\color {Chapter }The Conventions}}{37}{section.4.1}
\contentsline {section}{\numberline {4.2}\leavevmode {\color {Chapter }A Tool for Collecting a Document}}{38}{section.4.2}
\contentsline {subsection}{\numberline {4.2.1}\leavevmode {\color {Chapter }ComposedXMLString}}{38}{subsection.4.2.1}
\contentsline {chapter}{\numberline {5}\leavevmode {\color {Chapter }The Converters}}{39}{chapter.5}
\contentsline {section}{\numberline {5.1}\leavevmode {\color {Chapter }Producing Documentation from Source Files}}{39}{section.5.1}
\contentsline {subsection}{\numberline {5.1.1}\leavevmode {\color {Chapter }MakeGAPDocDoc}}{41}{subsection.5.1.1}
\contentsline {section}{\numberline {5.2}\leavevmode {\color {Chapter }Parsing XML Documents}}{41}{section.5.2}
\contentsline {subsection}{\numberline {5.2.1}\leavevmode {\color {Chapter }ParseTreeXMLString}}{41}{subsection.5.2.1}
\contentsline {subsection}{\numberline {5.2.2}\leavevmode {\color {Chapter }DisplayXMLStructure}}{42}{subsection.5.2.2}
\contentsline {subsection}{\numberline {5.2.3}\leavevmode {\color {Chapter }ApplyToNodesParseTree}}{42}{subsection.5.2.3}
\contentsline {subsection}{\numberline {5.2.4}\leavevmode {\color {Chapter }CheckAndCleanGapDocTree}}{42}{subsection.5.2.4}
\contentsline {subsection}{\numberline {5.2.5}\leavevmode {\color {Chapter }AddParagraphNumbersGapDocTree}}{43}{subsection.5.2.5}
\contentsline {section}{\numberline {5.3}\leavevmode {\color {Chapter }The Converters}}{43}{section.5.3}
\contentsline {subsection}{\numberline {5.3.1}\leavevmode {\color {Chapter }GAPDoc2LaTeX}}{43}{subsection.5.3.1}
\contentsline {subsection}{\numberline {5.3.2}\leavevmode {\color {Chapter }GAPDoc2Text}}{44}{subsection.5.3.2}
\contentsline {subsection}{\numberline {5.3.3}\leavevmode {\color {Chapter }GAPDoc2TextPrintTextFiles}}{44}{subsection.5.3.3}
\contentsline {subsection}{\numberline {5.3.4}\leavevmode {\color {Chapter }AddPageNumbersToSix}}{45}{subsection.5.3.4}
\contentsline {subsection}{\numberline {5.3.5}\leavevmode {\color {Chapter }PrintSixFile}}{45}{subsection.5.3.5}
\contentsline {subsection}{\numberline {5.3.6}\leavevmode {\color {Chapter }GAPDoc2HTML}}{45}{subsection.5.3.6}
\contentsline {subsection}{\numberline {5.3.7}\leavevmode {\color {Chapter }GAPDoc2HTMLPrintHTMLFiles}}{47}{subsection.5.3.7}
\contentsline {section}{\numberline {5.4}\leavevmode {\color {Chapter }Parsing BibTeX Files}}{47}{section.5.4}
\contentsline {subsection}{\numberline {5.4.1}\leavevmode {\color {Chapter }ParseBibFiles}}{47}{subsection.5.4.1}
\contentsline {subsection}{\numberline {5.4.2}\leavevmode {\color {Chapter }NormalizeNameAndKey}}{48}{subsection.5.4.2}
\contentsline {subsection}{\numberline {5.4.3}\leavevmode {\color {Chapter }WriteBibFile}}{48}{subsection.5.4.3}
\contentsline {section}{\numberline {5.5}\leavevmode {\color {Chapter }Text Utilities}}{48}{section.5.5}
\contentsline {subsection}{\numberline {5.5.1}\leavevmode {\color {Chapter }WHITESPACE}}{49}{subsection.5.5.1}
\contentsline {subsection}{\numberline {5.5.2}\leavevmode {\color {Chapter }TextAttr}}{49}{subsection.5.5.2}
\contentsline {subsection}{\numberline {5.5.3}\leavevmode {\color {Chapter }FormatParagraph}}{50}{subsection.5.5.3}
\contentsline {subsection}{\numberline {5.5.4}\leavevmode {\color {Chapter }SubstitutionSublist}}{50}{subsection.5.5.4}
\contentsline {subsection}{\numberline {5.5.5}\leavevmode {\color {Chapter }StripBeginEnd}}{50}{subsection.5.5.5}
\contentsline {subsection}{\numberline {5.5.6}\leavevmode {\color {Chapter }StripEscapeSequences}}{51}{subsection.5.5.6}
\contentsline {subsection}{\numberline {5.5.7}\leavevmode {\color {Chapter }RepeatedString}}{51}{subsection.5.5.7}
\contentsline {subsection}{\numberline {5.5.8}\leavevmode {\color {Chapter }NumberDigits}}{51}{subsection.5.5.8}
\contentsline {subsection}{\numberline {5.5.9}\leavevmode {\color {Chapter }PositionMatchingDelimiter}}{51}{subsection.5.5.9}
\contentsline {subsection}{\numberline {5.5.10}\leavevmode {\color {Chapter }WordsString}}{52}{subsection.5.5.10}
\contentsline {section}{\numberline {5.6}\leavevmode {\color {Chapter }Print Utilities}}{52}{section.5.6}
\contentsline {subsection}{\numberline {5.6.1}\leavevmode {\color {Chapter }PrintTo1}}{52}{subsection.5.6.1}
\contentsline {subsection}{\numberline {5.6.2}\leavevmode {\color {Chapter }StringPrint}}{52}{subsection.5.6.2}
\contentsline {subsection}{\numberline {5.6.3}\leavevmode {\color {Chapter }PrintFormattedString}}{53}{subsection.5.6.3}
\contentsline {subsection}{\numberline {5.6.4}\leavevmode {\color {Chapter }Page}}{53}{subsection.5.6.4}
\contentsline {subsection}{\numberline {5.6.5}\leavevmode {\color {Chapter }StringFile}}{53}{subsection.5.6.5}
\contentsline {chapter}{\numberline {A}\leavevmode {\color {Chapter }The File \texttt {3k+1.xml}}}{54}{appendix.A}
\contentsline {chapter}{\numberline {B}\leavevmode {\color {Chapter }The File \texttt {gapdoc.dtd}}}{56}{appendix.B}
