You can access the current PreTeXt version of my IBL Modern Algebra text (coauthored with Melissa Lindsey). The book is open source, and the code is available on GitHub.
In which I explain what we are doing here