Started a PreTeXt book.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- This file contains all of the "backmatter" material -->
|
||||
<!-- In comments, we show examples of how to have hints to divisional -->
|
||||
<!-- excercies appear in a section, and then their -->
|
||||
<!-- solutions in the next. Then there is an appendix -->
|
||||
<!-- with all notation generated, and finally the index. -->
|
||||
<backmatter xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="backmatter">
|
||||
<title>Backmatter</title>
|
||||
|
||||
<!-- <solutions divisional="hint"> <title>Selected Hints</title> </solutions> -->
|
||||
|
||||
<!-- <solutions divisional="solution"> <title>Selected Solutions</title> </solutions> -->
|
||||
|
||||
<!-- <appendix> <title>List of Symbols</title> <notation-list/> </appendix> -->
|
||||
|
||||
<!-- <index> <title>Index</title> <index-list/> </index> -->
|
||||
|
||||
<colophon>
|
||||
<p> This book was authored in <pretext />. </p>
|
||||
</colophon>
|
||||
</backmatter>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<chapter xml:id="ch-chapter-title" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<title>Chapter Title</title>
|
||||
|
||||
<introduction>
|
||||
<p> Text before the first section. </p>
|
||||
</introduction>
|
||||
|
||||
<!-- include sections -->
|
||||
<xi:include href="sec-section-name.ptx" />
|
||||
|
||||
</chapter>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- The docinfo block is the analogue to the latex preamble -->
|
||||
<!-- This is where you can define macros and other book-wide -->
|
||||
<!-- settings. -->
|
||||
<docinfo xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- A unique name for the book in a catalog; for example, see https://pretextbook.org/catalog.html and https://runestone.academy/ns/books/index. It contains a simple lowercase string with no dashes or other special characters. See https://pretextbook.org/doc/guide/html/sec-publishing-to-runestone-academy.html for more information. -->
|
||||
<document-id>changeme</document-id>
|
||||
<!-- A brief description for the book in a catalog; see the links above. The @shelf is used only when publishing to Runestone; see https://runestone.academy/ns/books/index for a list of valid values. You must copy these @shelf names exactly, including capitalization. -->
|
||||
<blurb shelf="AP Computer Science"> A simple string (no markup is allowed) to describe your book. </blurb>
|
||||
|
||||
|
||||
<!-- The next three lines are likely for mature projects only: -->
|
||||
|
||||
<!-- <brandlogo url="" source="images/cover.png"/> -->
|
||||
<!-- <covers front="images/front.pdf" back="images/back.pdf"/> -->
|
||||
<!-- <document-id>unique-book-id</document-id> -->
|
||||
|
||||
<!-- macros for defining latex math shortcuts. It is good practice -->
|
||||
<!-- to define these semantically, so that the macro relates to what-->
|
||||
<!-- it defines. -->
|
||||
<macros> \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R} </macros>
|
||||
|
||||
<!-- If you put any latex-image elements you can include preambles -->
|
||||
<!-- for those in the next element. -->
|
||||
<latex-image-preamble> \usepackage{tikz, pgfplots} \usetikzlibrary{positioning,matrix,arrows} \usetikzlibrary{shapes,decorations,shadows,fadings,patterns} \usetikzlibrary{decorations.markings} </latex-image-preamble>
|
||||
|
||||
<!-- It is possible to rename elements: -->
|
||||
<!-- <rename element="assemblage" xml:lang="en-US">Summary</rename> -->
|
||||
|
||||
<!-- Specify the default type of cross reference: -->
|
||||
<!-- <cross-references text="type-global" /> -->
|
||||
|
||||
|
||||
</docinfo>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This frontmatter division will contain all content before the -->
|
||||
<!-- first chapter. Fill in and comment/uncomment to see how this -->
|
||||
<!-- works. -->
|
||||
|
||||
<frontmatter xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="frontmatter">
|
||||
<bibinfo>
|
||||
|
||||
<author>
|
||||
<personname>You</personname>
|
||||
<department>Your department</department>
|
||||
<institution>Your institution</institution>
|
||||
</author>
|
||||
<date>
|
||||
<today />
|
||||
</date>
|
||||
|
||||
<website>
|
||||
<url href="https://pretextbook.org">My Website</url>
|
||||
</website>
|
||||
|
||||
<copyright>
|
||||
<year>2020<ndash />2024</year>
|
||||
<holder>You</holder>
|
||||
<shortlicense> This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit <url href="http://creativecommons.org/licenses/by-sa/4.0/" visual="creativecommons.org/licenses/by-sa/4.0"> CreativeCommons.org</url>
|
||||
</shortlicense>
|
||||
</copyright>
|
||||
|
||||
</bibinfo>
|
||||
|
||||
<titlepage>
|
||||
<titlepage-items/>
|
||||
</titlepage>
|
||||
|
||||
<colophon xml:id="front-colophon">
|
||||
<colophon-items/>
|
||||
</colophon>
|
||||
</frontmatter>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<pretext xml:lang="en-US" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- we first include a file which contains the docinfo element: -->
|
||||
<xi:include href="./docinfo.ptx" />
|
||||
|
||||
<book xml:id="my-great-book">
|
||||
<title>Andy's Book</title>
|
||||
<subtitle>An example to get you started</subtitle>
|
||||
|
||||
<!-- Include frontmatter -->
|
||||
<xi:include href="./frontmatter.ptx" />
|
||||
|
||||
<!-- Include chapters -->
|
||||
<xi:include href="./ch-chapter-title.ptx" />
|
||||
|
||||
|
||||
<!-- Include backmatter -->
|
||||
<xi:include href="./backmatter.ptx" />
|
||||
|
||||
</book>
|
||||
</pretext>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<section xml:id="sec-section-name" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<title>Section Title</title>
|
||||
|
||||
<p> Text of section. </p>
|
||||
|
||||
</section>
|
||||
Reference in New Issue
Block a user