[sage-edu] Re: Creating Random Student Worksheets using LaTeX and Sage

2013-02-23 Thread Nathan Carter
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 seem

Re: [sage-edu] Re: Creating Random Student Worksheets using LaTeX and Sage

2013-02-23 Thread Nathan Carter
t 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/

[sage-edu] Getting \def or \newcommand to work with SageTeX

2013-02-26 Thread Nathan Carter
In a thread on creating random exams with SageTeX, I got the idea to make my own .sty file that does some setup and running of Sage commands for me, and lest me define ways to generate random problems, permute them

Re: [sage-edu] Re: Creating Random Student Worksheets using LaTeX and Sage

2013-02-26 Thread Nathan Carter
Now that I have gotten all the SageTeX tools I need set up, I'm planning to start working on this project in earnest. I hit another wall, but it's a separate issue. I started a new topic for it, rather than clutter this one, but I thought I'd link to it here. You know, just to keep the saga

[sage-edu] Re: Getting \def or \newcommand to work with SageTeX

2013-02-26 Thread Nathan Carter
7:50:27 AM UTC-5, Nathan Carter wrote: >> >> In a thread on creating random exams with >> SageTeX<https://groups.google.com/forum/?hl=en&fromgroups=#!topic/sage-edu/DSOk7CH4wB8>, >> >> I got the idea to make my own .sty file that does some setup and runnin

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-02-28 Thread Nathan Carter
multiple versions, and so on, then all of these issues go away. But my goal was to make something better than that, something that could store a problem database and select out and permute/repeat/etc. problems as needed. Nathan On Thursday, February 28, 2013 9:05:45 PM

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-02-28 Thread Nathan Carter
Actually, one tiny clarification: % What each \createproblem{}{}{} command does is run a \sagesilent that > does is the following: > % 1. Ensures that a global problem dictionary is defined; if allProblems > isn't defined globally, do allProblems = {} > % 2. Constructs and stores a new problem

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-03-01 Thread Nathan Carter
ilent environments to work inside \def or \newcommand. If that works, I'll use it and do my original plan. And if it doesn't, I'm giving up with a clean conscience. :) N On Friday, March 1, 2013 12:24:36 PM UTC-5, Dan Drake wrote: > > On Thu, 28 Feb 2013 at 06:46PM

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-03-08 Thread Nathan Carter
tBeginDocument? Not sure if that will work either. TeX is so touchy, and I'm rather new at this. 3. The goal is, of course, to get this nicely packaged into a single .sty file that includes sagetex.sty, and then add the features mentioned above, and then contribute it...someplace. When the ti

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-03-08 Thread Nathan Carter
\gdef\ST@rerun{x}}} \fi} \newcommand{\ST@beginsfbl}{% \@bsphack\ST@wsf{% _st_.blockbegin()^^Jtry:}% \let\do\@makeother\dospecials\catcode`\^^M\active} \newcommand{\ST@endsfbl}{% \ST@wsf{except:^^J _st_.goboom(\the\inputlineno)^^J_st_.blockend()}} \newenvironment{sageblock}{\ST@beginsfbl% \def

[sage-edu] Re: Getting \def or \newcommand to work with SageTeX

2013-03-15 Thread Nathan Carter
Answers/updates: 1. I've made some improvements since the last post (including randomly permuting the problems on an exam, testing and bug-fixing, etc.) but I won't post it here until some additional progress has been made. This isn't exactly the place to "release" something. 2. Dan Drake is he