Skip to content

Commit ab0c571

Browse files
committed
update for backup
1 parent c947be7 commit ab0c571

File tree

115 files changed

+200
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+200
-9
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

images/.directory

Lines changed: 0 additions & 4 deletions
This file was deleted.

images/fullcover.pdf

-435 KB
Binary file not shown.

project.ptx

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
This file provides the overall configuration for your PreTeXt
4+
project. To edit the content of your document, open `source/main.ptx`
5+
(default location).
6+
-->
7+
<project>
8+
<targets>
9+
<target name="html">
10+
<format>html</format>
11+
<source>source/dmoi.ptx</source>
12+
<publication>publication/publication.ptx</publication>
13+
<output-dir>output/html</output-dir>
14+
<xsl>xsl/dmoi-html.xsl</xsl>
15+
</target>
16+
<target name="latex">
17+
<format>latex</format>
18+
<source>source/dmoi.ptx</source>
19+
<publication>publication/publication.ptx</publication>
20+
<output-dir>output/latex</output-dir>
21+
<xsl>xsl/dmoi-latex.xsl</xsl>
22+
</target>
23+
<target name="pdf">
24+
<format>pdf</format>
25+
<source>source/dmoi.ptx</source>
26+
<publication>publication/publication.ptx</publication>
27+
<output-dir>output/pdf</output-dir>
28+
<xsl>xsl/dmoi-latex.xsl</xsl>
29+
</target>
30+
<!-- To quickly build the html of a subset of your project, edit main-subset.ptx
31+
and run `pretext build subset` (or `view` with watch option) -->
32+
<target name="subset">
33+
<format>html</format>
34+
<source>source/main-subset.ptx</source>
35+
<publication>publication/publication.ptx</publication>
36+
<output-dir>output/subset</output-dir>
37+
<stringparam key="debug.skip-knowls" value="yes"/>
38+
</target>
39+
</targets>
40+
<executables>
41+
<tex>pdflatex</tex>
42+
<pdfsvg>pdf2svg</pdfsvg>
43+
<asy>asy</asy>
44+
<sage>sage</sage>
45+
<pdfpng>convert</pdfpng>
46+
<pdfeps>pdftops</pdfeps>
47+
<pdfcrop>pdf-crop-margins</pdfcrop>
48+
<pageres>pageres</pageres>
49+
<node>node</node>
50+
<liblouis>file2brl</liblouis>
51+
</executables>
52+
</project>

publication/publication.ptx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<publication>
3+
<!-- directories are relative to the main source PreTeXt file -->
4+
<source webwork-problems="../generated-assets/webwork/webwork-representations.ptx">
5+
<directories external="../assets" generated="../generated-assets"/>
6+
</source>
7+
8+
<!-- HTML-Specific Options -->
9+
<html>
10+
<!-- Set platform; @host="web" is default, @host="runestone" also possible -->
11+
<platform host="web"/>
12+
<!-- specify the style of the html by giving names to -->
13+
<!-- override defaults. Ex: to use "style_oscarlevin.css" -->
14+
<!-- put <css style="oscarlevin"/> -->
15+
<!-- @colors currently unimplementd. -->
16+
<css style="oscarlevin"/>
17+
<!-- Magic IDs identify HTML pages to analytics services -->
18+
<!-- Presence implies relevant Javascript will be added -->
19+
<analytics google-gst="UA-66485406-1"/>
20+
<!-- Google search, via masthead textbox is switched on -->
21+
<!-- and associated with a Google account via CX number -->
22+
<search google-cx="000445521324161818100:qhc2ahxtur8"/>
23+
</html>
24+
</publication>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

xsl/dmoi-html.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<!-- Parts of this file were adapted from the author guide at https://github.com/rbeezer/mathbook and the analagous file at https://github.com/twjudson/aata -->
1212
<!DOCTYPE xsl:stylesheet [
13-
<!ENTITY % entities SYSTEM "../xsl/entities.ent">
13+
<!ENTITY % entities SYSTEM "entities.ent">
1414
%entities;
1515
]>
1616

@@ -19,7 +19,7 @@
1919
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2020

2121
<!-- Assumes current file is in mathbook/user -->
22-
<xsl:import href="../xsl/pretext-html.xsl" />
22+
<xsl:import pretext-href="pretext-html.xsl" />
2323
<!-- Assumes next file can be found in mathbook/user-->
2424
<xsl:import href="dmoi-common.xsl" />
2525

xsl/dmoi-latex.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- Parts of this file were adapted from the author guide at https://github.com/rbeezer/mathbook and the analagous file at https://github.com/twjudson/aata -->
1212
<!-- Conveniences for classes of similar elements -->
1313
<!DOCTYPE xsl:stylesheet [
14-
<!ENTITY % entities SYSTEM "../xsl/entities.ent">
14+
<!ENTITY % entities SYSTEM "entities.ent">
1515
%entities;
1616
]>
1717

@@ -20,7 +20,7 @@
2020
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2121

2222
<!-- assumes this has been copied to mathbook/user -->
23-
<xsl:import href="../xsl/pretext-latex.xsl" />
23+
<xsl:import pretext-href="pretext-latex.xsl" />
2424

2525
<xsl:import href="pretext-latex-dmoi.xsl" />
2626
<!-- Assumes next file can be found in mathbook/user -->

xsl/entities.ent

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<!-- ********************************************************************* -->
2+
<!-- Copyright 2016 -->
3+
<!-- Robert A. Beezer -->
4+
<!-- -->
5+
<!-- This file is part of MathBook XML. -->
6+
<!-- -->
7+
<!-- MathBook XML is free software: you can redistribute it and/or modify -->
8+
<!-- it under the terms of the GNU General Public License as published by -->
9+
<!-- the Free Software Foundation, either version 2 or version 3 of the -->
10+
<!-- License (at your option). -->
11+
<!-- -->
12+
<!-- MathBook XML is distributed in the hope that it will be useful, -->
13+
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
14+
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
15+
<!-- GNU General Public License for more details. -->
16+
<!-- -->
17+
<!-- You should have received a copy of the GNU General Public License -->
18+
<!-- along with MathBook XML. If not, see <http://www.gnu.org/licenses/>. -->
19+
<!-- ********************************************************************* -->
20+
21+
<!-- XSLT Cookbook, 2nd Edition -->
22+
<!-- Copyright 2006, O'Reilly Media, Inc. -->
23+
<!-- Declaration and entity definition format from Recipe 2.8 -->
24+
<!-- Unicode strings from http://stackoverflow.com/questions/586231 -->
25+
<!ENTITY UPPERCASE "'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ'">
26+
<!ENTITY LOWERCASE "'abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ'">
27+
28+
<!-- Some more of our own design -->
29+
<!ENTITY DIGIT "'0123456789'">
30+
<!ENTITY ALPHABET "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'">
31+
<!ENTITY SIMPLECHAR "concat(&DIGIT;,&ALPHABET;)">
32+
33+
<!-- for match/select -->
34+
<!ENTITY STRUCTURAL "book|article|slideshow|letter|memo|frontmatter|part|chapter|appendix|index[index-list]|index-part|preface|acknowledgement|biography|foreword|dedication|colophon|section|subsection|subsubsection|slide|exercises|worksheet|reading-questions|solutions|references|glossary|backmatter">
35+
36+
<!-- for filtering nodes, eg *[&STRUCTURAL-FILTER;], *[not(&STRUCTURAL-FILTER;)] -->
37+
<!ENTITY STRUCTURAL-FILTER "self::book or self::article or self::slideshow or self::letter or self::memo or self::frontmatter or self::part or self::chapter or self::appendix or self::index[index-list] or self::index-part or self::preface or self::acknowledgement or self::biography or self::foreword or self::dedication or self::colophon or self::section or self::subsection or self::subsubsection or self::slide or self::exercises or self::worksheet or self::reading-questions or self::solutions or self::references or self::glossary or self::backmatter">
38+
39+
<!-- NB: (2019-06-12) Only the two metadata "filters" seem to -->
40+
<!-- be in use, so only those are being maintained. grep'ing on -->
41+
<!-- METADATA v. METADATA-FILTER, and applying "wc" makes this evident. -->
42+
<!-- (Include this comment in count!) -->
43+
44+
<!-- typical items in blocks that get special treatment -->
45+
<!ENTITY METADATA "title|subtitle|caption|index">
46+
<!ENTITY METADATA-FILTER "self::title or self::subtitle or self::caption or self::idx or self::index[not(index-list)]">
47+
48+
<!-- Subdivisions and runs of paragraphs (like in a proof) -->
49+
<!-- contain "invisible" items that get killed and then -->
50+
<!-- used/accessed other ways. To see if something is -->
51+
<!--first, last, preceded, or followed by other significant -->
52+
<!-- items requires filtering out these items in forming a -->
53+
<!-- node-set (so as to not be confused by their presence) -->
54+
<!-- A super-lightweight "article" might have "frontmatter" -->
55+
<!-- and "backmatter" as peers of content elements, and in -->
56+
<!-- other cases it should not be a problem -->
57+
<!-- Typical use: *[not(&SUBDIVISION-METADATA-FILTER;)] -->
58+
<!ENTITY SUBDIVISION-METADATA "title|subtitle|index|notation|todo|frontmatter|backmatter">
59+
<!ENTITY SUBDIVISION-METADATA-FILTER "self::title or self::subtitle or self::idx or self::index[not(index-list)] or self::notation or self::todo or self::frontmatter or self::backmatter">
60+
61+
<!-- To implement a new category of blocks, search on -->
62+
<!-- "PROJECT-" (case-sensitive) since we will mark -->
63+
<!-- non-obvious locations with the string PROJECT-LIKE -->
64+
<!-- as we immplement this on 2016-07-17, other entities -->
65+
<!-- below will also match this short form -->
66+
67+
<!-- definition, just a plain statement, but logically distinct -->
68+
<!ENTITY DEFINITION-LIKE "definition">
69+
<!ENTITY DEFINITION-FILTER "self::definition">
70+
71+
<!-- statement + proof -->
72+
<!ENTITY THEOREM-LIKE "theorem|corollary|lemma|algorithm|proposition|claim|fact|identity">
73+
<!ENTITY THEOREM-FILTER "self::theorem or self::corollary or self::lemma or self::algorithm or self::proposition or self::claim or self::fact or self::identity">
74+
75+
<!-- a mathematical statement, but never with a proof -->
76+
<!ENTITY AXIOM-LIKE "axiom|conjecture|principle|heuristic|hypothesis|assumption">
77+
<!ENTITY AXIOM-FILTER "self::axiom or self::conjecture or self::principle or self::heuristic or self::hypothesis or self::assumption">
78+
79+
<!-- narrative, set off for structure, reference -->
80+
<!ENTITY REMARK-LIKE "remark|convention|note|observation|warning|insight">
81+
<!ENTITY REMARK-FILTER "self::remark or self::convention or self::note or self::observation or self::warning or self::insight">
82+
83+
<!-- about computations or technology -->
84+
<!ENTITY COMPUTATION-LIKE "computation|technology">
85+
<!ENTITY COMPUTATION-FILTER "self::computation or self::technology">
86+
87+
<!-- incidental, skippable, lightweight -->
88+
<!ENTITY ASIDE-LIKE "aside|biographical|historical">
89+
<!ENTITY ASIDE-FILTER "self::aside or self::biographical or self::historical">
90+
91+
<!-- blocks, or statement + solution -->
92+
<!ENTITY EXAMPLE-LIKE "example|question|problem">
93+
<!ENTITY EXAMPLE-FILTER "self::example or self::question or self::problem">
94+
95+
<!-- blocks, or statement + solution -->
96+
<!-- save off lab, laboratory, experiment for science -->
97+
<!-- NB: update comprehensive list in the Guide with any additions -->
98+
<!ENTITY PROJECT-LIKE "project|activity|exploration|investigation">
99+
<!ENTITY PROJECT-FILTER "self::project or self::activity or self::exploration or self::investigation">
100+
101+
<!-- blocks with meta-information in lists -->
102+
<!-- TODO: add in "standards", "goals" -->
103+
<!-- NB: update comprehensive list in the Guide with any additions -->
104+
<!ENTITY GOAL-LIKE "objectives|outcomes">
105+
<!ENTITY GOAL-FILTER "self::objectives or self::outcomes">
106+
107+
<!-- displays with captions -->
108+
<!ENTITY FIGURE-LIKE "figure|table|listing|list">
109+
<!ENTITY FIGURE-FILTER "self::figure or self::table or self::listing or self::list">
110+
111+
<!-- appendages of examples, exercises, tasks -->
112+
<!ENTITY SOLUTION-LIKE "hint|answer|solution">
113+
<!ENTITY SOLUTION-FILTER "self::hint or self::answer or self::solution">
114+
115+
<!-- When context is an inline "exercise", then this condition is -->
116+
<!-- true. We are positive, so as new locations of "exercise" -->
117+
<!-- are added, then this need not change -->
118+
<!-- Typical use: self::exercise and boolean(&INLINE-EXERCISE-FILTER;) -->
119+
<!ENTITY INLINE-EXERCISE-FILTER "parent::article|parent::paragraphs|parent::chapter|parent::section|parent::subsection|parent::subsubsection">

xsl/pretext-latex-dmoi.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
2121

2222
<!-- Conveniences for classes of similar elements -->
2323
<!DOCTYPE xsl:stylesheet [
24-
<!ENTITY % entities SYSTEM "../xsl/entities.ent">
24+
<!ENTITY % entities SYSTEM "entities.ent">
2525
%entities;
2626
]>
2727

0 commit comments

Comments
 (0)