• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版d2f3f1570e0d15edb61781199966843d260b334a (tree)
时间2017-08-25 17:08:05
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A self-contained example I can run with pdflated to generate a rule based tree.

更改概述

差异

diff -r b22964bca8b0 -r d2f3f1570e0d latex-documents/rule-based-diagram.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/rule-based-diagram.tex Fri Aug 25 10:08:05 2017 +0200
@@ -0,0 +1,175 @@
1+% Rule based diagram
2+% Author: Remus Mihail Prunescu
3+\documentclass{minimal}
4+\usepackage[a4paper,margin=1cm,landscape]{geometry}
5+\usepackage{tikz}
6+
7+%%%<
8+\usepackage{verbatim}
9+\usepackage[active,tightpage]{preview}
10+\PreviewEnvironment{tikzpicture}
11+\setlength\PreviewBorder{5pt}%
12+%%%>
13+
14+\begin{comment}
15+:Title: Rule based diagram
16+
17+\end{comment}
18+
19+\usetikzlibrary{positioning,shadows,arrows}
20+
21+\begin{document}
22+\begin{center}
23+\begin{tikzpicture}[
24+ fact/.style={rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
25+ text centered, anchor=north, text=white},
26+ state/.style={circle, draw=none, fill=orange, circular drop shadow,
27+ text centered, anchor=north, text=white},
28+ leaf/.style={circle, draw=none, fill=red, circular drop shadow,
29+ text centered, anchor=north, text=white},
30+ level distance=0.5cm, growth parent anchor=south
31+]
32+\node (State00) [state] {$S_{00}$} [->]
33+ child{
34+ node (Fact01) [fact] {$T_{01}$}
35+ child{ [sibling distance=9cm]
36+ node (State01) [state] {$S_{01}$}
37+ child{
38+ node (Fact02) [fact] {$T_{02}$}
39+ child{ [sibling distance=4cm]
40+ node (State02) [state] {$S_{02}$}
41+ child{
42+ node (Fact03) [fact] {$T_{03}$}
43+ child{
44+ node (State03) [leaf] {$S_{03}$}
45+ }
46+ }
47+ child{
48+ node (Fact04) [fact] {$T_{04}$}
49+ child{ [sibling distance=1.2cm]
50+ node (State04) [state] {$S_{04}$}
51+ child{
52+ node (Fact05) [fact] {$T_{05}$}
53+ child{
54+ node (State05) [leaf] {$S_{05}$}
55+ }
56+ }
57+ child{
58+ node (Fact06) [fact] {$T_{06}$}
59+ child{
60+ node (State06) [leaf] {$S_{06}$}
61+ }
62+ }
63+ child{
64+ node (Fact07) [fact] {$T_{07}$}
65+ child{
66+ node (State07) [leaf] {$S_{07}$}
67+ }
68+ }
69+ child{
70+ node (Fact08) [fact] {$T_{08}$}
71+ child{
72+ node (State08) [leaf] {$S_{08}$}
73+ }
74+ }
75+ child{
76+ node (Fact09) [fact] {$T_{09.0}$}
77+ child{
78+ node (Fact09-1) [fact] {$T_{09.1}$}
79+ child{
80+ node (State09) [leaf] {$S_{09}$}
81+ }
82+ }
83+ }
84+ }
85+ }
86+ }
87+ }
88+ child{ [sibling distance=4cm]
89+ node (Fact10) [fact] {$T_{10}$}
90+ child{
91+ node (State10) [state] {$S_{10}$}
92+ child{
93+ node (Fact11) [fact] {$T_{11}$}
94+ child{
95+ node (State11) [leaf] {$S_{11}$}
96+ }
97+ }
98+ child{
99+ node (Fact12) [fact] {$T_{12}$}
100+ child{
101+ node (State12) [state] {$S_{12}$}
102+ child{
103+ node (Fact13) [fact] {$T_{13}$}
104+ child{
105+ node (State13) [leaf] {$S_{13}$}
106+ }
107+ }
108+ child{
109+ node (Fact14) [fact] {$T_{14}$}
110+ child{ [sibling distance=3cm]
111+ node (State14) [state] {$S_{14}$}
112+ child{
113+ node (Fact15) [fact] {$T_{15}$}
114+ child{
115+ node (State15) [leaf] {$S_{15}$}
116+ }
117+ }
118+ child{
119+ node (Fact16) [fact] {$T_{16}$}
120+ child{
121+ node (State16) [leaf] {$S_{16}$}
122+ }
123+ }
124+ child{
125+ node (Fact17) [fact] {$T_{17}$}
126+ child{ [sibling distance=1.2cm]
127+ node (State17) [state] {$S_{17}$}
128+ child{
129+ node (Fact18) [fact] {$T_{18}$}
130+ child{
131+ node (State18) [leaf] {$S_{18}$}
132+ }
133+ }
134+ child{
135+ node (Fact19) [fact] {$T_{19}$}
136+ child{
137+ node (State19) [leaf] {$S_{19}$}
138+ }
139+ }
140+ child{
141+ node (Fact20) [fact] {$T_{20}$}
142+ child{
143+ node (State20) [leaf] {$S_{20}$}
144+ }
145+ }
146+ child{
147+ node (Fact21) [fact] {$T_{21}$}
148+ child{
149+ node (State21) [leaf] {$S_{21}$}
150+ }
151+ }
152+ child{
153+ node (Fact22) [fact] {$T_{22.0}$}
154+ child{
155+ node (Fact22-1) [fact] {$T_{22.1}$}
156+ child{
157+ node (State22) [leaf] {$S_{22}$}
158+ }
159+ }
160+ }
161+ }
162+ }
163+ }
164+ }
165+ }
166+ }
167+ }
168+ }
169+ }
170+ }
171+;
172+
173+\end{tikzpicture}
174+\end{center}
175+\end{document}
\ No newline at end of file