Previous: , Up: Other Considerations   [Contents][Index]


5.2 Version Numbering

As TFM evolves over time, you might one day feel the need for conditionalizing your code on the version of the library.

The first thing you can do to access the current version number of TFM is use the version function.

Function: version &optional (TYPE :number)

Return the current version number of TFM. TYPE can be one of :number, :short or :long. For :number, the returned value is a fixnum. Otherwise, it is a string.

A TFM version is characterized by 4 elements as described below.

In addition to that, each version of TFM (in the sense major.minor, regardless of the status) has a name, stored in the parameter *release-name*. The general naming theme for TFM is “Uncial Fonts”, from the LaTeX Font Catalogue.

Here is how the version function computes its value.

Incidentally, but you will probably never need to use it, TFM also exports a variable named *copyright-years*, which, as its name suggests, is a string denoting the copyright years for the whole project.


Previous: , Up: Other Considerations   [Contents][Index]