On Aug 4, 4:58 pm, "M.Olson" <[email protected]> wrote:
> I have a very SIMPLE example of generating random dyadic
> operations ... let's use addition. ...
Hi, I would tackle this entirely different. I would code the randomness
+the solutions in python, part of sagetex, and just insert markers
into the latex code where the example should go (an example is
basically a map of "ID"s <-> problem-data-structure). coding the
random generation inside the latex document is bad, because you cannot
reuse the code and as you say you don't get the solutions.
In detail, you could parameterize each generated latex document with a
number (serving as a random seed). then, there is an option to print
the question, question+answer or just the answer. in the latex code is
something like "\insertProblem{ID_STRING}" and that calls a python
function that generates the latex code and does everything else. Of
course, I never thought this through but i think it might work very
well.
H
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---