maurizio...@gmail.com wrote:
> I am using package siunitx which I find convenient.
>
> Is it possible to use command
>
> \num
>
> with repeated decimals, like
>
> $1=0.\overline{9}$ ???
>
> It would be nice to be able to write
>
> \num{0.\overline{9}}
AFAICS this is not supported by siunitx.
A workaround is to put braces around the expression with \overline:
\documentclass[12pt]{article}
\usepackage{siunitx}
\begin{document}
$\num{1} = \num{0.{\overline{9}}}$
$1/7 \approx \num{0.142857}$
$1/7 = \num{0.{\overline{142857}}}$
$1/7 = \num{0.{\overline{142\thinspace 857}}}$
\end{document}
But that's just a workaround. Because the digits are hidden from the
parser by the brace group, no space is automatically inserted between
group of digits. And this syntax is outside the specification of \num.
Thus the behaviour might change with other versions of siunitx.
(The example was tested with 2012/05/03 v2.5c.)
Best would be if you can make a feature request to ask the
author of the package to implement the missing feature,
if he has time and find the feature interesting.
--
Heiko Oberdiek