• No results found

The musikui package v1

N/A
N/A
Protected

Academic year: 2021

Share "The musikui package v1"

Copied!
4
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The musikui package v1

Naoki Kaneko 2018/04/25

This package is for easy expression of arithmetical restorations with LATEX.

) 7

0 The package is maintained on GitHub:

• https://github.com/puripuri2100/musikui.sty

1 Package read

Read using \usepackage command. There is no option.

\ usepackage { musikui }

2 Dependent package

graphics package

3 License

The LATEX Project Public License

1

(2)

4 Provide command

4.1 Commands related to composition

\kake{<multiplicand >}{<m u l t i p l i e r >}{<product >}

\ wari{<dividend >}{<divide >}{<quotient >}

\musi{<holes >}{<d i s t a n c e from the r i g h t end>}

\ sen

\bubunsen{<length >}{<d i s t a n c e from the r i g h t end>}

4.2 Commands related to holes

\ eaten{<numbers et c .>}

\ noneaten{<numbers e t c .>}

\ h a l f e a t e n{<numbers et c .>}

\ halfnoneaten{<numbers et c .>}

\ h h a l f e a t e n{<numbers e t c .>}

\ hhalfnoneaten{<numbers e t c .>}

5 The role of each command

The role of each command is shown in Table 1.

Table 1:

\kake Outputs <multiplicand> <multiplier>

<product> of multiplication arithmetical restorations calculation.

\wari Outputs <dividend> <divide> <quotient>

of division arithmetical restorations calcula- tion.

\musi Outputs <holes> <distance from the right end> .

\sen line

\bubunsen Line of the specified length

\eaten normal hole

\noneaten hole without a line

\halfeaten Half the width hole of \eaten.

\halfnoneaten Hole without a line with half width of \eaten.

\hhalfeaten Two holes with \harleaten side by side.

\hhalfnoneaten \hhalfeaten line without a hole

6 Notation

Use one musikui environment per an arithmetical restorations. For the repre- sentation part of the hole, a hole and a hole (or a number) are connected by “&”.

After using \kake or \wari, you just line \musi and \sen like the hole counting

2

(3)

you want to express. An example of division and multiplication is given below.

\ begin { musikui }

\ kake{8&\ eaten{}&6&\eaten {}}

{\ eaten {}&\ eaten {}}

{\ eaten {}&\ eaten&\eaten {}&\ eaten {}&\ eaten {}}

\musi {\ eaten{}&6&\eaten {}&\ eaten {}&\ eaten {}}{0}

\musi {\ eaten {}&\ eaten {}&\ eaten {}&6}{1}

\ sen

\end{ musikui }

8 6

× 6

6

\ begin { musikui }

\ wari {\ eaten {}&\ eaten {}&\ eaten {}&\ eaten {}}

{\ eaten {}&\ eaten {}}

{\ eaten {}&\ eaten }

\musi {\ eaten {}&\ eaten {}}{1}

\ sen

\musi{8&\ eaten {}}{0}

\musi {\ eaten {}&\ eaten {}}{0}

\ sen

\musi {\ eaten {}}{0}

\end{ musikui }

)

8

\ begin { musikui }

\ wari {\ eaten {}&\ eaten {}&\ eaten {}&\ eaten {}}

{\ eaten {}&\ eaten {}}

{\ eaten {}&\ eaten }

\musi {\ eaten {}&\ eaten {}}{1}

\bubunsen {4}{0}

\musi{8&\ eaten {}}{0}

\musi {\ eaten {}&\ eaten {}}{0}

\bubunsen {2}{0}

\musi {\ eaten {}}{0}

\end{ musikui }

)

8

3

(4)

7 Customize

You can change the value of arithmetical restorations using \renewcommand*.

\renewcommand∗{\ musiwidth }{2em}

The values whose roles and default values can be changed are shown in Table 3.

Table 3:

\musiwidth hole width 1.2em

\musiheight hole height 0.96em

\musidepth hole depth 0.24em

\musihgap distance between hole and hole 0.4em

\musivgap distance between hole and line 0.4em

\musirule line width 0.4pt

\musiopsymbol multiplication sign $\times$

\musiwarikakko divide symbol \Big)

8 Summary

If all of the above is taken into the drawing, it will be Figure 1 and Figure 2.

6

×8 6 6

6

× 8 6 6

&

&

&

&

&

&

&

&

&

&

&

&

&

&

&

6

× 8& & &&

6 6

&

&

&

&

&

&

&

\begin{musikui}

\kake{8&\eaten{}&6&\eaten{}}

{\eaten{}&\eaten{}}

{\eaten{}&\eaten&\eaten{}&\

eaten{}&\eaten{}}

\musi{\eaten{}&6&\eaten{}&\

eaten{}&\eaten{}}{0}

\musi{\eaten{}&\eaten{}&\

eaten{}&6}{1}

\sen

\end{musikui} & & & &

Figure 1: multiplication

8

&

0

8 0

&

&

&

&

&

&

&

&

8

0

&

&

&

&

&

&

&

\begin{musikui}

\wari{\eaten{}&\eaten{}&\

eaten{}&\eaten{}}

{\eaten{}&\eaten{}}

{\eaten{}&\eaten}

\musi{\eaten{}&\eaten{}}{1}

\sen

\musi{8&\eaten{}}{0}

\musi{\eaten{}&\eaten{}}{0}

\sen

\musi{\eaten{}}{0}

\end{musikui}

Figure 2: division

4

Referenties

GERELATEERDE DOCUMENTEN

Table packages that only introduce new column types should be loaded after mdwtab, so either you load mdwtab manually and load your package in between mdwtab and cellprops, or you

(Not all codebox es include procedure names; for example, see the pseu- docode near the bottom of page 306 of CLRS.) After the line containing the procedure name comes one or more

(Not all codebox es include procedure names; for example, see the pseudocode on page 343 of CLRS 3/e.) After the line containing the procedure name come one or more lines of

If you do not know the code, you can either press the red button (turn to 3 ) or read the sign above it (turn to 6 )7. 6 The

This package is not for you if you want free-flow enumeration in a paragraph, since enumitem already provides a reasonable one, and you probably do not want to share that many

When the skills package is used together with the exam document class, the skillquestions environment and the \skillquestion command become available to the user.. They behave like

If you’re used to the glossaries package, note the difference in using \gls: hyper-text markup language (html).. And again (no difference): hyper-text markup language

You will need to set the output file so that the indexing application creates a .gls file instead of an .ind file, and change the name of the log file so that it doesn’t over- write