I used some of the solution proposed in this post: How to present a vertical multiplication/addition and my code is as follows:
\documentclass{standalone}
\begin{document}
\begin{tabular}{c*{11}{@{\,}c}}
2&:&7&=&0&,&$\overline{2}$&$\overline{8}$&$\overline{5}$&$\overline{7}$&
$\overline{1}$&$\overline{4}$
\\
{\color{red} 2} &{\color{red} 0 } & &&&&&&&&& \\
1 & 4 &&&&&&&&&& \\ \cline{1-2}
& 6& 0 &&&&&&&&& \\
& 5 & 6 &&&&&&&& \\ \cline{2-3}
& & 4 & 0 &&&&&&& \\
& & 3 & 5 &&&&&&& \\ \cline{3-4}
& & & 5 & 0 &&&&&& \\
& & & 4 & 9 &&&&&& \\ \cline{4-5}
& & & & 1 & 0 &&&&& \\
& & & & & 7 &&&&& \\ \cline{5-6}
& & & & & 3 & 0 &&&& \\
& & & & & 2 & 8 &&&& \\ \cline{6-7}
& & & & & & { \color{red} 2} &{\color{red} 0} &&&
\end{tabular}
\end{document}
The goal is to show the repeating decimal part with overline over the repeating decimals. The code does that, but each decimal is overlined in isolation, but I want a continuous overline! But that does seem to infer with the mechanics of tabular ...
