Skip to content

A Rust language and style specification for the LaTeX-package listings, modified to include an uncoloured mode

License

Notifications You must be signed in to change notification settings

ejacksondev/listings-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

listings-rust

A Rust language and style specification for the LaTeX-package listings

Usage

  • place the listings-rust.sty where latex can find it
  • import listings and listings-rust in your LaTeX document with \usepackage{listings, listings-rust}
  • select the language Rust in the lstlistings environment, e.g.
    \begin{lstlisting}[language=Rust]
    // your source code
    \end{lstlisting}
  • optional: select one of the styles colouredRust, uncolouredRust, or boxed, e.g.
    \begin{lstlisting}[language=Rust, style=boxed]
    // your source code
    \end{lstlisting}
    Please note: uncolouredRust will render with no additional colours. Use of this fork rather than the main project will result in a lack of blue hghlights on more delimiters whilst using colouredRust and boxed modes.

Documentation

Currently there is only the style-file itself and the example document listings-style.tex for documentation.

About

A Rust language and style specification for the LaTeX-package listings, modified to include an uncoloured mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 95.2%
  • Shell 4.8%