The minted
package provides automatic syntax highlighting for source code listings. It uses the excellent pygments highlighter, which provides very high quality highlighting for a wide range of languages.
This example also shows how you can use minted to typeset LaTeX math embedded in your source code.
Our searchable collection of LaTeX examples is a great place to look when you're using a LaTeX package for the first time (or the first time in a while!).
Show off your awesome LaTeX skills by contributing examples to the gallery. You can publish any Overleaf project with a couple of clicks.
New examples of LaTeX packages and techniques are added all the time. Follow us on twitter for the highlights!