Skip to content

hengxin/tla2tex

Repository files navigation

tla2tex

TLA+ code to TeX code

How to do that?

  • Put your tla code in between \begin{tla} and \end{tla} in file like tla2tex-example-tla.tex.
    • Ignore the code in between \begin{\tlatex} and \end{\tlatex} now.
  • Run java -cp tla2tools.jar tla2tex.TeX tlatex-example-tla.tex
    • This will automatically generate that code in between \begin{\tlatex} and \end{\tlatex}.
    • Important Note: You'd better run java -cp under the directory of tlatex-example-tla.tex. Otherwise, you may get a renaming error and information indicating that some .new file was generated in a different directory.
    • -cp tla2tools.jar: make sure that tla2tools.jar is in your path; use your-path-to-tla2tools.jar when necessary.
  • Compile tlatex-example-tla.tex to produce the pdf version which can be inserted into your LaTeX document as usual.

For detailed info, see tla2tex-readme.md.

About

TLA+ Code to TeX Code using tla2tools.jar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published