On Jul 12, 1:22 am, Rob Beezer <goo...@beezer.cotse.net> wrote:
> Taxman,
>
> Thanks for the report.  Current behavior is to support latex versions
> of graphs by adding two "\usepackage" commands to the preamble.  It is
> possible  tkz-arith.sty  should also be added, and maybe something
> bigger like  tikz  and  pgf.
>
> Also, the documentation could perhaps be improved by specifying just
> what a tex environment needs to have so a standalone document will
> compile when a sage latex-version graph is incorporated.
>
> I don't think dvipng being present, or not, is relevant here, since
> that merely affects if a PNG or PDF image gets created - it comes
> after latex does its complaining.
>
> Sample code below may help with understanding/debugging this
> situation.  This is now
>
> http://trac.sagemath.org/sage_trac/ticket/6516
>
> Rob
>
> ~~~~~~~~~~
> sage: latex.extra_preamble()
> ''
> sage: g=graphs.PetersenGraph()
> sage: latex.extra_preamble()
> '\\usepackage{tkz-graph}\\usepackage{tkz-berge}'
> sage: latex
> (g)
>
> \begin{tikzpicture}
> <snip lots of latex graph code>
> \end{tikzpicture}

Rob, indeed excellent ideas since tkz-arith.sty did seem to be needed
along with the two other packages, but only two \\usepackage commands.
My tex installation automatically had pgf and tikz, but those would
probably also be good things to include for clarity along with moving
the documentation about how to check if they are installed such as
check_tkz_graph() and have_tkz_graph() from
http://www.sagemath.org/doc/reference/sage/graphs/graph_latex.html to
perhaps the top explanatory part or another howto. Also I had no idea
where to put tkz-berge, tkz-gerge, etc. I just guessed, and it
happened to work after I figured out I needed texhash.

Also the standalone document suggestion is good too, perhaps all the
way up to a full minimal header or a full minimal document for those
that want to include a Sage generated graph into their documents with
the greatest of ease.

And if dvipng wasn't the change I certainly can't think of anything
else that caused the Unknown environment "tikzpicture" error to go
away.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to