Skip to content

Commit

Permalink
Merge pull request #159 from PreTeXtBook/templates
Browse files Browse the repository at this point in the history
Templates
  • Loading branch information
StevenClontz authored Aug 3, 2021
2 parents becac5a + 1d94fce commit f6c4a6f
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 128 deletions.
76 changes: 0 additions & 76 deletions templates/article/source/electronics.tex

This file was deleted.

21 changes: 16 additions & 5 deletions templates/article/source/section-2.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@
<p>Other words</p>
</introduction>
<p>foo</p>
<figure xml:id="figure-tikz-electronics">
<caption>TikZ Electronics Diagram</caption>
<image xml:id="tikz-electronics">
<description>A pile of electronic components wired together</description>
<figure xml:id="figure-tikz-example-diagram">
<caption>The graph <m>C_5</m> made by TikZ</caption>
<image xml:id="tikz-example-diagram" width="20%">
<description>A 5-cycle</description>
<latex-image>
<xi:include href="electronics.tex" parse="text" />
\begin{tikzpicture}
\coordinate (A) at (90+360/5:1);
\coordinate (B) at (90+2*360/5:1);
\coordinate (C) at (90+3*360/5:1);
\coordinate (D) at (90+4*360/5:1);
\coordinate (E) at (90:1);

\draw (A) -- (B) -- (C) -- (D) -- (E) -- (A);
\foreach \x in {(A), (B), (C), (D), (E)}{
\fill \x circle (2pt);
}
\end{tikzpicture}
</latex-image>
</image>
</figure>
Expand Down
42 changes: 0 additions & 42 deletions templates/book/source/bookinfo.ptx

This file was deleted.

9 changes: 4 additions & 5 deletions templates/book/source/ch_pretext-features.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@
description.</description>
</image>
</figure>
<figure xml:id="figure-tikz-electronics">
<caption>TikZ Electronics Diagram</caption>
<image xml:id="tikz-electronics">
<description>A pile of electronic components wired
together</description>
<figure xml:id="figure-tikz-example-diagram">
<caption>The graph <m>C_5</m> made by TikZ</caption>
<image xml:id="tikz-example-diagram" width="20%">
<description>A 5-cycle</description>
<latex-image>
\begin{tikzpicture}
\coordinate (A) at (90+360/5:1);
Expand Down
40 changes: 40 additions & 0 deletions templates/book/source/sec_firstch-examples.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,45 @@
</p>
</example>

<p>
Although the next things are not examples, they give examples of blocks that are not examples. First a theorem.
</p>

<theorem xml:id="thm-example-theorem">
<title>Theorem Title</title>
<statement>
<p>
This is the statement of the theorem.
</p>
</statement>
<proof>
<p>
And this is its proof.
</p>
</proof>
</theorem>

<corollary xml:id="cor-example-corollary">
<statement>
<p>
A corollary that doesn't need a proof.
</p>
</statement>
</corollary>

<p>
Perhaps at the end of the section, you want to summarize your important theorems.
</p>

<assemblage xml:id="assemblage-summary">
<title>Important Theorems</title>
<p>
List important results here.
</p>
</assemblage>

<p>
Of course, if you want more information, you might see <xref ref="thm-example-theorem"/>.
</p>
</section>

0 comments on commit f6c4a6f

Please sign in to comment.