Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/graphics/jflap2tikz

Introduction

JFLAP is a popular Java program for experimenting with finite state machines, 
Turing machines and other concepts from Formal Languages and Automata Theory. 
Version 7 of JFLAP can export JPG, PNG, GIF, BMP, or SVG images. JFLAP2TikZ is 
a groovy script that converts a JFLAP jff file representing a finite automaton, 
pushdown automaton, or Turing machine into a LaTeX file depicting the automaton 
graphically using TikZ.

Requirements

To use JFLAP2TikZ you will need Java installed. Additionally, you may find it 
useful to have Groovy installed as well. You will need to download either 
jflap2tikz.jar (if you only have Java installed) or jflap2tikz.groovy (if you 
also have groovy installed).

Usage

JFLAP2TikZ is invoked from the command line with:

java -jar jflap2tikz.jar -i example.jff

or:

groovy jflap2tikz.groovy -i example.jff

In the above cases the output will be written to the console. Use the -h option 
to see the full usage information, which is also given below.

usage: jflap2tikz [options]
Version 1.1
 -d,--accepting-distance <distance>   Distance, in pt, between the circles of an
                                      accepting state (default is 2)
 -g,--grid <size>                     Round positions so that they are on a
                                      grid. If a size is given it sets the
                                      spacing of the grid (default is 20.0)
 -h,--help                            Show usage information and quit
 -i,--input-file <filename>           Name of a JFLAP jff file representing a
                                      finite automaton, pushdown automaton, or
                                      Turing machine. If a file is not given
                                      standard input will be used.
 -l,--arrow-length <length>           Length of arrows in points (default is 9)
 -o,--output-file <filename>          Name of a file for writing output. If this
                                      file already exists it will be
                                      overwritten.
 -r,--rotate                          Rotate labels along edges
 -s,--scale <x>                       1 pixel in JFLAP = x points in LaTeX
                                      (default is 1.0)
 -w,--arrow-width <width>             Width of arrows in points (default is 6)

License

JFLAP2TikZ and its documentation are licensed under an MIT style license

Copyright (c) 2009,2014 Andrew Mertz and William Slough
 
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Files

Name Size Date Notes
JFLAP2TikZ.pdf 194546 2014-07-22 01:31
JFLAP2TikZ.tex 6516 2014-07-22 01:31
README 3514 2014-07-22 01:31
ex0.1a.jff 916 2014-07-22 01:31
ex0_1a.pdf 26267 2014-07-22 01:31
ex0_1a.png 16349 2014-07-22 01:31
ex0_1a.tex 849 2014-07-22 01:31
ex0_1aGrid100.pdf 26049 2014-07-22 01:31
ex0_1aGrid100.tex 852 2014-07-22 01:31
ex0_1aScale2.pdf 26293 2014-07-22 01:31
ex0_1aScale2.tex 852 2014-07-22 01:31
ex9-anbncn.jff 3936 2014-07-22 01:31
ex9-anbncn.pdf 38595 2014-07-22 01:31
ex9-anbncn.png 55575 2014-07-22 01:31
ex9-anbncn.tex 2452 2014-07-22 01:31
jflap2tikz.groovy 11955 2014-07-22 01:31
jflap2tikz.jar 14446608 2014-07-22 01:31

Down­load the con­tents of this pack­age in one zip archive (12.8M).

jflap2tikz – Con­vert JFlap file into a LaTeX file de­pict­ing the au­toma­ton us­ing TikZ

JFlap is an ex­cel­lent piece of soft­ware for ex­per­i­ment­ing with fi­nite state ma­chines, Tur­ing ma­chines and for ex­plor­ing many as­pects of the the­ory of com­pu­ta­tion. JFLAP2TikZ is a script that con­verts a JFlap ‘jff’ file rep­re­sent­ing a fi­nite au­toma­ton, push down au­toma­ton, or Tur­ing ma­chine to LaTeX file de­pict­ing the au­toma­ton graph­i­cally us­ing TikZ.

Pack­age De­tailsjflap2tikz
Ver­sion1.1
Li­censeFree li­cense not oth­er­wise listed, or more than one free li­cense ap­plies
Main­tainerAn­drew Mertz
Topics pre­pare graph­ics for use with *TeX
pack­age uses PGF-TikZ
Guest Book Sitemap Contact