From 73a06a245670e025438e4e9505135e1c8e50efb5 Mon Sep 17 00:00:00 2001 From: randomguy3 Date: Mon, 9 Jan 2012 11:03:45 +0000 Subject: Move the website stuff out of tikzit into trunk git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@367 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64 --- www/htdocs/appcast/rnotes.css | 215 ++++++++++++++++++++++ www/htdocs/appcast/rnotes.html | 260 +++++++++++++++++++++++++++ www/htdocs/appcast/tikzit.xml | 222 +++++++++++++++++++++++ www/htdocs/bnf.txt | 31 ++++ www/htdocs/favicon.ico | Bin 0 -> 62045 bytes www/htdocs/images/apple.png | Bin 0 -> 1832 bytes www/htdocs/images/linux.png | Bin 0 -> 9519 bytes www/htdocs/images/man/bend.png | Bin 0 -> 14132 bytes www/htdocs/images/man/bezier.png | Bin 0 -> 16766 bytes www/htdocs/images/man/bounding_box.png | Bin 0 -> 11588 bytes www/htdocs/images/man/compound.png | Bin 0 -> 21884 bytes www/htdocs/images/man/new_edge.png | Bin 0 -> 9807 bytes www/htdocs/images/man/preambles.png | Bin 0 -> 158991 bytes www/htdocs/images/man/preview.png | Bin 0 -> 47963 bytes www/htdocs/images/man/property_inspector.png | Bin 0 -> 79733 bytes www/htdocs/images/man/shape.png | Bin 0 -> 15140 bytes www/htdocs/images/man/style_inspector.png | Bin 0 -> 78539 bytes www/htdocs/images/man/tools.png | Bin 0 -> 11098 bytes www/htdocs/images/source.png | Bin 0 -> 3771 bytes www/htdocs/images/ubuntu.png | Bin 0 -> 3494 bytes www/htdocs/images/web_logo.png | Bin 0 -> 17156 bytes www/htdocs/images/web_logo_linux.png | Bin 0 -> 11471 bytes www/htdocs/images/web_logo_manual.png | Bin 0 -> 12341 bytes www/htdocs/images/windows.png | Bin 0 -> 8172 bytes www/htdocs/index.html | 42 +++++ www/htdocs/link.php | 23 +++ www/htdocs/linux/index.html | 34 ++++ www/htdocs/main.css | 120 +++++++++++++ www/htdocs/manual.html | 197 ++++++++++++++++++++ 29 files changed, 1144 insertions(+) create mode 100644 www/htdocs/appcast/rnotes.css create mode 100644 www/htdocs/appcast/rnotes.html create mode 100644 www/htdocs/appcast/tikzit.xml create mode 100644 www/htdocs/bnf.txt create mode 100644 www/htdocs/favicon.ico create mode 100644 www/htdocs/images/apple.png create mode 100644 www/htdocs/images/linux.png create mode 100644 www/htdocs/images/man/bend.png create mode 100644 www/htdocs/images/man/bezier.png create mode 100644 www/htdocs/images/man/bounding_box.png create mode 100644 www/htdocs/images/man/compound.png create mode 100644 www/htdocs/images/man/new_edge.png create mode 100644 www/htdocs/images/man/preambles.png create mode 100644 www/htdocs/images/man/preview.png create mode 100644 www/htdocs/images/man/property_inspector.png create mode 100644 www/htdocs/images/man/shape.png create mode 100644 www/htdocs/images/man/style_inspector.png create mode 100644 www/htdocs/images/man/tools.png create mode 100644 www/htdocs/images/source.png create mode 100644 www/htdocs/images/ubuntu.png create mode 100644 www/htdocs/images/web_logo.png create mode 100644 www/htdocs/images/web_logo_linux.png create mode 100644 www/htdocs/images/web_logo_manual.png create mode 100644 www/htdocs/images/windows.png create mode 100644 www/htdocs/index.html create mode 100644 www/htdocs/link.php create mode 100644 www/htdocs/linux/index.html create mode 100644 www/htdocs/main.css create mode 100644 www/htdocs/manual.html (limited to 'www') diff --git a/www/htdocs/appcast/rnotes.css b/www/htdocs/appcast/rnotes.css new file mode 100644 index 0000000..2609c78 --- /dev/null +++ b/www/htdocs/appcast/rnotes.css @@ -0,0 +1,215 @@ +/* Tiger Mac Help task_style.css v2.0f*/ +/* */ + +body { + margin: 2px 12px 12px + } + +h1 { + font-size: 11pt; + font-family: "Lucida Grande", Arial, sans-serif; + margin-bottom: 0 + } + + +h2 { + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + margin-top: 0; + margin-bottom: -10px + } + +h3 { + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + font-weight: bold; + margin-top: -4px; + margin-bottom: -4px + } + +p { + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + line-height: 12pt; + text-decoration: none + } + + +ol { + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + line-height: 12pt; + list-style-position: outside; + margin-top: 12px; + margin-bottom: 12px; + margin-left: -18px; + padding-left: 40px + } + + +ol li { + margin-top: 6px; + margin-bottom: 6px + } + + +ol p { + margin-top: 6px; + margin-bottom: 6px + } + + +ul { + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + line-height: 12pt; + list-style-type: square; + list-style-position: outside; + margin-top: 12px; + margin-bottom: 12px; + margin-left: -24px; + padding-left: 40px + } + + +ul li { + margin-top: 6px; + margin-bottom: 6px + } + + +ul p { + margin-top: 6px; + margin-bottom: 6px + } + + +a { + color: #00f; + font-size: 9pt; + font-family: "Lucida Grande", Arial, sans-serif; + line-height: 12pt; + text-decoration: none + } + + +a:hover { + color: #00f; + font-family: "Lucida Grande", Arial, sans-serif; + text-decoration: underline + } + +hr { + text-decoration: none; + border: solid 1px #bfbfbf + } + +td { + padding: 6px + } + +#banner { background-color: #f2f2f2; background-repeat: no-repeat; padding: -2px 6px 0; position: fixed; top: 0; left: 0; width: 100%; height: 1.2em; float: left; border: solid 1px #bfbfbf } + +#caticon { +margin-top: 3px; + margin-bottom: -3px; + margin-right: 5px; + float: left; + } + +#pagetitle { + margin-top: 12px; + margin-bottom: 0px; + margin-left: 40px; + width: 88%; + border: solid 1px #fff + } + + +#mainbox { + margin-top: 2349px; + padding-right: 6px + } + +#taskbox { + background-color: #e6edff; + list-style-type: decimal; + list-style-position: outside; + margin: 12px 0; + padding: 2px 12px; + border: solid 1px #bfbfbf + } + + +#taskbox h2 { + margin-top: 8; + margin-bottom: -4px + } + +#machelp { position: absolute; top: 2px; left: 10px } + +#index { background-color: #f2f2f2; padding-right: 25px; top: 2px; right: 12px; width: auto; float: right } + +#next { + position: absolute; + top: 49px; + left: 88% + } + +#asindent { + margin-left: 22px; + font-size: 9pt; + font-family: Verdana, Courier, sans-serif; + } + +.bread { + color: #00f; + font-size: 8pt; + margin: -9px 0 -6px + } + +.leftborder { + color: #00f; + font-size: 8pt; + margin: -9px 0 -6px; + padding-top: 2px; + padding-bottom: 3px; + padding-left: 8px; + border-left: 1px solid #bfbfbf + } + +.mult { + margin-top: -8px + } + +.blue { + background-color: #e6edff; + margin-top: -3px; + margin-bottom: -3px; + padding-top: -3px; + padding-bottom: -3px + } + +.rightfloater +{ + float: right; + margin-left: 15px; +} + +.rules { + border-bottom: 1px dotted #ccc + } + +.dots { + border: dotted 1px #ccc + } + +.seealso { + margin-top: 4px; + margin-bottom: 4px + } +code { + color: black; + font-size: 9pt; + font-family: Verdana, Courier, sans-serif; + } diff --git a/www/htdocs/appcast/rnotes.html b/www/htdocs/appcast/rnotes.html new file mode 100644 index 0000000..bb5a79a --- /dev/null +++ b/www/htdocs/appcast/rnotes.html @@ -0,0 +1,260 @@ + + + + + What's new in TikZiT? + + + + + + +
+ + + + + + + +
+

TikZiT 0.6 SVN 281

+
+
    +
  • Bugfix to unstyled node drawing
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.6 SVN 280

+
+
    +
  • Added built-in tikz shapes (for cobordisms), which co-exists with custom shape support
  • +
  • Added node style categories
  • +
  • Manual is now online! Check it. It will be updated with latest features shortly.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.6 SVN 275

+
+
    +
  • Fixed dashed lines on unstyled nodes
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.6

+
+
    +
  • Made a release, TikZiT version 0.6
  • +
  • Added support for custom shapes. See forthcoming TikZiT manual + on tikzit.sourceforge.net for details.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.5 SVN 273

+
+
    +
  • Added support for multiple preambles
  • +
  • Added pants and copants shapes
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.5 SVN 272

+
+
    +
  • Parses edge directions and primes correctly
  • +
  • Show/hide property inspector and style inspector now in Window menu
  • +
  • Removed style dropdown from property inspector. Use style inspector instead.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.5 SVN 266

+
+
    +
  • Fixed bug with self-loop argument ordering
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.5 SVN 265

+
+
    +
  • Multiple shape pre-sets for nodes
  • +
  • New properties inspector virtually eliminates need to edit TiKZ source
  • +
  • Child nodes for edges now show labels
  • +
  • Collapsible inspectors save space
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.4 SVN 117

+
+
    +
  • Fixes parser not taking bounding box.
  • +
  • Added GUI support for editable bounding box.
  • +
  • Misc bugfixes re:undo
  • +
  • Replace Greek letters in labels with their unicode.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.4 SVN 111

+
+
    +
  • Improved closest LaTeX color to use [svgnames] in xcolor.
  • +
  • Outputs correct default preamble, even with styles that have + spaces in their names.
  • +
  • Preamble editor, with option to toggle between custom preamble + and default.
  • +
  • Preview LaTeX with CMD-R.
  • +
  • Miscellaneous interface improvements.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.4 SVN 103

+
+
    +
  • Added "set to closest LaTeX color" feature.
  • +
  • Slimmer node stye palette.
  • +
  • Shifted show preamble into the menu.
  • +
+
+ +
+ + + + + + + +
+

TikZiT 0.4 SVN 90

+
+
    +
  • Fixed undo flip and add edge bug.
  • +
  • Added "Source" button for simple preamble display.
  • +
+
+
+ + + + + + + + +
+

TikZiT 0.4 SVN 86

+
+
    +
  • New versioning system, testing automatic updates.
  • +
+
+
+ + + + + + + + +
+

TikZiT Release 0.4

+
+
    +
  • Added support for automatic updates.
  • +
+
+
+ + + diff --git a/www/htdocs/appcast/tikzit.xml b/www/htdocs/appcast/tikzit.xml new file mode 100644 index 0000000..688e549 --- /dev/null +++ b/www/htdocs/appcast/tikzit.xml @@ -0,0 +1,222 @@ + + + + + TikZiT Changelog + http://tikzit.sourceforge.net/appcast/tikzit.xml + Most recent changes with links to updates. + en + + + Version 0.4.0 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Tue, 15 Jun 2010 17:51:49 +0100 + + + + + Version 0.4.86 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Tue, 15 Jun 2010 18:02:54 +0100 + + + + + Version 0.4.90 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Thu, 17 Jun 2010 18:30:35 +0100 + + + + + Version 0.4.103 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Mon, 28 Jun 2010 13:47:40 +0100 + + + + + Version 0.4.111 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Thu, 01 Jul 2010 18:27:13 +0100 + + + + + Version 0.4.117 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Fri, 13 Aug 2010 20:57:24 +0100 + + + + + Version 0.5.265 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Fri, 27 May 2011 21:26:42 +0100 + + + + + Version 0.5.266 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Thu, 14 Jul 2011 15:37:45 +0100 + + + + + Version 0.5.272 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Mon, 18 Jul 2011 15:48:16 +0100 + + + + + Version 0.5.273 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Wed, 20 Jul 2011 18:00:06 +0100 + + + + + Version 0.6 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Tue, 26 Jul 2011 17:40:47 +0100 + + + + + Version 0.6.275 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Wed, 27 Jul 2011 23:38:32 +0100 + + + + + Version 0.6.280 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Tue, 02 Aug 2011 16:03:42 +0100 + + + + + Version 0.6.281 + + http://tikzit.sourceforge.net/appcast/rnotes.html + + Tue, 02 Aug 2011 17:25:08 +0100 + + + + + + \ No newline at end of file diff --git a/www/htdocs/bnf.txt b/www/htdocs/bnf.txt new file mode 100644 index 0000000..e5be059 --- /dev/null +++ b/www/htdocs/bnf.txt @@ -0,0 +1,31 @@ + ::= "\begin{tikzpicture}" ? + * + "\end{tikzpicture}" + + ::= | | | + + ::= "\begin{pgfonlayer}" DELIMITED_STRING | + "\end{pgfonlayer}" + + ::= "[" ("," )* "]" + + ::= * "=" | * + + ::= WORD | number + + ::= * | QUOTED_STRING + + ::= "\node" ? + "at" DELIMITED_STRING ";" + + ::= "(" (NATURAL_NUMBER | WORD) (".center")? ")" + + ::= "(" NUMBER "," NUMBER ")" + + ::= "\draw" ? + "to" ? ( | "()") ";" + + ::= "node" ? DELIMITED_STRING + + ::= "\path" "[use as bounding box]" + "rectangle" ";" diff --git a/www/htdocs/favicon.ico b/www/htdocs/favicon.ico new file mode 100644 index 0000000..bae4e8d Binary files /dev/null and b/www/htdocs/favicon.ico differ diff --git a/www/htdocs/images/apple.png b/www/htdocs/images/apple.png new file mode 100644 index 0000000..1546205 Binary files /dev/null and b/www/htdocs/images/apple.png differ diff --git a/www/htdocs/images/linux.png b/www/htdocs/images/linux.png new file mode 100644 index 0000000..3852a6b Binary files /dev/null and b/www/htdocs/images/linux.png differ diff --git a/www/htdocs/images/man/bend.png b/www/htdocs/images/man/bend.png new file mode 100644 index 0000000..711d699 Binary files /dev/null and b/www/htdocs/images/man/bend.png differ diff --git a/www/htdocs/images/man/bezier.png b/www/htdocs/images/man/bezier.png new file mode 100644 index 0000000..32023ed Binary files /dev/null and b/www/htdocs/images/man/bezier.png differ diff --git a/www/htdocs/images/man/bounding_box.png b/www/htdocs/images/man/bounding_box.png new file mode 100644 index 0000000..9692eeb Binary files /dev/null and b/www/htdocs/images/man/bounding_box.png differ diff --git a/www/htdocs/images/man/compound.png b/www/htdocs/images/man/compound.png new file mode 100644 index 0000000..aade82c Binary files /dev/null and b/www/htdocs/images/man/compound.png differ diff --git a/www/htdocs/images/man/new_edge.png b/www/htdocs/images/man/new_edge.png new file mode 100644 index 0000000..4a0c32f Binary files /dev/null and b/www/htdocs/images/man/new_edge.png differ diff --git a/www/htdocs/images/man/preambles.png b/www/htdocs/images/man/preambles.png new file mode 100644 index 0000000..dbbf477 Binary files /dev/null and b/www/htdocs/images/man/preambles.png differ diff --git a/www/htdocs/images/man/preview.png b/www/htdocs/images/man/preview.png new file mode 100644 index 0000000..075902f Binary files /dev/null and b/www/htdocs/images/man/preview.png differ diff --git a/www/htdocs/images/man/property_inspector.png b/www/htdocs/images/man/property_inspector.png new file mode 100644 index 0000000..75b2235 Binary files /dev/null and b/www/htdocs/images/man/property_inspector.png differ diff --git a/www/htdocs/images/man/shape.png b/www/htdocs/images/man/shape.png new file mode 100644 index 0000000..615a089 Binary files /dev/null and b/www/htdocs/images/man/shape.png differ diff --git a/www/htdocs/images/man/style_inspector.png b/www/htdocs/images/man/style_inspector.png new file mode 100644 index 0000000..d19a7c4 Binary files /dev/null and b/www/htdocs/images/man/style_inspector.png differ diff --git a/www/htdocs/images/man/tools.png b/www/htdocs/images/man/tools.png new file mode 100644 index 0000000..7ae3ccb Binary files /dev/null and b/www/htdocs/images/man/tools.png differ diff --git a/www/htdocs/images/source.png b/www/htdocs/images/source.png new file mode 100644 index 0000000..fba1b85 Binary files /dev/null and b/www/htdocs/images/source.png differ diff --git a/www/htdocs/images/ubuntu.png b/www/htdocs/images/ubuntu.png new file mode 100644 index 0000000..bcd89c9 Binary files /dev/null and b/www/htdocs/images/ubuntu.png differ diff --git a/www/htdocs/images/web_logo.png b/www/htdocs/images/web_logo.png new file mode 100644 index 0000000..c34b0b3 Binary files /dev/null and b/www/htdocs/images/web_logo.png differ diff --git a/www/htdocs/images/web_logo_linux.png b/www/htdocs/images/web_logo_linux.png new file mode 100644 index 0000000..415fe2c Binary files /dev/null and b/www/htdocs/images/web_logo_linux.png differ diff --git a/www/htdocs/images/web_logo_manual.png b/www/htdocs/images/web_logo_manual.png new file mode 100644 index 0000000..779dbfb Binary files /dev/null and b/www/htdocs/images/web_logo_manual.png differ diff --git a/www/htdocs/images/windows.png b/www/htdocs/images/windows.png new file mode 100644 index 0000000..f20a414 Binary files /dev/null and b/www/htdocs/images/windows.png differ diff --git a/www/htdocs/index.html b/www/htdocs/index.html new file mode 100644 index 0000000..b169747 --- /dev/null +++ b/www/htdocs/index.html @@ -0,0 +1,42 @@ + + + + TikZiT + + + + + TikZiT + + + +

+ TikZiT is a graphical tool for rapidly creating an editing node-and-edge style graphs. It was originally created to aid in the typesetting of "dot" diagrams of interacting quantum observables (see arXiv:0906.4725), but can be used as a general graph editing program. Click one of the above icons to download. To comment or contribute, email me at gmail.com preceded by aleks0 and an at-sign. +

+ + + +
+
+ + diff --git a/www/htdocs/link.php b/www/htdocs/link.php new file mode 100644 index 0000000..2062440 --- /dev/null +++ b/www/htdocs/link.php @@ -0,0 +1,23 @@ + "$file_root/tikzit-$src_ver/tikzit-$src_ver.tar.gz/download", +'dmg' => "$file_root/tikzit-$dmg_ver/TikZiT-$dmg_ver.dmg/download", +'win' => "$file_root/tikzit-$win_ver/tikzit-setup-$win_ver.exe/download" +); + + +$url = $urls[$_GET['to']]; +if ($url == '') $url='/'; +?> + + + Redirecting... + + + + diff --git a/www/htdocs/linux/index.html b/www/htdocs/linux/index.html new file mode 100644 index 0000000..9c3ead3 --- /dev/null +++ b/www/htdocs/linux/index.html @@ -0,0 +1,34 @@ + + + + TikZiT + + + + +TikZiT :: Linux + +
+

+ There are several options for getting TikZiT on Linux: +

+
+
Ubuntu
+
Use Gard Spreemann's PPA.
+
Fedora and OpenSUSE
+
Use Alex Merry's OBS Repositories.
+
Arch Linux
+
Use the AUR package.
+
Other
+
Build from the source.
+ +
+ +
+ + + + + diff --git a/www/htdocs/main.css b/www/htdocs/main.css new file mode 100644 index 0000000..a766eee --- /dev/null +++ b/www/htdocs/main.css @@ -0,0 +1,120 @@ +body { + background-color: #ddd; + margin: 0px; + font-size: 10pt; + font-family: "Trebuchet MS", + Tahoma, + "Nimbus Sans L", + sans-serif; +} + +a { + color: #555555; + font-weight: bold; +} + +a:hover { + color: #777777; +} + +img.heading { + display:block; + margin:10px auto; +} + +.content { + padding: 10px 30px; + background-color: white; +} + +.info { color: #069; } + +.manual h2 { + clear: both; + margin-top: 1em; +} + +.manual tt { + background-color: #eef; +} + +.whiteblock { + background-color: white; + text-align: center; + padding-top: 10px; + padding-bottom: 10px; +} + +.whiteblock a { + text-decoration: none; +} + +.bigtext { + color: #444444; + font-size: 1.5em; +} + +img.osimage { + vertical-align: middle; + border: 0px; +} + +p.blurb { + margin: 20px auto; + width: 600px; + text-align: justify; +} + +.links { + text-align:center; + margin-top: 2em; +} + +dt { + margin-top: 0.5em; + font-weight: bold; +} + +div.fig { + text-align: center; + padding: 0.5em 1em; + margin: 0em 1em; + border: 1px solid #aaa; + background-color: #ddd; +} + +div.fig img { + border: 1px solid #aaa; +} + +div.fig p { + font-size: 0.8em; + line-height: 1em; + margin-top: 1em; + margin-bottom: 0em; +} + +/* syntax highlight styles */ +.bnf { + white-space: nowrap; + border: 1px dotted #a0a0a0; + padding: 1em; + font-family: 'Monaco', 'Courier New', Courier, monospace; + font-size: 9pt; + line-height: 120%; + color: #000; +} + +.bnf .imp {font-weight: bold; color: red;} +.bnf .co0 {color: #666666; font-style: italic;} +.bnf .coMULTI {font-style: normal;} +.bnf .es0 {font-weight: normal;} +.bnf .sy0, .bnf .re0 {color: #006; font-weight: normal;} +.bnf .sy1 {color: #000066; font-weight: normal;} +.bnf .sy2 {color: #000066; font-weight: normal;} +.bnf .sy3 {color: #000066; font-weight: normal;} +.bnf .sy4 {color: #000; font-weight: normal;} +.bnf .st0 {color: #060;} +.bnf .st1, .terminal {color: #069;} +.bnf .me {1} + diff --git a/www/htdocs/manual.html b/www/htdocs/manual.html new file mode 100644 index 0000000..1a092d5 --- /dev/null +++ b/www/htdocs/manual.html @@ -0,0 +1,197 @@ + + + TikZiT Manual + + + + + + + +
+ +

NOTE: This manual is currently written for the OS X version of TikZiT. However, we try to make the Linux and Windows ports as similar to the Mac version as possible, so much of the info here should still apply.

+ +

TikZiT is a tool for editing graphs written in PGF/TikZ. PGF/TikZ is a +big macro package for embedding all kinds of diagrams in LaTeX. It's included +in most TeX distributions, so if you use TeX, you probably already have it. +Lots of info and examples can be found on texample.net, and the (very extensive) +manual can be found here.

+ +

TikZiT uses *.tikz files, which are text files written in a subset of TikZ. Virtually everything TikZiT uses comes from the \node command and the \draw command. Users can edit a graph by using the GUI or editing the TikZ file from within TikZiT and parsing changes.

+ +

Basic Graph Editing

+ +

TikZiT has four basic tools: Select, Add Vertex, Add Edge, and Crop (Fig. 1). The Select tool is for selecting and moving vertices and edges. For vertices, this works pretty much as you would expect. Edges can be selected by clicking on them directly, which makes their control points become visible in blue (Fig. 2). Click and drag a control point to set the bend property of and edge. The radius of the circles indicates the looseness.

+ +
+
+ +

Fig.1: The Tool Palette

+
+ +
+ +

Fig.2: Setting the Bend

+
+ +
+ +

Fig.3: Bezier Mode

+
+ +
+
+ +

Double-click and edge to go to Bezier Mode (Fig. 3). The control points in Bezier Mode can be moved independently, and rather than setting bend, it sets the in and out properties of an edge. It is often useful to use the Shift key to select multiple edges, making their control points visible. Editing any of those edges' control points will not deselect the edges. Hold down the ⌘Command key to move both control points at once. This is particularly useful for self-loops.

+ +

The Add Vertex tool adds a new vertex to the graph where you click. It is given the style that is selected in the Style Palette. If no style is selected, an Unstyled Vertex is added. Unstyled vertices are represented as dotted lines around a point, and are invisible. They are useful for making complex paths (Fig. 4) and edges that are not otherwise connected to vertices.

+ +
+
+ +

Fig.4: Unstyled Vertices/Compound Path

+
+ +
+ +

Fig.5: Adding an Edge

+
+ +
+ +

Fig.6: Setting the Bounding Box

+
+ +
+
+ +

The Add Edge tool adds new edges. With the tool selected, click and drag from the source vertex to the target vertex to create an edge (Fig. 5). Although TikZiT doesn't show the direction of the edge, it could still be relevant (e.g. for arrow heads), depending on the style of the edge. Click on a vertex to add a self-loop.

+ +

Though TikZ computes bounding boxes automatically, if you wish to set one manually, you can do so using the Crop tool. Click and drag a box to set the bounding box. Click anywhere to remove it. The bounding box itself is implemented using a rectangular path with the use as bounding box property set.

+ +

Editing Properties and Styles

+ +

All graph, node, and edge properties can be edited using the Property Inspector. This inspector is divided into three parts: one for each type of property. These can be expanded or collapsed using the triangles in the upper left corner of each section. TikZiT handles two kinds of properties: normal properties and atoms. Normal properties are key/value pairs stored with the graph/node/edge. Atoms are just keys, leaving the value of the property itself implicit. Examples are baseline or <-. To add a new property, click the "+" button in the relevant section. To add a new atom, click the "+a" button. Use the "-" button to remove a property or atom.

+ +

You can also use the Property Inspector to edit the labels on nodes. After editing a label, you may need to hit Return to apply your changes. Always do this before deselecting the node.

+ +
+
+ +

Fig.7: Property Inspector

+
+ +
+ +

Fig.8: Style Inspector

+
+
+
+ +

With the Property Inspector you can add a node to an edge by selecting it and clicking the checkbox next to Child Node. This node will be placed in the middle of the edge by default, but you can change this by editing it's properties. Often the atom auto is applied to an edge node to position its label a little off the edge. Again, when labelling an edge node, be sure to hit Return to apply your changes.

+ +

The Style Inspector lets you add, remove, and edit styles. You can edit a style's name, shape, foreground colour, background colour, and scale. Note that these properties change how nodes of this style will appear in TikZiT, but not necessarily in the final, built LaTeX. TikZiT styles are meant more as a visual cue for the sake of editing graphs than to produce a nice end result. Use Apply to apply the selected style to the selected nodes and Clear to clear the style.

+ +

Editing the TikZ Code Directly

+ +

TikZiT supports a small subset of the TikZ language. At any point, you can edit the TikZ code manually in the bottom half of the window. Editing the code will cause the main graph display to ghost, and it prevents editing with the GUI until the graph is re-parsed using ⌘T. If the parse was successful, the main graph will un-ghost, and a message saying success will be displayed along the bottom of the window. If the parse was unsuccessful, parse error will be displayed.

+ +

As a reference, here is the complete syntax supported by TikZiT:

+ +
+ <tikzpicture>  ::= "\begin{tikzpicture}" <properties>?
+                    <expression>*
+ +                    "\end{tikzpicture}"
+
+ <expression>   ::= <ignore> | <node> | <edge> | <bounding box>
+ +
+ <ignore>       ::= "\begin{pgfonlayer}" DELIMITED_STRING |
+                     "\end{pgfonlayer}"
+ +
+ <properties>   ::= "[" <property> ("," <property>)* "]"
+ +
+ <property>     ::= <symbol>* "=" <value> | <symbol>*
+ +
+ <symbol>       ::= WORD | NUMBER
+
+ <value>        ::= <symbol>* | QUOTED_STRING
+ +
+ <node>         ::= "\node" <properties>? <node name>
+                       "at" <coords> DELIMITED_STRING ";"
+ +
+ <node name>    ::= "(" (NATURAL_NUMBER | WORD) (".center")? ")"
+ +
+ <coords>       ::= "(" NUMBER "," NUMBER ")"
+
+ + <edge>         ::= "\draw" <properties>? <node name>
+                       "to" <edge node>? (<node name> | "()") ";"
+ +
+ <edge node>    ::= "node" <properties>? DELIMITED_STRING
+
+ <bounding box> ::= "\path" "[use as bounding box]" <coords>
+ +                       "rectangle" <coords> ";" +
+ +

Note that DELIMITED_STRING means a string delimited by braces ( { , } ). This string can contain any character, including other braces, provided they are nested correctly. A WORD may contain letters, greater-than ( > ), less-than ( < ), dash ( - ), and prime ( ' ). Question mark ( ? ) denotes optional productions, and star ( * ) denotes repeated ones.

+ +

Preambles and LaTeX Preview

+ +

Use ⌘R to preview the current graph using LaTex. The preview will be shown in a new window. In the event of an error, the LaTeX output is displayed.

+ +
+ +

Fig.8: LaTeX Preview

+
+ +

The Preamble Editor is used to set up the preamble that the LaTeX preview uses. The default preamble will include minimal style definitions, but you will most likely want to use a default preamble. A good strategy is to define all of the TikZ styles in a single LaTeX file, then \input that file both in your paper and in the TikZiT preamble.

+ +
+ +

Fig.9: Preamble Editor

+
+ +

Use the "+" and "-" buttons to add or remove custom preambles. Double-click a preamble's name to change it. Click Insert Styles to paste in the styles from the default preamble at the current cursor location.

+ + +

Custom Shapes

+ +

Custom shapes are implemented in TikZiT. To add a custom shape, navigate to the TikZiT support directory: ~/Library/Application Support/TikZiT. If it doesn't already exist, create a directory called shapes. Now, you can add *.tikz files to this directory, and they will be included as shapes in TikZiT.

+ +

Not all graphs will made nice looking shapes. TikZiT builds a shape from a graph by extracting all of the paths in the TikZ graph, and drawing them as (filled) bezier curves.

+ +
+ +

Fig.10: A Custom Shape

+
+ +

The best graphs for defining shapes are single cycles, consisting of unstyled nodes. You can draw a shape as big or small as you like. When the shape is displayed in TikZiT with scale = 1, the shape will fit inside a 4x4 square on the grid. If you make a change to the custom shapes with TikZiT open, click Refresh Shapes in the TikZ menu to refresh the shapes.

+ + + + +
+
+ + + +
+
+
+ + + + -- cgit v1.2.3