#5555: [with patch, not ready for review] make some TeX macros available to
docstrings
---------------------------+------------------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: enhancement | Status: new
Priority: minor | Milestone: sage-3.4.1
Component: documentation | Keywords:
---------------------------+------------------------------------------------
Comment(by jhpalmieri):
Now I need help. 'new-macros.patch' doesn't work, and I don't know why.
When I run it, I get the error message
{{{
% sage -docbuild reference html
sphinx-build -b html -d
/Applications/sage/devel/sage/doc/output/doctrees/en/reference .
/Applications/sage/devel/sage/doc/output/html/en/reference
Exception occurred:
File "<string>", line 1, in <module>
NameError: name 'sage' is not defined
The full traceback has been saved in
/var/folders/JV/JVYCpshdHd4FFoThuUgD8k+++TI/-Tmp-/sphinx-err-l-jOy1.log,
if you want to report the issue to the author.
Please also report this if it was a user error, so that a better error
message can be provided next time.
}}}
This is coming from the line
{{{
defn += eval('str(latex(' + module + "." + name + args + '))') + '}'
}}}
which, for example, doesn't seem to like doing this:
{{{
eval('str(latex(sage.rings.all.ZZ))')
}}}
(A few lines earlier, {{{from sage.misc.latex import latex}}} seems to be
perfectly acceptable.)
When I run sage and "attach conf.py", then the function
{{{produce_latex_macro}}} works just fine. I'm probably making some
stupid Python mistake. Can anyone help?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5555#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---