I've spent most of two days trying to get SageTeX to integrate
properly with TeXShop (including re-installing all of Sage), but I'm
still having some trouble. I haven't gotten farther than compiling
the example that comes with SageTeX (in the texmf -> tex -> generic ->
sagetex folder). Without changing anything in the file, it compiles
fine in TeXShop (compile in TeXShop, then use command prompt to run
sage on example.sage, then compile again in TeXShop). In fact, I can
add another simple Sage code to the end (say $\sage{2+2}$) and add the
"%!TEX TS-program = sage" command to the beginning, and it will run
Sage inside of TeXShop and work fine!
The problem comes from when I try to add the simple command $
\sage{2+2}$ to the beginning of the document (right after \maketitle,
for example). Then I get a very strange error:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.417 ..., Sage should remember that $a = \sage{a}
$ and be able to use
(I should note that until I clicked on this to copy it, it said "$"
everywhere it now says "\endgroup" which I think is very strange in
itself.)
Now, I haven't changed anything in the file except for what I've told
you (so I assume you can reproduce it without me attaching the file).
Please help! I would very much like to be able to use Sage flawlessly
within Tex files, but even on other very simple Tex files that involve
Sage, I keep getting errors.
Operating System: Mac OS X 10.6.4
Version of Sage: Version 4.5
Method: Binary Build
Another brief question I have is: why does sagetex put files needed
for a tex file (like graphics files) in my root directory (Macintosh
HD)? It seems like a really odd place to have all of these files
piling up, and what if I have two different example.tex files? Will
the images for both be copied into the "sage-plots-for-example.tex"
folder?
Thank you in advance for your help! :)
~Katie Johnson
--
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-support
URL: http://www.sagemath.org