I want to use numprint to add separators every three digits of a decimal representation of a rational BUT with an overline over the repeating digits.
For example, for the unitary fraction 1/42, I get:
without numprint and I want numprint spaces.
I mention that the number is constructed within pythontex concatenating integer part, irregular part and finally repeating part with overline.
edit
\documentclass[12pt]{article}
\usepackage{pythontex}
\begin{pycode}[dvt]
from dvtDecimal import *
\end{pycode}
\begin{document}
\begin{pycode}[dvt]
f = dvtDecimal(1, 42)
print("$" + f.toTeX()[2] + "$")
\end{pycode}
\end{document}
ImportError: No module named dvtDecimal
.