import sage.misc.latex as l
l.LATEX_HEADER+='\\def \\foo {FOO defined successfully}\n'

does indeed define a macro \foo
that can be used from a %latex cell in the notebook.

I am having no luck with tixz so far.
I tried

l.LATEX_HEADER+='\\def \\pgfsysdriver {pgfsys-dvips.def}\n\\usepackage
{tikz}\n\\usetikzlibrary{arrows,shapes,fit,calc,positioning,scopes}\n'

maybe sombody sees my mistake?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to