<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[dvipdfmx]{article}

\usepackage{musikui}
\usepackage{listings}
\usepackage[dvipdfmx]{hyperref}
\usepackage{longtable}

\title{The musikui package v1}
\author{Naoki Kaneko}
\date{2018/04/25}
\begin{document}
\maketitle

This package is for easy expression of arithmetical restorations with \LaTeX{}.

\begin{center}
\begin{musikui}
\wari{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;7&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{4}
\sen
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}}{3}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}}{3}
\sen
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{2}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}}{2}
\sen
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{0}
\sen
\musi{0}{0}
\end{musikui}
\end{center}

The package is maintained on GitHub:
\begin{itemize}
\item \url{https://github.com/puripuri2100/musikui.sty}
\end{itemize}
\section{Package read}
Read using \verb|\usepackage| command. There is no option.

\begin{lstlisting}[language=TeX]
\usepackage{musikui}
\end{lstlisting}
\section{Dependent package}
graphics package

\section{License}
The \LaTeX{} Project Public License
\section{Provide command}
\subsection{Commands related to composition}
\begin{lstlisting}[language=TeX]
\kake{&lt;multiplicand&gt;}{&lt;multiplier&gt;}{&lt;product&gt;}
\wari{&lt;dividend&gt;}{&lt;divide&gt;}{&lt;quotient&gt;}
\musi{&lt;holes&gt;}{&lt;distance from the right end&gt;}
\sen
\bubunsen{&lt;length&gt;}{&lt;distance from the right end&gt;}
\end{lstlisting}

\subsection{Commands related to holes}
\begin{lstlisting}[language=TeX]
\eaten{&lt;numbers etc.&gt;}
\noneaten{&lt;numbers etc.&gt;}
\halfeaten{&lt;numbers etc.&gt;}
\halfnoneaten{&lt;numbers etc.&gt;}
\hhalfeaten{&lt;numbers etc.&gt;}
\hhalfnoneaten{&lt;numbers etc.&gt;}
\end{lstlisting}

\section{The role of each command}
The role of each command is shown in Table \ref{yakuwari}.
\begin{longtable}[h]{rp{20em}}
\caption{\label{yakuwari}}\\
\verb|\kake|&amp;Outputs \verb|&lt;multiplicand&gt;| \verb|&lt;multiplier&gt;| \verb|&lt;product&gt;| of multiplication arithmetical restorations calculation.\\
\verb|\wari|&amp;Outputs \verb|&lt;dividend&gt;| \verb|&lt;divide&gt;| \verb|&lt;quotient&gt;| of division arithmetical restorations calculation.\\
\verb|\musi| &amp;Outputs \verb|&lt;holes&gt; &lt;distance from the right end&gt; |.\\
\verb|\sen|&amp;line\\
\verb|\bubunsen|&amp;Line of the specified length\\
\verb|\eaten|&amp;normal hole\\
\verb|\noneaten| &amp;hole without a line \\
\verb|\halfeaten| &amp;Half the width hole of \verb|\eaten|.\\
\verb|\halfnoneaten| &amp;Hole without a line with half width of  \verb|\eaten|.\\
\verb|\hhalfeaten| &amp;Two holes with \verb|\harleaten| side by side.\\
\verb|\hhalfnoneaten| &amp;\verb|\hhalfeaten| line without a hole
\end{longtable}

\section{Notation}
Use one musikui environment per an arithmetical restorations.
For the representation part of the hole, a hole and a hole (or a number) are connected by  ``\verb|&amp;|".
After using \verb|\kake| or \verb|\wari|, you just line \verb|\musi| and \verb|\sen| like the hole counting you want to express.
An example of division and multiplication is given below.

\begin{longtable}[h]{l|l}
\begin{lstlisting}[language=TeX]
\begin{musikui}
\kake{8&amp;\eaten{}&amp;6&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
\musi{\eaten{}&amp;6&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;6}{1}
\sen
\end{musikui}
\end{lstlisting}
&amp;
\begin{musikui}
\kake{8&amp;\eaten{}&amp;6&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
\musi{\eaten{}&amp;6&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;6}{1}
\sen
\end{musikui}
\\
\begin{lstlisting}[language=TeX]
\begin{musikui}
\wari{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten}
\musi{\eaten{}&amp;\eaten{}}{1}
\sen
\musi{8&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}}{0}
\sen
\musi{\eaten{}}{0}
\end{musikui}
\end{lstlisting}
&amp;
\begin{musikui}
\wari{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten}
\musi{\eaten{}&amp;\eaten{}}{1}
\sen
\musi{8&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}}{0}
\sen
\musi{\eaten{}}{0}
\end{musikui}
\\
\begin{lstlisting}[language=TeX]
\begin{musikui}
\wari{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten}
\musi{\eaten{}&amp;\eaten{}}{1}
\bubunsen{4}{0}
\musi{8&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}}{0}
\bubunsen{2}{0}
\musi{\eaten{}}{0}
\end{musikui}
\end{lstlisting}
&amp;
\begin{musikui}
\wari{\eaten{}&amp;\eaten{}&amp;\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten{}}
{\eaten{}&amp;\eaten}
\musi{\eaten{}&amp;\eaten{}}{1}
\bubunsen{4}{0}
\musi{8&amp;\eaten{}}{0}
\musi{\eaten{}&amp;\eaten{}}{0}
\bubunsen{2}{0}
\musi{\eaten{}}{0}
\end{musikui}
\end{longtable}

\section{Customize}
You can change the value of arithmetical restorations using \verb|\renewcommand*|.

\begin{lstlisting}[language=TeX]
\renewcommand*{\musiwidth}{2em}
\end{lstlisting}
The values whose roles and default values can be changed are shown in Table \ref{kiteiti}.

\begin{longtable}[h]{lll}
\caption{\label{kiteiti}}\\
\verb|\musiwidth|&amp;hole width&amp;1.2em\\
\verb|\musiheight|&amp;hole height&amp;0.96em\\
\verb|\musidepth|&amp;hole depth&amp;0.24em\\
\verb|\musihgap|&amp;distance between hole and hole&amp;0.4em\\
\verb|\musivgap|&amp;distance between hole and line&amp;0.4em\\
\verb|\musirule|&amp;line width&amp;0.4pt\\
\verb|\musiopsymbol|&amp;multiplication sign&amp;\verb|$\times$|\\
\verb|\musiwarikakko|&amp;divide symbol&amp;\verb|\Big)|
\end{longtable}

\section{Summary}
If all of the above is taken into the drawing, it will be Figure \ref{fig:one} and Figure \ref{fig:two}.

\begin{figure}[htbp]
 \begin{minipage}{0.5\hsize}
  \begin{center}
   \includegraphics[width=60mm]{kake.pdf}
  \end{center}
  \caption{multiplication}
  \label{fig:one}
 \end{minipage}
 \begin{minipage}{0.5\hsize}
  \begin{center}
   \includegraphics[width=60mm]{wari.pdf}
  \end{center}
  \caption{division}
  \label{fig:two}
 \end{minipage}
\end{figure}
\end{document}</pre></body></html>