Ticket #8105: mini-graph.tex

File mini-graph.tex, 1.5 KB (added by rbeezer, 12 years ago)

tkz-graph example unrecognized by tex4ht

Line 
1
2\documentclass{article}
3
4%%%  Minimal example of tkz-graph code unrecognized by tex4ht
5%%%  Call as
6%%%
7%%%  htlatex mini-graph.tex "../tex2sws/tex4ht-sage.cfg" " -cmozhtf"
8
9%%% Allows pdflatex version for comparison
10%%% Set to false for PDF
11\usepackage{ifthen}
12\newboolean{worksheet}
13\setboolean{worksheet}{true}
14
15% This will cause tex4ht and PGF (the tikz backend)
16% to cooperate in the production of SVG graphics
17% and associated wrappers in the output
18\ifthenelse{\boolean{worksheet}}
19{\def\pgfsysdriver{pgfsys-tex4ht.def}}
20{\relax}
21
22\usepackage{tikz}
23\usepackage{tkz-graph, tkz-berge}
24
25
26%
27\begin{document}
28
29%% This is output from Sage's latex(<graph>) routine
30\begin{tikzpicture}
31%
32\definecolor{col_a0}{rgb}{1.0,1.0,1.0}
33\definecolor{col_a1}{rgb}{1.0,1.0,1.0}
34\definecolor{col_a2}{rgb}{1.0,1.0,1.0}
35%
36%
37\definecolor{col_lab_a0}{rgb}{0.0,0.0,0.0}
38\definecolor{col_lab_a1}{rgb}{0.0,0.0,0.0}
39\definecolor{col_lab_a2}{rgb}{0.0,0.0,0.0}
40%
41%
42\definecolor{col_a0-a1}{rgb}{0.0,0.0,0.0}
43\definecolor{col_a1-a2}{rgb}{0.0,0.0,0.0}
44%
45%
46\GraphInit[vstyle=Normal]
47%
48\SetVertexMath
49%
50\SetVertexNoLabel
51%
52\renewcommand*{\VertexLightFillColor}{col_a0}
53\Vertex[x=5.0cm,y=5.0cm]{a0}
54\renewcommand*{\VertexLightFillColor}{col_a1}
55\Vertex[x=2.2222cm,y=0.0cm]{a1}
56\renewcommand*{\VertexLightFillColor}{col_a2}
57\Vertex[x=0.0cm,y=4.1213cm]{a2}
58%
59%
60\AssignVertexLabel{a}{3}{
61\color{col_lab_a0}{$0$},
62\color{col_lab_a1}{$1$},
63\color{col_lab_a2}{$2$}
64}
65%
66%
67\renewcommand*{\EdgeColor}{col_a0-a1}
68\Edge(a0)(a1)
69\renewcommand*{\EdgeColor}{col_a1-a2}
70\Edge(a1)(a2)
71%
72%
73\end{tikzpicture}
74
75\end{document}
76
77
78
79