Index
Go backward to Making characters non-special
Go up to Controlling Hyperlatex

Extending Hyperlatex

Hyperlatex scans the preamble of your document for \usepackage declarations. For every such declaration it tries to find an extension that defines the LaTeX macros from that package. These extensions are Emacs lisp files residing in either a system-wide Hyperlatex extension directory (set up by the person who installed Hyperlatex), or in your personal directory .hyperlatex in your home directory.

Currently, Hyperlatex is distributed with only one extension file, for the package longtable (and even that is minimal, just to show how to write an extension file). Support for other packages will be added when users need it and cannot create the extension files themselves.

To write a general Hyperlatex extension file, you would have to program in Emacs lisp. In many cases, however, it is sufficient to define a number of commands in terms of the basic Hyperlatex commands (just like \newcommand or \newenvironment do). This can be done quite easily, and you can create you own extension files on the model of the file hlx-longtable.el provided with hyperlatex. (Note that Hyperlatex looks for support for the package package in a file hlx-package.el. That file should bind the function hyperlatex-package-hook.)

If you write a support file for one of the standard LaTeX packages, please share it with us.

  • Supported packages

  • otfried@postech.vision.ac.kr

    Prev Up