LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Transfer-Encoding:
7bit
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
From:
Joseph Wright <[log in to unmask]>
Date:
Fri, 10 Oct 2008 22:48:36 +0100
Content-Type:
text/plain; charset=ISO-8859-1
MIME-Version:
1.0
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments:
text/plain (26 lines)
Hello all,

I've been giving some thought to examining how to re-write siunitx in
expl3.  I've made some progress on the options side (hence keys3), but
I'm now thinking a little about the number analysis part.

I wonder if it might be useful to create a lower-level tool package for
processing numbers.  I was thinking that the following might be useful:
- Something like \ifinteger, \ifnumber, etc. as in biblatex
- Ability to parse numbers as in siunitx
- More structured returning of parsed value

The last point is relevant as siunitx uses a number of hacks to get the
appropriate data out.  I think it might be better to provide something like:

<sign><pre-decimal><post-decimal><sign-exp><pre-decimal-exp><post-decimal-exp>

or

<sign><mantissa><sign><exponent>

in a structured return format (errors to be thought about).  Does
something like this sound useful as a more generalised package?
-- 
Joseph Wright

ATOM RSS1 RSS2