Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
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
Project: cocalc-sagemath-dev-slelievre
Views: 418346<?xml version="1.0" encoding="UTF-8"?>1<!-- ==================================================================2gapdoc.dtd - XML Document type definition for GAP documentation3By Frank Lübeck and Max Neunhöffer4================================================================== -->567<!-- Note that this definition goes "bottom-up" because entities can only8be used after their definition in the file. -->91011<!-- ==================================================================12Some entities:13================================================================== -->1415<!-- The standard XML entities: -->1617<!ENTITY lt "&#60;">18<!ENTITY gt ">">19<!ENTITY amp "&#38;">20<!ENTITY apos "'">21<!ENTITY quot """>222324<!-- The following were introduced in GAPDoc version < 1.0, it is no longer25necessary to take care of LaTeX special characters26(we keep the entities with simplified definitions for compatibility) -->2728<!ENTITY tamp "&">29<!ENTITY tlt "<">30<!ENTITY tgt ">">31<!ENTITY hash "#">32<!ENTITY dollar "$">33<!ENTITY percent "%">34<!ENTITY tilde "~">35<!ENTITY bslash "\\">36<!ENTITY obrace "{">37<!ENTITY cbrace "}">38<!ENTITY uscore "_">39<!ENTITY circum "^">4041<!-- ==================================================================42Our predefined entities:43================================================================== -->4445<!ENTITY nbsp " ">46<!ENTITY ndash "–">47<!ENTITY GAP "<Package>GAP</Package>">48<!ENTITY GAPDoc "<Package>GAPDoc</Package>">49<!ENTITY TeX50"<Alt Only='LaTeX'>{\TeX}</Alt><Alt Not='LaTeX'>TeX</Alt>">51<!ENTITY LaTeX52"<Alt Only='LaTeX'>{\LaTeX}</Alt><Alt Not='LaTeX'>LaTeX</Alt>">53<!ENTITY BibTeX54"<Alt Only='LaTeX'>{Bib\TeX}</Alt><Alt Not='LaTeX'>BibTeX</Alt>">55<!ENTITY MeatAxe "<Package>MeatAxe</Package>">56<!ENTITY XGAP "<Package>XGAP</Package>">57<!ENTITY copyright "©">5859<!-- and unicode math symbols -->60<!ENTITY CC "ℂ" > <!-- double struck -->61<!ENTITY ZZ "ℤ" >62<!ENTITY NN "ℕ" >63<!ENTITY PP "ℙ" >64<!ENTITY QQ "ℚ" >65<!ENTITY HH "ℍ" >66<!ENTITY RR "ℝ" >676869<!-- ==================================================================70The following describes the "innermost" documentation text which71can occur at various places in the document like for example72section headings. It does neither contain further sectioning73elements nor environments like Enums or Lists.74================================================================== -->7576<!ENTITY % InnerText "#PCDATA |77Alt |78Emph | E |79Par | P | Br |80Keyword | K | Arg | A | Quoted | Q | Code | C |81File | F | Button | B | Package |82M | Math | Display |83Example | Listing | Log | Verb |84URL | Email | Homepage | Address | Cite | Label |85Ref | Index |86Ignore" >878889<!ELEMENT Alt (%InnerText;)*> <!-- This is only to allow "Only" and90"Not" attributes for normal text -->91<!ATTLIST Alt Only CDATA #IMPLIED92Not CDATA #IMPLIED>9394<!-- The following elements declare a certain block of InnerText to95have a certain property. They are non-terminal and can contain96any InnerText recursively. -->9798<!ELEMENT Emph (%InnerText;)*> <!-- Emphasize something -->99<!ELEMENT E (%InnerText;)*> <!-- the same as shortcut -->100101102<!-- The following is an empty element marking a paragraph boundary. -->103104<!ELEMENT Par EMPTY> <!-- this is intentionally empty! -->105<!ELEMENT P EMPTY> <!-- the same as shortcut -->106107<!-- And here is an element for forcing a line break, not starting108a new paragraph. -->109110<!ELEMENT Br EMPTY> <!-- a forced line break -->111112<!-- The following elements mark a word or sentence to be of a certain113kind, such that it can be typeset differently. They are terminal114elements that should only contain character data. But we have to115allow Alt elements for handling special characters. For these116elements we introduce a long name - which is easy to remember -117and a short name - which you may prefer because of the shorter118markup. -->119120<!ELEMENT Keyword (#PCDATA|Alt)*> <!-- Keyword -->121<!ELEMENT K (#PCDATA|Alt)*> <!-- Keyword (shortcut) -->122123<!ELEMENT Arg (#PCDATA|Alt)*> <!-- Argument -->124<!ELEMENT A (#PCDATA|Alt)*> <!-- Argument (shortcut) -->125126<!ELEMENT Code (#PCDATA|Alt|A|Arg)*> <!-- GAP code -->127<!ELEMENT C (#PCDATA|Alt|A|Arg)*> <!-- GAP code (shortcut) -->128129<!ELEMENT File (#PCDATA|Alt)*> <!-- Filename -->130<!ELEMENT F (#PCDATA|Alt)*> <!-- Filename (shortcut) -->131132<!ELEMENT Button (#PCDATA|Alt)*> <!-- "Button" (also Menu, Key) -->133<!ELEMENT B (#PCDATA|Alt)*> <!-- "Button" (shortcut) -->134135<!ELEMENT Package (#PCDATA|Alt)*> <!-- A package name -->136137<!ELEMENT Quoted (%InnerText;)*> <!-- Quoted (in quotes) text -->138<!ELEMENT Q (%InnerText;)*> <!-- Quoted text (shortcut) -->139140141<!-- The following elements contain mathematical formulae. They are142terminal elements that contain character data in TeX notation. -->143144<!-- Math with well defined translation to text output -->145<!ELEMENT M (#PCDATA|A|Arg|Alt)*>146<!-- Normal TeX math mode formula -->147<!ELEMENT Math (#PCDATA|A|Arg|Alt)*>148<!-- TeX displayed math mode formula -->149<!ELEMENT Display (#PCDATA|A|Arg|Alt)*>150<!-- Mode="M" causes <M>-style formatting -->151<!ATTLIST Display Mode CDATA #IMPLIED>152153154<!-- The following elements contain GAP related text like code,155session logs or examples. They are all terminal elements and156consist of character data which is normally typeset verbatim. The157different types of the elements only control how they are158treated. -->159160<!ELEMENT Example (#PCDATA)> <!-- This is subject to the automatic161example checking mechanism -->162<!ELEMENT Log (#PCDATA)> <!-- This not -->163<!ELEMENT Listing (#PCDATA)> <!-- This is just for code listings -->164<!ATTLIST Listing Type CDATA #IMPLIED> <!-- a comment about the type of165listed code, may appear in166output -->167168<!-- One further verbatim element, this is truely verbatim without169any processing and intended for ASCII substitutes of complicated170displayed formulae or tables. -->171172<!ELEMENT Verb (#PCDATA)>173174<!-- The following elements are for cross-referencing purposes like175URLs, citations, references, and the index. All these elements176are terminal and need special methods to make up the actual177output during document generation. -->178179<!ELEMENT URL (#PCDATA|Alt|Link|LinkText)*> <!-- Link, LinkText180variant for case where text needs further markup -->181<!ATTLIST URL Text CDATA #IMPLIED> <!-- This is for output formats182that have links like HTML -->183<!ELEMENT Link (%InnerText;)*> <!-- the URL -->184<!ELEMENT LinkText (%InnerText;)*> <!-- text for links, can contain markup -->185<!-- The following two are actually URLs, but the element name determines186the type. -->187<!ELEMENT Email (#PCDATA|Alt|Link|LinkText)*>188<!ELEMENT Homepage (#PCDATA|Alt|Link|LinkText)*>189190<!-- Those who still want to give postal addresses can use the following191element. Use <Br/> for specifying typical line breaks -->192193<!ELEMENT Address (#PCDATA|Alt|Br)*>194195<!ELEMENT Cite EMPTY>196<!ATTLIST Cite Key CDATA #REQUIRED197Where CDATA #IMPLIED>198199<!ELEMENT Label EMPTY>200<!ATTLIST Label Name CDATA #REQUIRED>201202<!ELEMENT Ref EMPTY>203<!ATTLIST Ref Func CDATA #IMPLIED204Oper CDATA #IMPLIED205Constr CDATA #IMPLIED206Meth CDATA #IMPLIED207Filt CDATA #IMPLIED208Prop CDATA #IMPLIED209Attr CDATA #IMPLIED210Var CDATA #IMPLIED211Fam CDATA #IMPLIED212InfoClass CDATA #IMPLIED213Chap CDATA #IMPLIED214Sect CDATA #IMPLIED215Subsect CDATA #IMPLIED216Appendix CDATA #IMPLIED217Text CDATA #IMPLIED218219Label CDATA #IMPLIED220BookName CDATA #IMPLIED221Style (Text|Number) #IMPLIED> <!-- normally automatic -->222223<!-- Note that only one attribute of Ref is used normally. BookName224and Style can be specified in addition to handle external225references and the typesetting style of the reference. -->226227<!-- For explicit index entries (Func and so on should cause an228automatically generated index entry). Use the attributes Key,229Subkey for sorting (simplified, without markup). The Subkey value230also gets printed. Use the optional Subkey element if the printed231version needs some markup. -->232<!ELEMENT Index (%InnerText;|Subkey)*>233<!ATTLIST Index Key CDATA #IMPLIED234Subkey CDATA #IMPLIED>235<!ELEMENT Subkey (%InnerText;)*>236237238<!-- ==================================================================239The following describes the normal documentation text which can240occur at various places in the document. It does not contain241further sectioning elements. In addition to InnerText it can contain242environments like enumerations, lists, and such.243================================================================== -->244245<!ENTITY % Text "%InnerText; | List | Enum | Table">246247<!ELEMENT Item ( %Text;)*>248<!ELEMENT Mark ( %InnerText;)*>249250<!ELEMENT List ( ((Mark,Item)|Item)+ )>251<!ATTLIST List Only CDATA #IMPLIED252Not CDATA #IMPLIED>253<!ELEMENT Enum ( Item+ )>254<!ATTLIST Enum Only CDATA #IMPLIED255Not CDATA #IMPLIED>256257<!ELEMENT Table ( Caption?, (Row | HorLine)+ )>258<!ATTLIST Table Label CDATA #IMPLIED259Only CDATA #IMPLIED260Not CDATA #IMPLIED261Align CDATA #REQUIRED> <!-- A TeX tabular string -->262<!-- We allow | and l,c,r, nothing else -->263<!ELEMENT Row ( Item+ )>264<!ELEMENT HorLine EMPTY>265<!ELEMENT Caption ( %InnerText;)*>266267<!-- ==================================================================268We start defining some things within the overall structure:269================================================================== -->270271<!-- The TitlePage consists of several sub-elements: -->272273<!ELEMENT TitlePage (Title, Subtitle?, Version?, TitleComment?,274Author+, Date?, Address?, Abstract?, Copyright?,275Acknowledgements? , Colophon? )>276277<!ELEMENT Title (%Text;)*>278<!ELEMENT Subtitle (%Text;)*>279<!ELEMENT Version (%Text;)*>280<!ELEMENT TitleComment (%Text;)*>281<!ELEMENT Author (%Text;)*> <!-- There may be more than one Author! -->282<!ELEMENT Date (%Text;)*>283<!ELEMENT Abstract (%Text;)*>284<!ELEMENT Copyright (%Text;)*>285<!ELEMENT Acknowledgements (%Text;)*>286<!ELEMENT Colophon (%Text;)*>287288289<!-- The following things just specify some information about the290corresponding parts of the Book: -->291292<!ELEMENT TableOfContents EMPTY>293<!ELEMENT Bibliography EMPTY>294<!ATTLIST Bibliography Databases CDATA #REQUIRED295Style CDATA #IMPLIED>296<!ELEMENT TheIndex EMPTY>297298<!-- ==================================================================299The Ignore element can be used everywhere to include further300information in a GAPDoc document which is not intended for the301standard converters (e.g., source code, not yet finished stuff,302and so on. This information can be extracted by special converter303routines, more precise information about the content of an Ignore304element can be given by the "Remark" attribute.305================================================================== -->306307<!ELEMENT Ignore (%Text;| Chapter | Section | Subsection | ManSection |308Heading)*>309<!ATTLIST Ignore Remark CDATA #IMPLIED>310311<!-- ==================================================================312Now we go on with the overall structure by defining the sectioning313structure, which includes the Synopsis element:314================================================================== -->315316317<!ELEMENT Subsection (%Text;| Heading)*>318<!ATTLIST Subsection Label CDATA #IMPLIED> <!-- For reference purposes -->319320<!ELEMENT ManSection ( Heading?,321((Func, Returns?) | (Oper, Returns?) |322(Meth, Returns?) | (Filt, Returns?) |323(Prop, Returns?) | (Attr, Returns?) |324(Constr, Returns?) |325Var | Fam | InfoClass)+, Description )>326<!ATTLIST ManSection Label CDATA #IMPLIED> <!-- For reference purposes -->327328<!ELEMENT Returns (%Text;)*>329<!ELEMENT Description (%Text;)*>330331332<!-- Note that the ManSection element is actually a subsection with333respect to labelling, referencing, and counting of sectioning334elements. -->335336<!ELEMENT Func EMPTY>337<!ATTLIST Func Name CDATA #REQUIRED338Label CDATA #IMPLIED339Arg CDATA #REQUIRED340Comm CDATA #IMPLIED>341342<!-- Note that Arg contains the full list of arguments, including343optional parts, which are denoted by square brackets [].344Arguments are separated by whitespace, commas count as345whitespace. -->346347<!-- Note further that although Name and Label are CDATA (and not ID)348Label must make up a unique identifier. -->349350<!ELEMENT Oper EMPTY>351<!ATTLIST Oper Name CDATA #REQUIRED352Label CDATA #IMPLIED353Arg CDATA #REQUIRED354Comm CDATA #IMPLIED>355356<!ELEMENT Constr EMPTY>357<!ATTLIST Constr Name CDATA #REQUIRED358Label CDATA #IMPLIED359Arg CDATA #REQUIRED360Comm CDATA #IMPLIED>361362<!ELEMENT Meth EMPTY>363<!ATTLIST Meth Name CDATA #REQUIRED364Label CDATA #IMPLIED365Arg CDATA #REQUIRED366Comm CDATA #IMPLIED>367368<!ELEMENT Filt EMPTY>369<!ATTLIST Filt Name CDATA #REQUIRED370Label CDATA #IMPLIED371Arg CDATA #IMPLIED372Comm CDATA #IMPLIED373Type CDATA #IMPLIED>374375<!ELEMENT Prop EMPTY>376<!ATTLIST Prop Name CDATA #REQUIRED377Label CDATA #IMPLIED378Arg CDATA #REQUIRED379Comm CDATA #IMPLIED>380381<!ELEMENT Attr EMPTY>382<!ATTLIST Attr Name CDATA #REQUIRED383Label CDATA #IMPLIED384Arg CDATA #REQUIRED385Comm CDATA #IMPLIED>386387<!ELEMENT Var EMPTY>388<!ATTLIST Var Name CDATA #REQUIRED389Label CDATA #IMPLIED390Comm CDATA #IMPLIED>391392<!ELEMENT Fam EMPTY>393<!ATTLIST Fam Name CDATA #REQUIRED394Label CDATA #IMPLIED395Comm CDATA #IMPLIED>396397<!ELEMENT InfoClass EMPTY>398<!ATTLIST InfoClass Name CDATA #REQUIRED399Label CDATA #IMPLIED400Comm CDATA #IMPLIED>401402403<!ELEMENT Heading (%InnerText;)*>404405<!ELEMENT Section (%Text;| Heading | Subsection | ManSection)*>406<!ATTLIST Section Label CDATA #IMPLIED> <!-- For reference purposes -->407408409<!ELEMENT Chapter (%Text;| Heading | Section)*>410<!ATTLIST Chapter Label CDATA #IMPLIED> <!-- For reference purposes -->411412413<!-- Note that the entity %InnerText; is documentation that contains414neither sectioning elements nor environments like enumerations,415but only formulae, labels, references, citations, and other416terminal elements. -->417418<!ELEMENT Appendix (%Text;| Heading | Section)*>419<!ATTLIST Appendix Label CDATA #IMPLIED> <!-- For reference purposes -->420421<!-- Note that an Appendix is exactly the same as a Chapter. They422differ only in the numbering. -->423424<!-- ==================================================================425At last we define the overall structure of a gapdoc Book:426================================================================== -->427428<!ELEMENT Body ( %Text;| Chapter | Section )*>429430<!ELEMENT Book (TitlePage,431TableOfContents?,432Body,433Appendix*,434Bibliography?,435TheIndex?)>436<!ATTLIST Book Name CDATA #REQUIRED>437438<!-- Note that the entity %Text; is documentation that contains439no further sectioning elements but possibly environments like440enumerations, and formulae, labels, references, and citations.441-->442443<!-- ============================================================== -->444445446447