Vincent Kuhlmann highlight-latex Package User Manual

User manual for the highlight-latex LaTeX package, used to create colored code highlighting for LaTeX documents based on the listings package.


Vincent Kuhlmann highlight-latex Package User Manual - cover page
Brand
Vincent Kuhlmann
Category
Application program
Document type
User Manual
Language
English
Pages
4
File format
PDF
File size
226 KB
Published
24 November, 2026
Updated
24 November, 2026
MD5 checksum
07D449B445B9D9026CBE658F1CDBE2F4

About this manual

The highlight-latex package is designed to provide aesthetically pleasing colored highlighting for LaTeX code within LaTeX documents, making it suitable for teaching and presentation scenarios. It extends the generic listings package to allow for both inline and block-style code display.

The manual covers installation procedures for MiKTeX and TeX Live, basic usage of highlighting commands, customization of highlighting rules, and handling fragile breaking situations such as those found in beamer frames.

What's inside

  • Manual installation
  • Getting started
  • Adding a command to a highlighting rule
  • Custom highlighting rules
  • Global settings
  • Fragile breaking situations (like beamer frames)
  • Adding extra space
  • License

Frequently asked questions

How can I add a new command to the default highlighting rule?

Use the \updatehighlight command with the name 'default' and the 'add' key containing the commands you wish to highlight.

What is the purpose of the highlight-latex package?

It is a package that builds on the generic listings package to provide colored highlighting for LaTeX code within LaTeX.

How can a user add a command to a highlighting rule?

Users can update highlighting rules using the \updatehighlight command with the add key.

What should be used to handle code blocks in fragile breaking situations like beamer frames?

Users can surround a highlightblock environment with a saveblock environment and then refer to it using \useblock or \consumeblock.

Download PDF (226 KB)