Example: The pgf-soroban package

Published 2007-12-15 | Author: Alain Delmotte

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.

Author:Alain Delmotte

Download as: [PDF] [TEX]  •  [Open in Overleaf]

The pgf-soroban package

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% 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}

Comments

Adding comments is currently not enabled.