Skip to content

Alloy syntax highlighting for the "listings package" (Latex) (It follows MIT's Alloy environment color style)

Notifications You must be signed in to change notification settings

Angtrim/alloy-latex-highlighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b0b04cc · Nov 13, 2019

History

8 Commits
Nov 8, 2018
Nov 8, 2018
Nov 8, 2018
Nov 4, 2015

Repository files navigation

Alloy Latex Highlighting

Alloy syntax highlighting for the "listings package" (Latex) (It follows MIT's Alloy environment color style).

Based on this gist

Preview

preview

Known Issues

There are some problems with the => symbol. Just use implies instead.

Installation

Dowload the .sty file you find in this repo.

Add the dependencies and the .sty file to your main file :

\usepackage[dvipsnames]{xcolor}
\usepackage{listings}
\usepackage{alloy-style}

How to use

To use it just include your alloy source code where you want :

\lstinputlisting[language=alloy]{path-to-your-alloy-source-code}

License

Do what you want with this library.

About

Alloy syntax highlighting for the "listings package" (Latex) (It follows MIT's Alloy environment color style)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages