The pgf-soroban package is a set of convenient macros for creating pictures of a a soroban. The soroban is a Japanese version of the abacus. For details on how to use the package, see the documentation.
Edit and compile if you like:
% The pgf-soroban package % Author: Alain Delmotte \documentclass[]{article} \usepackage{tikz} \usepackage{pgf-soroban} \begin{document} \begin{tikzpicture} \tige{1}{0}{0} \tige{2}{0}{1} %<- here a dot: unit million \tige{3}{0}{0} %<- here no dot: hundreds of thousands \tige{4}{0}{0} %<- here no dot: tens of thousands \tige{5}{4}{1} %<- here a dot: units thousands \tige{6}{4}{0} \tige{7}{4}{0} \tige{8}{4}{1} %<- here a dot: units \tige{9}{0}{0} \tige{10}{5}{0} \cadre{10} \binoire{1}{1}{black} \binoire{2}{2}{black} \binoire{3}{3}{black} \binoire{4}{4}{black} \binoire{5}{5}{black} \binoire{6}{6}{black} \binoire{7}{7}{black} \binoire{8}{8}{black} \binoire{9}{9}{black} \binoire{10}{10}{black} \end{tikzpicture} \end{document}
Click to download: pgf-soroban.tex • pgf-soroban.pdf
Open in Overleaf: pgf-soroban.tex