An EPUB Sampler

Rob Beezer

Colophon Colophon

Website PreTeXt¹

©2016–2021 Robert A. Beezer

Author Biography Biographical sketch with title

This is about the author and has a title.

Author Biography Author Biography

This sketch doesn’t actually have a title in the PreTeXt source.

Dedication Dedication

To all those who like reflowable electronic books.

Acknowledgements Acknowledgements

Mitchel T. Keller has added a number of things to this sampler to continue to stress out the EPUB conversion and make sure it’s all working right.

Chapter 1 One

The quick brown fox jumps over the lazy dog.

Some test cross-references:

To the next chapter: Chapter 2

To a figure much later: Figure 4.1.1

To some multi-line display math later: (2.1.2)

To an abstract algebra textbook: [1]

Chapter 2 Two

This is the introduction to the chapter. We put some math

in here for validation purposes.

Section 2.1 A silly section.

This section just exists so that we can add <introduction> and <conclusion> tags to this chapter.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultricies purus sit amet rutrum dictum. Donec sit amet ligula quis orci vestibulum tempor id in erat. Ut ut placerat lacus, sit amet feugiat lorem. Pellentesque sodales risus at eros malesuada, eget ultrices est consectetur. Praesent fermentum, ligula sit amet fermentum varius, elit eros imperdiet lectus, tempus condimentum quam elit in elit. Sed molestie mauris sem, sed laoreet elit iaculis ut. In mattis blandit ex, nec rutrum purus ullamcorper eget. Nullam maximus magna non elit euismod, non ornare nisl porttitor. Pellentesque commodo tempus viverra.

Curabitur ac hendrerit ligula. Aenean vitae nunc id elit convallis efficitur. Sed ultricies ut justo quis elementum. Sed eget eros venenatis, pellentesque risus sed, fermentum mi. Proin ipsum arcu, porta nec sem sit amet, sollicitudin faucibus erat. Quisque lacus lectus, pellentesque ut imperdiet sed, euismod vitae nibh. Donec dolor diam, elementum ac pharetra vitae, volutpat mollis augue.

Aside . Look at this!

Maecenas ex enim, lobortis et blandit sit amet, pretium in ante. Sed mollis sollicitudin nibh non consectetur. Vestibulum eget tortor sit amet felis iaculis fermentum. Sed eu nisl a urna cursus congue at nec nulla. Mauris lacinia molestie tristique. Maecenas aliquet rutrum venenatis. Vivamus quis metus sit amet est feugiat facilisis quis et massa. Aenean dui sem, dapibus at imperdiet ac, auctor sit amet arcu. Vestibulum eget porttitor est. Aliquam id pellentesque quam, vitae rhoncus metus. In congue condimentum malesuada. Mauris in condimentum eros, eget mattis nibh. Praesent et ex porttitor, lobortis nibh sed, cursus ante. Suspendisse dapibus vel risus eu pellentesque.

We end here with multiline display math to test linking from elsewhere into this multi-page section.

Section 2.2 A Section with Subsections

Subsection 2.2.1 A simple subsection

A subsection in a section.

Exercises 2.2.2 Exercises

1.

A single exercise buried in an exercises division that is a peer of a subsection.

Exercises 2.3 Exercises

1.

A lone exercise in an exercises division that is a peer of a section.

Hint.

Answer.

Solution.

Maecenas ex enim, lobortis et blandit sit amet, pretium in ante. Sed mollis sollicitudin nibh non consectetur. Vestibulum eget tortor sit amet felis iaculis fermentum. Sed eu nisl a urna cursus congue at nec nulla. Mauris lacinia molestie tristique. Maecenas aliquet rutrum venenatis. Vivamus quis metus sit amet est feugiat facilisis quis et massa. Aenean dui sem, dapibus at imperdiet ac, auctor sit amet arcu. Vestibulum eget porttitor est. Aliquam id pellentesque quam, vitae rhoncus metus. In congue condimentum malesuada. Mauris in condimentum eros, eget mattis nibh. Praesent et ex porttitor, lobortis nibh sed, cursus ante. Suspendisse dapibus vel risus eu pellentesque.

Wrapping up.

This is the conclusion.

Chapter 3 A Bit of Math

This paragraph has some inline math, a Diophantine equation, . And some display math about infinite series:

Look at the XML source to see how LaTeX macros are employed.

And a bit of multi-line display math:

And multi-line math with an embedded cross-reference to a figure:

Nice.

Theorem 3.0.1 (Newton, Leibniz). Fundamental Theorem of Calculus.

Let be a continuous function on the interval . If is an antiderivative for on , then

Outcomes

You have read the statement of Fundamental Theorem of Calculus.

You have seen multiline math, and it is awesome.

Chapter 4 Some Images

Objectives

To discuss formats for graphics

To stress test the EPUB conversion with math in here

Section 4.1 Graphics formats

A Portable Network Graphics (PNG) image created externally in Sage and then included directly here.



This is a Cartesian plot with a blue curve that enters from the lower left. It crosses the -axis at about and climbs to reac a peak at about where it flattens out. It continues to the right, now moving downward, and crosses the -axis at , and then crossing the -axis again at . It bends back upward, returning to quadrant I at .

There is also a red curve, a parabola, that enters from the top right. It moves downward, crossing the -axis at and bottoming out at . Then it climbs back up crossing the -axis into quadrant I at , and it rises out the upper right of the plot.

Figure 4.1.1. A cubic polynomial and its derivative

Here we drop a small reference to an equation earlier, notably (3.0.1).

A Scalable Vector Graphics (SVG) image created externally in Sage and then included here as a vector image (no file extension given).

Figure 4.1.2. A complete graph on 16 vertices

A Scalable Vector Graphics (SVG) image described by Sage commands, which is produced by the pretext script.

Figure 4.1.3. A Sage multigraph of a sentence

Figure 4.1.4. TikZ Electronics Diagram

Section 4.2 Additional stress testing

We repeat an image created from an external file, because the EPUB format only wants the file noted once.

We like to put URLs into footnotes, especially for formats like this where they may not be active. This output is from PreTeXt¹².

We make a reference to some math in another chapter (3.0.3) in order to test that validation works for this. We also refer to (2.1.1)

Checkpoint 4.2.1.

A sample exercise, where a <hint> and a <solution> should be visible (rather than in a knowl).

Hint.

Solution.

The whole story with all the details.

This is a <conclusion>. We will follow it with an <outcomes>.

Outcomes: The really awesome things we’ve done!

We just tested if we get this list of outcomes.

Appendix A Maybe the license

Lots of books written in PreTeXt include the terms of their license in an appendix, so let’s use this as a test.

Appendix B List of Figures

4 Some Images

Figure 4.1.1

Figure 4.1.2

Figure 4.1.3

Figure 4.1.4

Appendix C Hints, Answers and Solutions to Exercises

2 Two
2.3 Exercises

2.3.1.

Hint.

Answer.

Solution.

Maecenas ex enim, lobortis et blandit sit amet, pretium in ante. Sed mollis sollicitudin nibh non consectetur. Vestibulum eget tortor sit amet felis iaculis fermentum. Sed eu nisl a urna cursus congue at nec nulla. Mauris lacinia molestie tristique. Maecenas aliquet rutrum venenatis. Vivamus quis metus sit amet est feugiat facilisis quis et massa. Aenean dui sem, dapibus at imperdiet ac, auctor sit amet arcu. Vestibulum eget porttitor est. Aliquam id pellentesque quam, vitae rhoncus metus. In congue condimentum malesuada. Mauris in condimentum eros, eget mattis nibh. Praesent et ex porttitor, lobortis nibh sed, cursus ante. Suspendisse dapibus vel risus eu pellentesque.

References References

[1]

Tom Judson, Abstract Algebra: Theory and Applications.

Note.

Another online, open-source offering.

[2]

David C. Lay, Subspaces and Echelon Forms. The College Mathematics Journal, January 1993, 24 no. 1, 57–62.

Index Index

Diophantine equation, Paragraph

PNG. See Portable Network Graphics

Portable Network Graphics (PNG), Paragraph

Colophon Colophon

This document was authored in PreTeXt to stress test conversion to EPUB. Please do not judge its contents, which randomly has some math in the rear colophon.

Endnotes

1.

This is an aside. Please don’t let it distract you.

A little suggestion.

1.

2. pretextbook.org

Just a little help.