| 1 | initial version |
Unfortunately, it seems this is a known problem in SageTeX. See this TeX.SX question, among others. The answer to this by the author of SageTeX on a Sage group is not that encouraging since it's a TeX limitation, but there are some potential workarounds that don't involved \newcommand in that thread.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.