Forum Discussion
How to add Accessible Mathematics to your rise course. (Including Super and Sub Scripts and Formulas)
Edit 1: Updated with JS to check for dynamically created content.
Edit 2: Updated with /content/lib/main.bundle.js script injection needed for continue buttons and other dynamic content.
Here are the steps to follow for creating accessible Math in rise:
- Use the following site to create your math latex formula: https://www.codecogs.com/latex/eqneditor.php and to confirm the equation displays the way you want. An example of a formula might be x^{2} = \frac{2}{y} which is “x² = 2 / y”
- Copy your latex formula into Rise where you want it, but add “$$” before and after, so: $$x^{2} = \frac{2}{y}$$
- Do this for all equations until you publish.
- After publishing, extract the zip file and open index.html
- After the <head> tag, insert the following Javascript:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'></script>
<script type="text/javascript">
// Inspect the array of MutationRecord objects to identify the nature of the change
function mutationObjectCallback(mutationRecordsList) {
mutationRecordsList.forEach(function(mutationRecord) {
if ("attributes" === mutationRecord.type) {
}
});
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
// Create an observer object and assign a callback function
var observerObject = new MutationObserver(mutationObjectCallback);
// the target to watch, this could be #yourUniqueDiv
// we use the body to watch for changes
var targetObject = document.body;
// Register the target node to observe and specify which DOM changes to watch
observerObject.observe(targetObject, {
attributes: true,
attributeFilter: ["id", "dir"],
attributeOldValue: true,
childList: true
});
</script>
6. Finally, in /content/lib/main.bundle.js search for the following code:
return e.createElement("div", null, this.props.children)
and add the following right before it:
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
- RichardBennett-Community Member
One more voice...PLEASE??? It's the only thing holding me back from rapid authoring in Rise.
- NicoleLegault1Community Member
Thanks for adding your voice, Tati!
- AndyLoiselleCommunity Member
Beautiful! But a bit of a pain, when MathJax could be included in Rise's source codes. Thanks guys for all the great info! Also I changed the script to : <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'></script> Since 2.7.5 seems to be the latest version. My issue lies with the very soft tools of Microsoft (as usual) since Edge doesn't display the equations properly. Ya! we could think 'who uses Edge?' but some students that are lesser computer trained do...
- AndyLoiselleCommunity Member
May I add that after a few readings, I found out that it looks like the W3C is pushing MathML on browser developers. Perhaps a MathML entry widget could be a possible and great solution in the upcoming future. ;)
- NesJonesCommunity Member
Another +1 for a Rise math equation editor
- DanielFrancesCommunity Member
+1 for an Equation editor in Rise (please!)
- TaniaNikolaevaCommunity Member
+1 to formulas editor in Rise
- WesEllisCommunity Member
I work for a medical association, and having a built-in formula editor in Rise to add formulas in-line would really help us -- especially for our physics-related content.
I can see many others have been requesting this feature for quite some time. Are there any plans to incorporate such a feature?
Thanks for asking about this feature, Wes. A mathematical equations feature isn't on our roadmap for Rise 360 right now, but we'll let you know if that changes!
- WesEllisCommunity Member
Thank you for your response, Alyssa. I'll keep the Articulate 360 roadmap page bookmarked!
- SimonBailey-906Community Member
Thanks John for you efforts. We do need a proper math editor in Rise though. This solution is not scalable across dev teams and faculty at our institution.