Introduction JFlap is an excellent piece of software for experimenting with finite state machines, Turing machines and exploring many aspects of the theory of computation. JFlap2TikZ is a groovy script that converts a JFlap jff file representing a finite automaton, push down automaton, or Turing machine to 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, using Java java -jar JFlap2TikZ.jar example.jff or using groovy groovy JFlap2TikZ.groovy example.jff Note that in either case the output will be written to the console. Redirect the output or copy and paste as needed. Here is the full usage information. usage: JFlap2TikZ [-g] [-h] [-r] [-s scale] [-z size] filename -g,--grid Round positions so that they are on a grid -h,--help Show usage information and quit -r,--rotate rotate labels along edges -s,--scale <arg> 1 pixel in JFlap = scale points in LaTeX (default is 1.0) -z,--gridsize <arg> Set the spacing of the grid (default is 20.0) License JFlap2TikZ and its documentation are licensed under an MIT style license Copyright (c) 2009, 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.
Download the complete contents of this directory in one zip archive (4.0M).
jflap2tikz – Convert JFlap file into a LaTeX file depicting the automaton using TikZ
JFlap is an excellent piece of software for experimenting with finite state machines, Turing machines and exploring many aspects of the theory of computation. JFlap2TikZ is a groovy script that converts a JFlap jff file representing a finite automaton, push down automaton, or Turing machine to LaTeX file depicting the automaton graphically using TikZ.
|License||Free license not otherwise listed, or more than one free license applies|
package uses PGF-TikZ|
convert a foreign graphics format for use with TeX