SOROBAN abacus. package pgf-soroban



Similar documents
chemscheme Support for chemical schemes

The beamer Class: a L A TEX Presentation System

A very minimal introduction to TikZ

What is a Mail Merge?

50 TUGboat, Volume 31 (2010), No. 1. Plotting experimental data using pgfplots Joseph Wright

Using Microsoft Word. Working With Objects

Math Exercise on the Abacus ( Suanpan in Chinese)

An introduction to L A TEX, as well as Bibtex, Beamer, Tikz, and all that (Part deux)

A package for rotated objects in L A TEX

Soroban. The Japanese Abacus By Kimie Markarian

Microsoft Publisher Flyers and Business Cards

Petrel TIPS&TRICKS from SCM

Presentations Using L A TEX

Graphics with TikZ. 1 Introduction. Andrew Mertz and William Slough

The very basic basics of PowerPoint XP

Protecting Your Computer from Viruses and Spyware

Using Rational Rose to Create Object-Oriented Diagrams

Working with the new enudge responsive styles

How to create pop-up menus

Technical specifications

Tips on Beamer, TikZ and BibTeX

Create a Poster Using Publisher

Spreadsheet - Introduction

Publisher 2007: Part 2 Advanced Features. Grouped Objects in Publisher:

Department of Mathematics and Computer Science Eastern Illinois University 600 Lincoln Avenue Charleston, IL

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

K17.11 DOOR BOLTS K17 DOORS

Getting Started: Creating the Backdrop

Clip Art in Office 2000

Drawing Gantt Charts in L A TEX with TikZ The pgfgantt Package

The tikzposter class

Communicate: In Print

How to use a SMART Board

Motorhome Entrance Door CaraD-RF With Aluminium Door Panel Art. 1401

DATA VALIDATION and CONDITIONAL FORMATTING

User s Guide to the PGF Package, Version

CREATING A 3D VISUALISATION OF YOUR PLANS IN PLANSXPRESS AND CORTONA VRML CLIENT

Working With Animation: Introduction to Flash

How to send meeting invitations using Office365 Calendar

Contents. Downloading the Data Files Centering Page Elements... 6

Creating forms in Microsoft Access 2007

GYM PLANNER. User Guide. Copyright Powerzone. All Rights Reserved. Software & User Guide produced by Sharp Horizon.

Graphing in L A TEX using PGF and TikZ

3D Viewer. user's manual _2

3D lumber edging, trimming, and visualization system. User Guide

Tutorial 3: Working with Tables Joining Multiple Databases in ArcGIS

This guide shows you how to configure each display option within the item editor.

Volume FIRSTCLASS COMMUNICATION TOOLS. Rapid Web Designer Basic Builder. RWD Basic Builder

Text Basics. Introduction

A Guide to Using Beamer

Getting Started. Important if your cards are to have any extras (numbering, barcodes etc) then please supply two sets of PDFs.

Math vocabulary can be taught with what Montessorians call the Three Period Lesson.

Chapter 1 Learning to Program With Alice

Unit 21 - Creating a Button in Macromedia Flash

Introduction to Microsoft Publisher : Tools You May Need

Unit 1: Exploring Numbers (1) I Can Statements. I can start at any number and count up to 10, using pictures to help me.

Window's Paint Tools

Chemical resistance Accidental

UCL Depthmap 7: Data Analysis

Generative Drafting. Page DASSAULT SYSTEMES. IBM Product Lifecycle Management Solutions / Dassault Systemes

Graphic Objects and Loading Them into TGF2/MMF2

CNC Transfer. Operating Manual

Working with sections in Word

Fireworks CS4 Tutorial Part 1: Intro

Welcome to CorelDRAW, a comprehensive vector-based drawing and graphic-design program for the graphics professional.

Data representation and analysis in Excel

GeoGebra Statistics and Probability

Add page numbers and headers and footers by using the gallery, or create a custom page number, header, or footer.

User Guide and Definitions

action/2015 Visual Identity Guidelines June 2014

Organizational Development Qualtrics Online Surveys for Program Evaluation

AutoCAD Structural Detailing Getting Started with AutoCAD Structural Detailing, Reinforcement module

basic module technical specifications infinity modular case

The tikzposter class

Drawing Gantt Charts in L A TEX with TikZ The pgfgantt package

Best Practice Pentasoft Corp. Avactis Ecommerce Shopping Cart Software. All Rights Reserved.

Table of Contents. Introduction Opening A Demo Account Overview Market Watch (Quotes Window) Charts Navigator

Excel 2003 A Beginners Guide

Advanced Excel 10/20/2011 1

Microsoft Word Track Changes

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE

TikZ and pgf. Manual for version 1.18

Using the Synchronization Client

Create Mailing Labels from an Electronic File

Creating Fill-able Forms using Acrobat 8.0: Part 1

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

econtrol 3.5 for Active Directory & Exchange Self-Service Guide

Home Build Solar System is the website where you can get the information you need to build your own solar system.

Navigating Microsoft Word 2007

Package tikzdevice. February 20, 2015

Excel 2007 A Beginners Guide

META QUOTES IPAD USER GUIDE

Transcription:

SOROBAN abacus package pgf-soroban Alain Delmotte esperanto@swing.be November 27, 2013 Contents 1 Original size 2 2 Example of use 2 3 Using the package 3 1

1 Original size 2 Example of use Step 1 2 + 1 (in colours) 1) Put 2 with thumb 2) Add 1 = 3 7-1 (in black and white for printing) 1) Set 7 at once (pinch) 2) Substract 1 = 6 2

3 Using the package In the preamble, insert the instruction \usepackage{pgf-soroban} 1. There is no need to load the corresponding graphics package as the packages are required by the soroban package. The package also sets a base unit as 1 mm, as well as other lengths; this draws a soroban of the normal size as used in schools, shops,... If one wants to change the size, one sets the units by \ladj{0.25} (here 1 4 of the normal size). That instruction can be used any time in the document to change the size for some part if required. To draw a soroban, one draws rod(s) with the required bids in the right position and add either a frame or just top and bottom parts of the frame. One can then add some bids in other colours and also cross some bids. Let s draw a soroban representing the number 321.45 in small size: 0.25. line tikz/pgf PStricks 1 \ladj{0.25} \psset{unit=0.25mm} 2 \begin{pspicture}(-2,-2)(122,76) 3 \tige{1}{0}{1} \tige{1}{0}{1} 4 \tige{2}{3}{0} \tige{2}{3}{0} 5 \tige{3}{2}{0} \tige{3}{2}{0} 6 \tige{4}{1}{1} \tige{4}{1}{1} 7 \tige{5}{4}{0} \tige{5}{4}{0} 8 \tige{6}{5}{0} \tige{6}{5}{0} 9 \cadre{6} \cadre{6} 10 \end{pspicture} 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. 2 To draw a rod, one uses the command \tige. The syntax is: \tige[<st>]{<nu>}{<val>}{<un>} The <nu> argument numbers the rods from left to right. <val> is the number to be represented on the rod from 0 to 9. The <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,... ranks. 1 There is a corresponding package pst-soroban.sty for use with Pstricks. 2 For PStricks (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 ((-2,-2)) and after above. The picture is 74.6 units hight and 20* number of rods wide (here (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. 3

The <st> argument is optional and tells at which position the drawing is started; the default value is 1. This is interesting when one wants to put more then one drawing on a line: \tige{1}{1}{1} \barres{1} \tige[5]{1}{6}{1} \barres[5]{1} \tige[9]{1}{5}{1} \barres[9]{1} In this example, there is no frame but only parts of it above and below; this is created with the \barres command. The syntaxes for the frame and top/bottom lines are: \cadre[<st>]{<nb>} and \barres[<st>]{<nb>}. The optional <st> arguments are the same as the one of \tige, the <nb> argument tell how many rods have to be covered. If one wants to colour a specific bid, one can achieve this with \binoire: \binoire[<st>]{<nu>}{<pos>}{<col>} <st> and <nu> arguments are the same as for \tige; the <col> argument defines the colour and the <pos> argument tells which bid has to be coloured as shown in the following example. \tige{1}{0}{1} \tige{2}{0}{1} \tige{3}{0}{1} \tige{4}{0}{1} \tige{5}{4}{1} \tige{6}{4}{1} \tige{7}{4}{1} \tige{8}{4}{1} \tige{9}{0}{1} \tige{10}{5}{1} \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} 4

The \barbil command allows to cross a bid (see example below); the syntax is: \barbil[<st>]{<nu>}{<pos>} The arguments <st>, <nu> and <pos> have the same meaning as those of \binoire. Finally, one can change the overall colours of the rods and the bids, for example to print in black and white. This is done by changing the values of the \colbil (for the bids) and \coltig (for the rods) commands; by default there are yellow and brun (new brown colour defined in the package). \renewcommand{\colbil}{white} \renewcommand{\coltig}{black} \tige{1}{1}{1} \barres{1} \tige[5]{1}{6}{1} \barbil[5]{1}{5} \barres[5]{1} \tige[9]{1}{5}{1} \barres[9]{1} References [1] Kjell Magne Fauskes and Stefan Kottwitz. PGF and TikZ examples gallery. http://www.texample.net/tikz/examples/, 2013. [2] Kjell Magne Fauskes and Stefan Kottwitz. PGF and TikZ resources. http://www.texample.net/tikz/resources/, 2013. [3] Michel Goosens, Frank Mittelbach, Sebastian Rahtz, Denis Roegel, and Herbert Voß. The L A TEX Graphics Companion. Addison-Wesley Publishing Company, Reading, Mass., 2007. [4] Alain Matthes. TikZ/PGF. http://www.altermundus.fr/pages/pdflatex/tikz.html, 2013. [5] Andrew Mertz and William Slough. Graphics with PGF and TkZ. http://www.tug.org/pracjourn/2007-1/mertz/, 2007. [6] Till Tantau. PGF and TikZ Graphic systems for TeX. http://sourceforge.net/projects/pgf, 2013. [7] Till Tantau. TikZ and PGF. Manual for version 2.10. http://sourceforge.net/projects/pgf, 2013. 5