summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-28 23:20:56 +0000
committerKarl Berry <karl@freefriends.org>2013-11-28 23:20:56 +0000
commitd5690b37f2228a32b2465f503ced8d209a22c3f8 (patch)
tree035749e9501010da4d15c2f0deaded290c5d358a /Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex
parent0d4abdd78e3627f2cfe29467cb2d5c7f3fe8fe77 (diff)
pgf-soroban (28nov13)
git-svn-id: svn://tug.org/texlive/trunk@32269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex34
1 files changed, 17 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex b/Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex
index ef16b12416e..d85443290f6 100644
--- a/Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex
+++ b/Master/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.tex
@@ -1,7 +1,7 @@
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
-\usepackage[latin1]{inputenc}
+\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\newcommand{\ttsl}[1]{\texttt{\textsl{#1}}}
@@ -9,7 +9,7 @@
\title{SOROBAN abacus\\\ \\package \texttt{pgf-soroban}}
\author{Alain Delmotte \texttt{esperanto@swing.be}}
-\date{December 10, 2007}
+\date{November 27, 2013}
\begin{document}
\maketitle
@@ -122,27 +122,27 @@ Let's draw a soroban representing the number 321.45 in small size: 0.25.
\hline
\textbf{line}& \textbf{tikz/pgf} & \textbf{PStricks} \\
\hline
-\verb§ 1§ & \verb§\ladj{0.25}§ & \verb§\psset{unit=0.25mm} §\\
-\verb§ 2§ & \verb§\begin{tikzpicture}§ & \verb§\begin{pspicture}(-2,-2)(122,76)§\\
-\verb§ 3§ & \verb§\tige{1}{0}{1} § & \verb§\tige{1}{0}{1} §\\
-\verb§ 4§ & \verb§\tige{2}{3}{0} § & \verb§\tige{2}{3}{0} §\\
-\verb§ 5§ & \verb§\tige{3}{2}{0} § & \verb§\tige{3}{2}{0} §\\
-\verb§ 6§ & \verb§\tige{4}{1}{1} § & \verb§\tige{4}{1}{1} §\\
-\verb§ 7§ & \verb§\tige{5}{4}{0} § & \verb§\tige{5}{4}{0} §\\
-\verb§ 8§ & \verb§\tige{6}{5}{0} § & \verb§\tige{6}{5}{0} §\\
-\verb§ 9§ & \verb§\cadre{6} § & \verb§\cadre{6} §\\
-\verb§10§ & \verb§\end{tikzpicture} § & \verb§\end{pspicture} §\\
+\verb| 1| & \verb|\ladj{0.25}| & \verb|\psset{unit=0.25mm} |\\
+\verb| 2| & \verb|\begin{tikzpicture}| & \verb|\begin{pspicture}(-2,-2)(122,76)|\\
+\verb| 3| & \verb|\tige{1}{0}{1} | & \verb|\tige{1}{0}{1} |\\
+\verb| 4| & \verb|\tige{2}{3}{0} | & \verb|\tige{2}{3}{0} |\\
+\verb| 5| & \verb|\tige{3}{2}{0} | & \verb|\tige{3}{2}{0} |\\
+\verb| 6| & \verb|\tige{4}{1}{1} | & \verb|\tige{4}{1}{1} |\\
+\verb| 7| & \verb|\tige{5}{4}{0} | & \verb|\tige{5}{4}{0} |\\
+\verb| 8| & \verb|\tige{6}{5}{0} | & \verb|\tige{6}{5}{0} |\\
+\verb| 9| & \verb|\cadre{6} | & \verb|\cadre{6} |\\
+\verb|10| & \verb|\end{tikzpicture} | & \verb|\end{pspicture} |\\
\hline
\end{tabular}
\vspace{6pt}
-Line 1 defines the size, lines 2 and 10 create the picture environment, lines 3--8 draw the rods and line 9 creates the frame.
+Line 1 defines the size, lines 2 and 10 create the picture environment, lines 3--8 draw the rods and line 9 creates the frame. Lines 3 and 6 specify a dotted rod (third argument = 1), the values (0, 3, 2, 1, 4 and 5) are in the second argument
It is not necessary for tikz to specify the dimensions of the picture as the package reserves the area needed for the created graphic.~\footnote{\ For PStricks (\texttt{pst-soroban}), one has to give the dimensions of the picture, otherwise the drawing would have no size and would overlap the surrounding text. One gives some space before and below (\texttt{(-2,-2)}) and after above. The picture is 74.6 units hight and 20* number of rods wide (here \texttt{(122,76)}). Of course, if one adds something before, under, after or above the soroban, one has to adjust the corresponding part of the frame dimension.}
To draw a rod, one uses the command \verb+\tige+. The syntax is:
\begin{center}
-\verb§\tige[§\ttsl{<st>}\verb§]{§\ttsl{<nu>}\verb§}{§\ttsl{<val>}\verb§}{§\ttsl{<un>}\verb§}§
+\verb|\tige[|\ttsl{<st>}\verb|]{|\ttsl{<nu>}\verb|}{|\ttsl{<val>}\verb|}{|\ttsl{<un>}\verb|}|
\end{center}
The \ttsl{<nu>} argument numbers the rods from left to right. \ttsl{<val>} is the number to be represented on the rod from 0 to 9. The \ttsl{<un>} argument tells that there is a dot on the central bar (1) or not (0); there is normally a dot for the unit, thousand, million,\dots ranks.
@@ -177,14 +177,14 @@ The \ttsl{<st>} argument is optional and tells at which position the drawing is
In this example, there is no frame but only parts of it above and below; this is created with the \verb+\barres+ command. The syntaxes for the frame and top/bottom lines are:
\begin{center}
-\verb§\cadre[§\ttsl{<st>}\verb§]{§\ttsl{<nb>}\verb§}§ and \verb§\barres[§\ttsl{<st>}\verb§]{§\ttsl{<nb>}\verb§}§.
+\verb|\cadre[|\ttsl{<st>}\verb|]{|\ttsl{<nb>}\verb|}| and \verb|\barres[|\ttsl{<st>}\verb|]{|\ttsl{<nb>}\verb|}|.
\end{center}
The optional \ttsl{<st>} arguments are the same as the one of \verb+\tige+, the \ttsl{<nb>} argument tell how many rods have to be covered.
If one wants to colour a specific bid , one can achieve this with \verb+\binoire+:
\begin{center}
-\verb§\binoire[§\ttsl{<st>}\verb§]{§\ttsl{<nu>}\verb§}{§\ttsl{<pos>}\verb§}{§\ttsl{<col>}\verb§}§
+\verb|\binoire[|\ttsl{<st>}\verb|]{|\ttsl{<nu>}\verb|}{|\ttsl{<pos>}\verb|}{|\ttsl{<col>}\verb|}|
\end{center}
\ttsl{<st>} and \ttsl{<nu>} arguments are the same as for \verb+\tige+; the \ttsl{<col>} argument defines the colour and the \ttsl{<pos>} argument tells which bid has to be coloured as shown in the following example.
@@ -247,7 +247,7 @@ If one wants to colour a specific bid , one can achieve this with \verb+\binoire
The \verb+\barbil+ command allows to cross a bid (see example below); the syntax is:
\begin{center}
-\verb§\barbil[§\ttsl{<st>}\verb§]{§\ttsl{<nu>}\verb§}{§\ttsl{<pos>}\verb§}§
+\verb|\barbil[|\ttsl{<st>}\verb|]{|\ttsl{<nu>}\verb|}{|\ttsl{<pos>}\verb|}|
\end{center}
The arguments \ttsl{<st>}, \ttsl{<nu>} and \ttsl{<pos>} have the same meaning as those of \verb+\binoire+.