[luatex] Luatex primitive names

Heiko Oberdiek oberdiek at uni-freiburg.de
Wed Mar 11 12:11:24 CET 2009


On Wed, Mar 11, 2009 at 10:56:54AM +0100, Taco Hoekwater wrote:

> I still don't get what you want from me. The \luatexversion and
> \luatexrevision primitives behave exactly like the current
> \pdftexversion and \pdftexrevision do.

Manual (sorry, for 0.25):

| \luatexversion  A combination of major and minor number, as in pdfTeX.
| Current value: 25
| \luatexrevision The revision, as in pdfTeX. Current value: 2

Assuming I want to print the version number (e.g. for /Producer
information entry): What is the algorithm to get the version?
>From this description I would assume 25.2, but luatex prints
its version number as 0.25.2

What changes with version 1.0? Or is it 1.00?

A guess of the algorithm, I am not sure that this is correct:

* "major number": \the\luatexversion / 100 (integer division)
* "minor number": \the\luatexversion % 100 (modulo operation), two digits
* "revision number": \luatexrevision

> If mean that you want that documented formally, can you quote me
> the relevant section of the pdftex manual please?

Isn't too clear either:
* minor version: Are this one or two digits?
  e.g. 1.7.4 or 1.07.4?
* All numbers starts with zero? e.g. in principle:
  0.00.0, 0.00.1, ... 0.01.0, ... 1.00.0, ...

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the luatex mailing list