1. PreTeXT
Write Once, Read Anywhere
30th Annual ICTCM
Washington DC
March 15–18, 2018
Bruce Yoshiwara
2. What is PreTeXt?
A lightweight XML application for authors of research articles, textbooks and
monographs.
The best of DocBook, LaTeX, and HTML.
Outputs: print, PDF, web, and soon, EPUB, Jupyter Notebooks
http://mathbook.pugetsound.edu/
3. Example: College algebra textbook
Modeling, Functions, and Graphs by Katherine Yoshiwara
https://byoshiwara.github.io/MFG-dev/chap1.html
Or via AIM: https://aimath.org/textbooks/approved-textbooks/yoshiwara/
4. Aside: AIM Open Textbook Initiative
The American Institute of Mathematics maintains a list of approved open math
textbooks and encourages the development and adoption of quality open software
and textbooks.
https://aimath.org/textbooks/
5. Example: Assembly language textbook
Bob Plantz: Introduction to Computer Organization: ARM
Assembly Language Using the Raspberry Pi
http://bob.cs.sonoma.edu/IntroCompOrg-RPi/exercises-8.html
6. Aside
The Knowl was developed by the American Institute of Mathematics.
https://aimath.org/knowls-browsing/
7. Example: Community college algebra textbook
ORCCA: Open Resources for Community College Algebra
http://www.greenprecalc.com/precalc1-MHCC/activity-composition.html
Exercise 7.1.5
http://spot.pcc.edu/math/orcca/section-set-notation-and-types-of-numbers.html
https://webwork.pcc.edu/webwork2/orcca-demonstration/
8. Aside: Open source homework systems
WeBWorK http://webwork.maa.org/
MyOpenMath https://www.myopenmath.com/
D. Brian Walton javascript http://educ.jmu.edu/~waltondb/webapp/Sampler.html
10. Aside: UTMOST initiative
https://utmost.aimath.org/
The Undergraduate Teaching in Mathematics with Open Software and Textbooks
project, funded by the NSF, to investigate how students and faculty actually use
textbooks in undergraduate mathematics courses, and to use that understanding
to produce textbooks that are more effective in promoting student learning. The
major components of the project involve education research, resource
development, dissemination, and evaluation.
11. Example: Abstract algebra textbook
Tom Judson’s Abstract Algebra: Theory and Applications
http://abstract.pugetsound.edu/aata/permute-sage.html
12. Example: Linear algebra textbook
Rob Beezer’s Linear Algebra
http://linear.ups.edu/fcla/section-MM.html
13. Example: Class project
Geodesics on a flat torus https://faculty.math.illinois.edu/~bradlow/torus-
geodesics.html
Jayadev S. Athreya, Robert A. Beezer, Julia Borchardt, Steven B. Bradlow
17. Example: Client-side exercises
D. Brian Walton: “client-side dynamically generated and checked practice
problems...I now have proof-of-concept problems working, where the problems
are defined in XML and a javascript "library" generates and displays the problem
and then checks the submitted answer.”
http://educ.jmu.edu/~waltondb/webapp/Sampler.html
21. Aside: What’s involved with coding?
● Use a plain text editor for source file.
● Use GitHub to get and update Rob Beezer’s tools
● Use a command line to process the source file
● Use PreTeXt google groups for support
Editor's Notes
There are numerous links here.
I’ll be focusing on the web output. The idea is that you create a single plain text document (or set of linked plain text documents), and, via PreText tools, you can convert that one document into LaTeX or an html version suitable for the small screens of portable devices.
My involvement is limited to coding my wife’s textbook into PreTeXt to produce an online version. Notice the navigation bar/TOC on the left in full computer screen. The layout is determined syntactically--the author marks what is a chapter, section, sub-section, theorem, proof, exercise, solution, etc. Note the adjustment when the browser width narrowed sufficiently.
Kathy’s book is the only dev math book approved by AIM so far. We’ll encounter AIM again soon in this presentation.
Rob needed to abandon the name Mathbook xml because it the tool was being used by other disciplines, including music and poetry. When I asked on the PreTeXt support group if anyone wanted me to show off some of their work, this was the only non-math response. This book is written on and for the ($50) Raspberry Pi. Most students buy their own Raspberry Pi--whatever computer hardware you have will be adequate for running PreTeXt.
You can incorporate knowls on webpages of your own without PreTeXt software.
Matt’s book is another on both the PreTeXt gallery and the AIM approved open textbook list. It was written as a collaboration and is currently the focus of an effort to design an efficient means for a large team to collaborate on revising a textbook.
AATA was the first textbook to be coded in Mathbook xml, which is now called PreTeXt (a name giving some homage to TeX). It is also featured in the PreTeXt gallery and the AIM list of approved open textbooks. Tom makes extensive use of SageMathCells...
Rob is the principal developer of PreTeXt. His Linear Algebra book is on the AIM list of approved Open textbooks.
This is a relatively short example of using PreTeXt.
Alex Jordan and David Farmer are making a sophisticated graphing utility readily available within a PreTeXt html output.
David Lippman’s MyOpenMath exercises are importable.
D. Brian Walton has a proof-of-concept for online exercises that are checked client-side.