Skip to content

OPL language support for LaTeX listings (lstlistings) package

License

Notifications You must be signed in to change notification settings

morpheusthewhite/oplistings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oplistings

OPL support for listings LaTeX package

Installation

There are 2 alternatives to use this package (in both cases you should first clone this repository and cd to it)

git clone https://github.com/morpheusthewhite/oplistings
cd oplistings

System-wide installation

After setting up your TEXMFHOME run

make install

A copy for each use

Move opl.sty into the directory of the .tex to which you want to add support for OPL.

Usage

Simply add to yout .tex file

\usepackage{opl}

After that you can use it

\lstset{
	language=opl,
	% whatever you want
}

An usage example can be found in example.tex.

Options

  • js: also highlight keywords of JavaScript language

Caveat

Since listings package does not support keywords of more words, subject to and not in have been splitten. That means that writing subject in a lstlisting environment will highlight it even if it is alone and doesn't have any particular meaning for OPL.

About

OPL language support for LaTeX listings (lstlistings) package

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published