On Fri, 28 Aug 2009 at 03:36AM -0700, pang wrote:
> moodle can use the latex in the computer, then you can write latex
> directly in any moodle page, including wiki.
> 
> On the other hand, sagetex allows to use sage inside latex documents.
> 
> If you install sagetex and adequately configure the latex inside
> moodle, would this be sage-moodle integration?

That's an interesting idea. I'd never thought of that.

It depends on what you want when you say "integration". When you have
some LaTeX with SageTeX commands in it, here's what you do to typeset
it:

  * Run LaTeX as usual. SageTeX commands come up as "??"
  * Run Sage on the generated .sage file. This creates a .sout file with
    LaTeX stuff in it.
  * Run LaTeX again, which uses the .sout file to include all the
    Sage-computed information.

To make this work from Moodle, you would need to alter the script that
runs LaTeX, which should be easy. Then, from Moodle you could use
SageTeX commands.

This is a rather dilute, second-order integration, since Moodle never
really does anything with Sage, and the only way to get Sage to do
anything for Moodle is to write some LaTeX. But it would be pretty cool
to set up.

I think most people want Sage to evaluate answers to quizzes and so on,
which this method wouldn't help you with. But, as the main author of
SageTeX, I'd like to see this method work!

Dan

-- 
---  Dan Drake <drake at kaist dot edu>
-----  KAIST Department of Mathematical Sciences
-------  http://mathsci.kaist.ac.kr/~drake

Attachment: signature.asc
Description: Digital signature

Reply via email to