I do use LaTex to learn Mathematics. But I don’t really use spaced repetition. Instead, I separate notes into three categories: permanent notes, fleeting notes, and literature notes. (Credit to Beau Haan) In a nutshell, I do spew text in fleeting notes on every theorem I encountered in math books. After done spew text, I summarize what I wrote into rem which forms the permanent notes. Then I organize these permanent notes under concept rem. Often, I get inspired there and write more permanent notes or fleeting notes.
Structure:
Literature notes: Theorems, formulas. Everything important from the Math book.
Fleeting notes: It’s basically my spew texts; It’s also where I breakdown theorems into pieces and linking back to previous theories; It’s also my random thoughts on the topic.
Permanent notes: well-articulated summarization of my fleeting notes. (I often keep the permanent notes in fleeting notes as well)
Benefit:
Messing around in fleeting notes makes you more daring to face difficult problems.
Fleeting notes to permanent notes allows different granularities of information to be presented.
Writing in fleeting notes, utilizing the indentation, will help you freely break down a complex problem into manageable pieces.