I’ve tried to make sense of these two pages:
yingtongli dot me’s website
SimonLammer’s anki-persistence github page
The first one I can’t get anything to work. The second one, I just don’t understand it. I wanted to make some math problem with changing input and use mathjax to display the math symbols properly. I can’t figure it out for the life of me. Any example decks that can help me understand would be greatly appreciated.
Instead of the second (anki-persistence), you can do the following:
Create a new card object property on the front in a script and assign a value to it. This value will be passed to the back of the card.
card.number = 6 // assign any value you need
var myNumber = card.number // 6 will be passed to this variable
I don’t understand your directions, I apologize. How do I do what you are suggesting? What is “create a new card object property”? My google skills and anki knowledge seem bad in this realm. I apologize and I appreciate any help.
However, this is not cross platform. For a solution that works everywhere, you should really use anki-persistence instead.
Maybe something simpler to do would be if you could post one example of a math problem with all the possible inputs / outputs, and we can provide the correct code to make it work as you want it to.
Thanks for your time. If I could get an example of how to do this with persistent numbers on the front and back without having to create a new card for each problem - would be awesome. I’ll take it and run with it. I want to create the formula in a field and then set up the mathjax calling the variables in front and back.