Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[siunitx+xfrac]: Error (due to today's L3 update?)

16 views
Skip to first unread message

Uwe Siart

unread,
Feb 8, 2012, 12:00:54 PM2/8/12
to
The example

% ------------------------------
\documentclass{article}
\usepackage{xfrac}
\usepackage{siunitx}
\sisetup{
fraction-function = \sfrac,
per-mode = fraction,
}
\begin{document}
\SI{3}{\m\per\s}
\end{document}
% ------------------------------

gives me

,----
| ! Missing number, treated as zero.
| <to be read again>
| \relax
| l.9 \SI{3}{\m\per\s}
|
| ! Illegal unit of measure (pt inserted).
| <to be read again>
| \relax
| l.9 \SI{3}{\m\per\s}
`----

I think (but can't tell for sure) this has been introduced by today's L3
update.

--
Uwe

Uwe Siart

unread,
Feb 8, 2012, 12:19:43 PM2/8/12
to
Uwe Siart <use...@siart.de> writes:

> % ------------------------------
> \documentclass{article}
> \usepackage{xfrac}
> \usepackage{siunitx}
> \sisetup{
> fraction-function = \sfrac,
> per-mode = fraction,
> }
> \begin{document}
> \SI{3}{\m\per\s}
> \end{document}
> % ------------------------------
>
> gives me
>
> ,----
> | ! Missing number, treated as zero.
> | <to be read again>
> | \relax
> | l.9 \SI{3}{\m\per\s}
> |
> | ! Illegal unit of measure (pt inserted).
> | <to be read again>
> | \relax
> | l.9 \SI{3}{\m\per\s}
> `----

The error goes away if you add the 'calc' package.

--
Uwe

Marco Daniel

unread,
Feb 8, 2012, 12:31:04 PM2/8/12
to
Am 08.02.2012 18:19, schrieb Uwe Siart:
> The error goes away if you add the 'calc' package.

This was given in the last update of LaTeX3

Snapshot of SVN 3285
--------------------

- Drop loading of calc package by expl3. This was included for
historical reasons, and users requiring calc should now load
it explicitly.

regards
Marco

Joseph Wright

unread,
Feb 8, 2012, 2:22:30 PM2/8/12
to
As observed by Marco, this is due to xfrac, which it turns out assumes
calc is loaded. There will be a fix to CTAN shortly!
--
Joseph Wright

Joseph Wright

unread,
Feb 8, 2012, 3:00:42 PM2/8/12
to
On 08/02/2012 19:22, Joseph Wright wrote:
> As observed by Marco, this is due to xfrac, which it turns out assumes
> calc is loaded. There will be a fix to CTAN shortly!

Fix submitted to CTAN - hopefully will propagate within 24 h.
--
Joseph Wright

Robin Fairbairns

unread,
Feb 8, 2012, 4:40:39 PM2/8/12
to
and installed.
--
Robin Fairbairns, Cambridge
my address is @cl.cam.ac.uk, regardless of the header. sorry about that.

Uwe Siart

unread,
Feb 9, 2012, 12:35:31 AM2/9/12
to
Robin Fairbairns <rf...@cl.cam.ac.uk> writes:

>> Fix submitted to CTAN - hopefully will propagate within 24 h.
>
> and installed.

Thank you all for that really quick response.

--
Uwe
0 new messages