On Sunday, July 15, 2012 5:08:08 PM UTC-4, Justin C. Walker wrote: > > And a followup: > > On Jul 15, 2012, at 13:56 , Justin C. Walker wrote: > > > This deals with the use of SageTeX on Mac OS X/TeXShop, so if that's not > of interest, feel free to delete and move on. > > > > I just got finished a long detour into using SageTeX with TeXShop on Mac > OS X, and have a question and a couple of comments. > > > > It's been mentioned here that SageTeX changed, between the Sage 4.x and > Sage 5.x, the naming of the intermediate sage files produced during > typesetting. > > > > The impact of this for the Mac world is that the TeXShop engine that is > provided for SageTeX has to change. > > > > So the question is: is this change necessary? Is it the first of many? > I did a quick check of Trac and didn't see anything pertaining to this > change (although my facility with the Trac search scheme is not always that > productive). > > > > That's more than one question, so I should add one more to round up to > an even three: > > Is it sufficient to do something like this in the TeXShop's sage engine: > > XXX=`sage -version` > > if "first character" is < 5 > > then > > use old naming convention > > else > > use new naming convention > > fi > > ? > > My comment: in the doc section on TeXShop, it is mentioned that one should > add the line > %!TEX TS-program = sage > at the top of the document. I think the discussion should be changed to > something like > > "Once the file `sage.engine' is placed in the `Engines' directory, TeXShop > should be restarted so that it recognizes the new engine. The engine is > invoked in one of two ways. The first is by selecting it in the pulldown > menu to the right of the "Typeset" button. The second is to put the > following line > %!TEX TS-program = sage > with the first 12 lines at the beginning of the .tex file in question. > Note that, in this line, there must be exactly one space on either side of > the "="." > > Should I open a ticket? > >
Yes! I use SageTeX fairly regularly in precisely this way, and even updating the most recent time was annoying. Basically, one has to upgrade the SageTeX installation every time it changes in Sage, but this sometimes causes weird messages (which I don't have because I was able to do it, eventually). The stuff about the engines and the %!TEX business are rather underdocumented. Since I figure I'm a (relatively) experienced Sage user, this shouldn't cause me that much trouble, but it does, so I can only guess what others might have to do. Unfortunately, I'm not an experienced enough TeX macro person to know whether you directions are correct and have every detail, though this seems right. -- -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org