On Wed, Feb 12, 2003 at 09:21:12AM +0000, Angus Leeming wrote:
> > And I believe '4.5 Cm' and '4.5 cM' are valid as well...
> 
> Geeez.

Someone should check it first....

> Would this suffice do you think?

>         $LatexLength =~ s/^\s*([+-]?)\s*(\d+)[.,]?(\d*)\s*/$1$2.$3/;
>         # Now ensure that 'Cm', 'cM' are output as 'cm'.
>         # This does not act on \macro
>         $LatexLength =~ s/(\d+\.?\d*)([a-z]*)/$1\L$2/i;

[a-z]* does not match CM, does it?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to