I used to do this, make a hundred "different" but "similar" worksheets for
my College Algebra students. I used C++ to generate the exercises, then
have C++ write a .tex file, then compile.
I can help more with the questions of "why" and "what makes a good set of
exercises," although I can also help with the technical aspects.
I tried everything, including making all of the odd exercises the same
across the set of worksheets, but all of the even exercises different. I
also worked on different schemes for giving the answers.
The main reason I stopped doing it was that I found that "randomly" is not
the best way to choose a set of exercises. I would often see worksheets
where adjacent exercises were too similar, and it felt like busywork.
I spent the last five years working on what makes a good set, and how one
would find it.
Let me know if there is help I can give.
Brad
On Saturday, February 23, 2013 6:06:27 PM UTC-6, Nathan Carter wrote:
>
>
> That's handy for outputting strings, but unfortunately because the .sout
> file puts everything in a \newlabel{} command, it still can't handle
> paragraph breaks. So all my problems would need to be one paragraph. I
> could use \\ to split paragraphs primitively, and display math *does* work,
> so it's progress! :) Not perfect yet, but usable---good tip, thanks, Jason!
>
> Also, I had looked for something like \sagestr in the manual, but I was
> looking at this version:
>
> http://www.math.washington.edu/tex-archive/macros/latex/contrib/sagetex/sagetexpackage.pdf
> Turns out that one's ancient, and the latest is here:
> http://cdn.bitbucket.org/ddrake/sagetex/downloads/sagetex.pdf
> Now I see \sagestr, and lots of other cool new tools that weren't around
> in, uh, 2009. :)
>
> On Saturday, February 23, 2013 5:23:12 PM UTC-5, Jason Grout wrote:
>>
>> On 2/23/13 4:11 PM, Nathan Carter wrote:
>> >
>> > Harald's idea sounds like a great one, so I tried to implement it. I
>> > have no problem creating Python objects with arbitrary _latex_()
>> > methods, but then there's no way to insert them into the document. The
>> > only way to get Sage output into the document is with the \sage{...}
>> > command, which seems to be built only for inline and in math mode. You
>> > can't, for example, create an object whose LaTeX representation is
>> > several paragraphs long, with display math and so on in it, and then
>> try
>> > to do \sage{thatObject}. You get a ton of errors of various kinds,
>> > including ones about paragraph breaks in places they shouldn't be.
>> >
>> > Doing it this way (creating Python objects to store the problems) was
>> > important to me, because I hoped to create a solution that didn't just
>> > generate random problems each time the document was compiled, but also
>> > (a) automatically generate several versions of the exam/worksheet in
>> the
>> > same LaTeX document (concatenated), and (b) permute the problems
>> > differently in each version. Is this hopeless or does someone here
>> know
>> > a relevant SageTeX trick that I don't?
>> >
>>
>> One thing you might do is use \sagestr to just include the output
>> directly into the tex file, without running the _latex_ method. See
>> page 6 of the sagetex manual.
>>
>> Jason
>>
>>
--
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-edu?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.