\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 }Author{\textgreater }}}}{20}{subsection.3.2.6}
\contentsline {subsection}{\numberline {3.2.7}\leavevmode {\color {Chapter }\texttt {{\textless }Date{\textgreater }}}}{20}{subsection.3.2.7}
\contentsline {subsection}{\numberline {3.2.8}\leavevmode {\color {Chapter }\texttt {{\textless }Abstract{\textgreater }}}}{20}{subsection.3.2.8}
\contentsline {subsection}{\numberline {3.2.9}\leavevmode {\color {Chapter }\texttt {{\textless }Copyright{\textgreater }}}}{20}{subsection.3.2.9}
\contentsline {subsection}{\numberline {3.2.10}\leavevmode {\color {Chapter }\texttt {{\textless }Acknowledgements{\textgreater }}}}{20}{subsection.3.2.10}
\contentsline {subsection}{\numberline {3.2.11}\leavevmode {\color {Chapter }\texttt {{\textless }Colophon{\textgreater }}}}{20}{subsection.3.2.11}
\contentsline {subsection}{\numberline {3.2.12}\leavevmode {\color {Chapter }\texttt {{\textless }TableOfContents{\textgreater }}}}{20}{subsection.3.2.12}
\contentsline {subsection}{\numberline {3.2.13}\leavevmode {\color {Chapter }\texttt {{\textless }Bibliography{\textgreater }} }}{21}{subsection.3.2.13}
\contentsline {subsection}{\numberline {3.2.14}\leavevmode {\color {Chapter }\texttt {{\textless }TheIndex{\textgreater }}}}{21}{subsection.3.2.14}
\contentsline {section}{\numberline {3.3}\leavevmode {\color {Chapter }Sectioning Elements}}{21}{section.3.3}
\contentsline {subsection}{\numberline {3.3.1}\leavevmode {\color {Chapter }\texttt {{\textless }Body{\textgreater }}}}{21}{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 }}}}{22}{subsection.3.3.3}
\contentsline {subsection}{\numberline {3.3.4}\leavevmode {\color {Chapter }\texttt {{\textless }Appendix{\textgreater }}}}{22}{subsection.3.3.4}
\contentsline {subsection}{\numberline {3.3.5}\leavevmode {\color {Chapter }\texttt {{\textless }Section{\textgreater }}}}{22}{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}}{23}{section.3.4}
\contentsline {subsection}{\numberline {3.4.1}\leavevmode {\color {Chapter }\texttt {{\textless }ManSection{\textgreater }}}}{23}{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 }}}}{24}{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 }}}}{25}{subsection.3.4.6}
\contentsline {subsection}{\numberline {3.4.7}\leavevmode {\color {Chapter }\texttt {{\textless }Attr{\textgreater }}}}{25}{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 }}}}{26}{subsection.3.4.10}
\contentsline {section}{\numberline {3.5}\leavevmode {\color {Chapter }Cross Referencing and Citations}}{26}{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 }}}}{28}{subsection.3.5.5}
\contentsline {subsection}{\numberline {3.5.6}\leavevmode {\color {Chapter }\texttt {{\textless }Email{\textgreater }}}}{28}{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 }}}}{29}{subsection.3.6.2}
\contentsline {subsection}{\numberline {3.6.3}\leavevmode {\color {Chapter }\texttt {{\textless }Item{\textgreater }}}}{29}{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}}{30}{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 }}}}{31}{subsection.3.7.4}
\contentsline {subsection}{\numberline {3.7.5}\leavevmode {\color {Chapter }\texttt {{\textless }Code{\textgreater }} and \texttt {{\textless }C{\textgreater }}}}{31}{subsection.3.7.5}
\contentsline {subsection}{\numberline {3.7.6}\leavevmode {\color {Chapter }\texttt {{\textless }File{\textgreater }} and \texttt {{\textless }F{\textgreater }}}}{31}{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 }}}}{32}{subsection.3.7.9}
\contentsline {subsection}{\numberline {3.7.10}\leavevmode {\color {Chapter }\texttt {{\textless }Log{\textgreater }} and \texttt {{\textless }Example{\textgreater }}}}{32}{subsection.3.7.10}
\contentsline {subsection}{\numberline {3.7.11}\leavevmode {\color {Chapter }{\textless }Verb{\textgreater }}}{32}{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 }}}}{33}{subsection.3.8.2}
\contentsline {section}{\numberline {3.9}\leavevmode {\color {Chapter }Everything else}}{34}{section.3.9}
\contentsline {subsection}{\numberline {3.9.1}\leavevmode {\color {Chapter }\texttt {{\textless }Alt{\textgreater }}}}{34}{subsection.3.9.1}
\contentsline {subsection}{\numberline {3.9.2}\leavevmode {\color {Chapter }\texttt {{\textless }Par{\textgreater }} and \texttt {{\textless }P{\textgreater }}}}{35}{subsection.3.9.2}
\contentsline {chapter}{\numberline {4}\leavevmode {\color {Chapter }Distributing a Document into Several Files}}{36}{chapter.4}
\contentsline {section}{\numberline {4.1}\leavevmode {\color {Chapter }The Conventions}}{36}{section.4.1}
\contentsline {section}{\numberline {4.2}\leavevmode {\color {Chapter }A Tool for Collecting a Document}}{37}{section.4.2}
\contentsline {subsection}{\numberline {4.2.1}\leavevmode {\color {Chapter }ComposedXMLString}}{37}{subsection.4.2.1}
\contentsline {chapter}{\numberline {5}\leavevmode {\color {Chapter }The Converters}}{38}{chapter.5}
\contentsline {section}{\numberline {5.1}\leavevmode {\color {Chapter }Producing Documentation from Source Files}}{38}{section.5.1}
\contentsline {subsection}{\numberline {5.1.1}\leavevmode {\color {Chapter }MakeGAPDocDoc}}{40}{subsection.5.1.1}
\contentsline {section}{\numberline {5.2}\leavevmode {\color {Chapter }Parsing XML Documents}}{40}{section.5.2}
\contentsline {subsection}{\numberline {5.2.1}\leavevmode {\color {Chapter }ParseTreeXMLString}}{40}{subsection.5.2.1}
\contentsline {subsection}{\numberline {5.2.2}\leavevmode {\color {Chapter }DisplayXMLStructure}}{41}{subsection.5.2.2}
\contentsline {subsection}{\numberline {5.2.3}\leavevmode {\color {Chapter }ApplyToNodesParseTree}}{41}{subsection.5.2.3}
\contentsline {subsection}{\numberline {5.2.4}\leavevmode {\color {Chapter }CheckAndCleanGapDocTree}}{41}{subsection.5.2.4}
\contentsline {subsection}{\numberline {5.2.5}\leavevmode {\color {Chapter }AddParagraphNumbersGapDocTree}}{42}{subsection.5.2.5}
\contentsline {section}{\numberline {5.3}\leavevmode {\color {Chapter }The Converters}}{42}{section.5.3}
\contentsline {subsection}{\numberline {5.3.1}\leavevmode {\color {Chapter }GAPDoc2LaTeX}}{42}{subsection.5.3.1}
\contentsline {subsection}{\numberline {5.3.2}\leavevmode {\color {Chapter }GAPDoc2Text}}{43}{subsection.5.3.2}
\contentsline {subsection}{\numberline {5.3.3}\leavevmode {\color {Chapter }GAPDoc2TextPrintTextFiles}}{43}{subsection.5.3.3}
\contentsline {subsection}{\numberline {5.3.4}\leavevmode {\color {Chapter }AddPageNumbersToSix}}{44}{subsection.5.3.4}
\contentsline {subsection}{\numberline {5.3.5}\leavevmode {\color {Chapter }PrintSixFile}}{44}{subsection.5.3.5}
\contentsline {subsection}{\numberline {5.3.6}\leavevmode {\color {Chapter }GAPDoc2HTML}}{44}{subsection.5.3.6}
\contentsline {subsection}{\numberline {5.3.7}\leavevmode {\color {Chapter }GAPDoc2HTMLPrintHTMLFiles}}{45}{subsection.5.3.7}
\contentsline {section}{\numberline {5.4}\leavevmode {\color {Chapter }Parsing BibTeX Files}}{45}{section.5.4}
\contentsline {subsection}{\numberline {5.4.1}\leavevmode {\color {Chapter }ParseBibFiles}}{45}{subsection.5.4.1}
\contentsline {subsection}{\numberline {5.4.2}\leavevmode {\color {Chapter }NormalizeNameAndKey}}{46}{subsection.5.4.2}
\contentsline {subsection}{\numberline {5.4.3}\leavevmode {\color {Chapter }WriteBibFile}}{46}{subsection.5.4.3}
\contentsline {section}{\numberline {5.5}\leavevmode {\color {Chapter }Text Utilities}}{47}{section.5.5}
\contentsline {subsection}{\numberline {5.5.1}\leavevmode {\color {Chapter }WHITESPACE}}{47}{subsection.5.5.1}
\contentsline {subsection}{\numberline {5.5.2}\leavevmode {\color {Chapter }TextAttr}}{47}{subsection.5.5.2}
\contentsline {subsection}{\numberline {5.5.3}\leavevmode {\color {Chapter }FormatParagraph}}{48}{subsection.5.5.3}
\contentsline {subsection}{\numberline {5.5.4}\leavevmode {\color {Chapter }SubstitutionSublist}}{48}{subsection.5.5.4}
\contentsline {subsection}{\numberline {5.5.5}\leavevmode {\color {Chapter }StripBeginEnd}}{49}{subsection.5.5.5}
\contentsline {subsection}{\numberline {5.5.6}\leavevmode {\color {Chapter }StripEscapeSequences}}{49}{subsection.5.5.6}
\contentsline {subsection}{\numberline {5.5.7}\leavevmode {\color {Chapter }RepeatedString}}{49}{subsection.5.5.7}
\contentsline {subsection}{\numberline {5.5.8}\leavevmode {\color {Chapter }NumberDigits}}{49}{subsection.5.5.8}
\contentsline {subsection}{\numberline {5.5.9}\leavevmode {\color {Chapter }PositionMatchingDelimiter}}{50}{subsection.5.5.9}
\contentsline {subsection}{\numberline {5.5.10}\leavevmode {\color {Chapter }WordsString}}{50}{subsection.5.5.10}
\contentsline {section}{\numberline {5.6}\leavevmode {\color {Chapter }Print Utilities}}{50}{section.5.6}
\contentsline {subsection}{\numberline {5.6.1}\leavevmode {\color {Chapter }PrintTo1}}{50}{subsection.5.6.1}
\contentsline {subsection}{\numberline {5.6.2}\leavevmode {\color {Chapter }StringPrint}}{51}{subsection.5.6.2}
\contentsline {subsection}{\numberline {5.6.3}\leavevmode {\color {Chapter }PrintFormattedString}}{51}{subsection.5.6.3}
\contentsline {subsection}{\numberline {5.6.4}\leavevmode {\color {Chapter }Page}}{51}{subsection.5.6.4}
\contentsline {subsection}{\numberline {5.6.5}\leavevmode {\color {Chapter }StringFile}}{51}{subsection.5.6.5}
\contentsline {chapter}{\numberline {A}\leavevmode {\color {Chapter }The file \texttt {3k+1.xml}}}{52}{appendix.A}
\contentsline {chapter}{\numberline {B}\leavevmode {\color {Chapter }The File \texttt {gapdoc.dtd}}}{54}{appendix.B}
