Skip to main content
Logo image

PreTeXt Sample Book Abstract Algebra (SAMPLE ONLY)

Section 3.28 SPLICE Integration

SPLICE is a project to supply documentation and infrastructure to help with adopting shared standards, protocols, and tools for web-based learning tools. The project has designed a protocol for an embedded iframe to communicate with its host page.
One aspect is the ability of an iframe to ask for a new size. Below is a test of that capability.
These are examples that use the SPLICE protocol for communicating with a server, such as Runestone. They are all integrated into this PreTeXt book as an <interactive> that uses an @iframe attribute to embed an iframe from some other server.
This first sample tests the ability of an iframe to ask for a new size.
The next uses CodeCheck.
Figure 3.28.1. CodeCheck iframe
And the remaing four are from the OpenDSA project.
Figure 3.28.2. Stack pop slideshow
Figure 3.28.3. A List Insertion Exercise
Figure 3.28.4. A Binary Search Exercise
Figure 3.28.5. Dijkstra’s Algorithm Exercise
(2025-11-05) The following two exercises are strictly EXPERIMENTAL. Do not incorporate them into your projects as they are likely to change dramatically.

Checkpoint 3.28.6. Finding the average velocity of a moving object from data (dual, Doenet).

Checkpoint 3.28.7. OpenDSA List Insertion (Dual).

Work this following problem. Note that this is really just a test to see if additional text (beyond an <interactive>) will show up.
This example recreates the Show-Eval visualization from the Runestone Components, using a PreTexT <interactive>. It also records student activity using SPLICE.
It demonstrates how the Show-Eval tool can be used to visualize the evaluation of Python expressions step by step.
This could also be used for doing similar visualization of mathematical expressions. Support for MathJax would take some work, but this example would be a good starting point.
Figure 3.28.8. Show-Eval Visualization