![]() | ![]() | ![]() | Writing your own extensions | Contents | Index |
Whenever Hyperlatex processes a \documentclass
or \usepackage
command, it first saves the options, then tries to find the file
package.hlx in either the .hyperlatex or the systemwide
Hyperlatex directories. If such a file is found, it is inserted into
the document at the current location and processed as usual. This
provides an easy way to add support for many LaTeX packages by simply
adding LaTeX commands. You can test the options with the ifoption
environment (see babel.hlx for an example).
To see how it works, have a look at the package files in the distribution.
If you want to do something more ambitious, you may need to do some
Emacs lisp programming. An example is german.hlx, that makes
the double quote character active using a piece of Emacs lisp code.
The lisp code is embedded in the german.hlx file using the
\HlxEval
command.
Note that Hyperlatex now provides rudimentary support for counters.
The commands \setcounter
, \newcounter
, \addtocounter
,
\stepcounter
, and \refstepcounter
are implemented, as well as
the \the
countername command that returns the current value of
the counter. The counters are used for numbering sections, you could
use them to number theorems or other environments as well.
If you write a support file for one of the standard LaTeX packages, please share it with us.
![]() | ![]() | ![]() | Writing your own extensions | Contents | Index |