Frank Mittelback wrote:
> Achim Blumensath writes:
>
>  > I've converted the amsthm style to the template system. The whole
>  > process was extremely painless (except for reading the AMS code),
>  > and the resulting code is much more readable than the original.
>
> nice work.

Of course, it contains an annoying bug: the numbers are printed _before_
the name. The correct code is:

    \IfNoValueTF{#1}
      {\TShead@format{#2}{#1}{#3}}
      {\TShead@format{#2}{\csname the#1\endcsname}{#3}}

Achim
________________________________________________________________________
                                _                             | \_____/ |
    //  Achim Blumensath       | \  _                        \O/ \___/\ |
   //   [log in to unmask]   |-< /_\                       =o=  \ /\ \|
 \X/    (p^2 - m^2)\psi = 0    |_/ \_                        /"\   o----|
____________________________________________________________________\___|