This post was merged with Multiple versions of the same card
Go to parent post →Random Numbers in KATEX
Someone already mentioned a version of this, but it was named under a confusing title that is hard to find. Something about “multiple versions of flashcards”.
Presently we have close flashcards in KATEX formatting which allows us to do things like
${{c1::\x^2}}$
It would be nice if we could have some implementation similar to the pgf package for latex.
$
\newcommand\x{\randbetween{1}{10}}
{{c1::\x^2}}
$
The absence of this feature seems to be a result of choosing KATEX over LATEX, and it would be really nice to have the flashcard recalculate all of the coefficients each time that they are called in the deck. It would be doubly nice if you could choose a random command to execute out of an array:
$
\newcommand\x{\randbetween{1}{10}}
\rand{\sin{\x},\cos{\x}}
$
Maybe the latter point is mere wishful thinking. I think it would be useful in the context of being able to create a card that generates a random equation, and asks you to solve the derivative for it.
Subscribe to post
Get notified by email when there are changes.