The \changes command of DTX file is used to record changes.

The \PrintChanges command print the list of change, sorted by number ... except when a number is greater than 10.

To see the problem, I invite you to read the change in the documentation of the eledmac package. You can see:

  • v0.1
  • v0.10
  • v0.11
  • ...
  • v0.18
  • v0.2

But the version 0.2 should be after v0.1.

I tried some technics with the @ (like in index), but I could'nt solve this problem.

  • A ! why not ! for the change history, it's not problematic.
    – Maïeul
    Sep 25, 2012 at 20:52

2 Answers 2


Makeindex also supports sort keys. Entries of \changes or sorted with the style file gglo.ist. There the actual char is =:


This can also be automated, if \changes is redefined in the driver file:

    \def\my@changes v#1.#2\@nil{%
      \ifnum#1<100000 0\fi
      \ifnum#1<10000 0\fi
      \ifnum#1<1000 0\fi
      \ifnum#1<100 0\fi

Then you can continue with


For other numbering scheme \my@changes needs to be adopted.


By far the easiest thing is to number your minor version (retrospectively if necessary) as v0.01... which means that you are OK so long as you don't have 100 minor versions before the next major version.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .