> When I typed   latex.add_to_preamble()  I received a message saying that I 
> needed to provide two parameters.  When I typed the command without the (), I 
> got:
>
> \newcommand{\Bold}[1]{\mathbf{#1}}\hbox{ < bound method Latex.add_to_preamble 
> of  < sage.misc.latex.Latex instance at 0x10af7d2d8 >  > }
>
> which I'm guessing is what was supposed to happen.

I was being too sloppy and you were being too literal - you have to
have something to add.  ;-)  It's really just one parameter, its a
Python/object-oriented thing that gives a misleading error message.

Try:

sage:  latex.add_to_preamble?

to get help.  In there you will see examples such as:

latex.add_to_preamble("\\usepackage{xypic}")

Note the *double* backslash, where the first "escapes" the second one.

> > Try at a system prompt:
> > $ kpsewhich tikz.sty
> > /home/rob/texmf/tex/generic/pgf/tikz.sty
>
> Here is what I got:
>
> /usr/local/texlive/2008/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
>
> but I'm not sure if this means that sage can't find latex or not.

That looks just like it should, but then doesn't help explain why Sage
may not be seeing your TeX installation.
-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-edu+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en.


Reply via email to