\documentclass[11pt,a4j,twocolumn]{jsarticle}
\usepackage[bold]{otf}
\usepackage[dvipdfmx]{graphicx,color}

\textwidth=176mm \textheight=250mm \columnseprule=0.4pt
\topmargin=-24mm \oddsidemargin=-16mm

\newenvironment{nidan}{\begin{minipage}[t]{.225\textwidth}}{\end{minipage}}
\def\nidangumi#1#2{\begin{nidan}{#1}\end{nidan}\quad%
\begin{nidan}{#2}\end{nidan}}

\newcounter{toi} \newcounter{subtoi}[toi]
\newcounter{subsubtoi}[subtoi]

\def\toi{\refstepcounter{toi}\par          % 問
  \makebox[2zw][r]{\LARGE\ajKaku{\value{toi}}\hspace{0.5zw}}%
  \hangindent=2zw}

\newcounter{subtoihyoji}
\def\subtoi{\refstepcounter{subtoi}\par    % 小問
  \setcounter{subtoihyoji}{\value{subtoi}}
	\ifnum\thesubtoi>20
		\addtocounter{subtoihyoji}{9873}
	\else
		\addtocounter{subtoihyoji}{8070}
	\fi
  \makebox[3.4zw][r]{\CID{\thesubtoihyoji}\hspace{1zw}}%
  \hangindent=3.4zw}

\newcounter{subsubtoihyoji}
\def\subsubtoi{\refstepcounter{subsubtoi}\par    % 小小問
  \setcounter{subsubtoihyoji}{\value{subsubtoi}}
  \addtocounter{subsubtoihyoji}{7554}
  \makebox[4.2zw][r]{\CID{\thesubsubtoihyoji}\hspace{1zw}}%
  \hangindent=4.2zw}

\pagestyle{empty}

\begin{document}

\unitlength=1mm
\def\mondai#1#2#3#4#5{
\begin{picture}(24,12)(0,0)
\put(10.5,8){\makebox(0,0){\large #1}}
\put(13,8){\makebox(0,0){\large #2}}
\put(10.5,4){\makebox(0,0){\large #4}}
\put(13,4){\makebox(0,0){\large #5}}
\put(7,4){\makebox(0,0){\large $#3$}}
\put(5,2){\line(1,0){10}}
\end{picture}}

\def\sanketa#1#2#3#4#5#6#7{
\begin{picture}(23,15)(0,0)
\put(12,12){\makebox(0,0){\large #1}}
\put(16,12){\makebox(0,0){\large #2}}
\put(20,12){\makebox(0,0){\large #3}}
\put(12,6){\makebox(0,0){\large #5}}
\put(16,6){\makebox(0,0){\large #6}}
\put(20,6){\makebox(0,0){\large #7}}
\put(8,6){\makebox(0,0){\large $#4$}}
\put(5,2){\line(1,0){19}}
\end{picture}}

\def\sandan#1#2#3#4#5#6#7{
\begin{picture}(23,25)(0,0)
\put(8,6){\makebox(0,0){\large $#1$}}
\put(12,18){\makebox(0,0){\large #2}}
\put(16,18){\makebox(0,0){\large #3}}
\put(12,12){\makebox(0,0){\large #4}}
\put(16,12){\makebox(0,0){\large #5}}
\put(12,6){\makebox(0,0){\large #6}}
\put(16,6){\makebox(0,0){\large #7}}
\put(5,2){\line(1,0){15}}
\end{picture}}

\def\mypm#1#2#3{
\begin{picture}(21,12)(0,0)
\put(3,6){\makebox(0,0){\large #1}}
\put(6,6){\makebox(0,0){\large $#2$}}
\put(9,6){\makebox(0,0){\large #3}}
\put(12,5.5){\makebox(0,0){\large $=$}}
\end{picture}}

%
%  ===========================以下本文===============================
%
\twocolumn[
{\Large\bf 数学 \ たし算ひき算プリント \# 1}%
%
\hfill \underline{\hskip5ex 年\hskip5ex 組\hskip5ex 号 \quad 氏名 \hskip30ex}

\vspace*{1ex}

\mbox{}        ]

\vskip18mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\toi 次の計算をしましょう。

\mypm3+6
\mypm2+4
\mypm1+5

\mypm2+7
\mypm6+2
\mypm4+3

\mypm5+4
\mypm3+3
\mypm7+1

\mypm6+3
\mypm2+2
\mypm4+0

\mypm6+7
\mypm9+8
\mypm6+4

\mypm2+9
\mypm0+6
\mypm3+8

\mypm9+6
\mypm8+3
\mypm7+9

\bigskip

\toi 次の計算をしましょう。

\mypm6-4
\mypm3-2
\mypm9-4

\mypm8-6
\mypm7-1
\mypm6-3

\mypm2-1
\mypm9-5
\mypm8-2

\mypm7-4
\mypm6-5
\mypm3-1

\mypm5-5
\mypm6-2
\mypm9-7

\mypm4-2
\mypm7-5
\mypm6-1

\newpage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\toi 次の計算をしましょう。

\mondai{}2+{}6
\mondai{}1+{}6
\mondai{}2+{}3
\vskip2ex

\mondai{}1+{}7
\mondai{}7+{}2
\mondai{}5+{}4
\vskip2ex

\mondai{}7+{}1
\mondai{}3+{}3
\mondai{}4+{}5
\vskip2ex

\mondai{}2+{}4
\mondai{}8+{}9
\mondai{}6+{}6
\vskip5ex

\toi 次の計算をしましょう。

\mondai{}9-{}5
\mondai{}6-{}1
\mondai{}3-{}2
\vskip2ex

\mondai{}8-{}3
\mondai{}7-{}6
\mondai{}6-{}4
\vskip2ex

\mondai{}7-{}2
\mondai{}3-{}3
\mondai{}2-{}1
\vskip2ex

\mondai{}5-{}2
\mondai{}4-{}3
\mondai{}9-{}8
\vskip5ex

\toi 次の計算をしましょう。

\mondai52+17
\mondai38+21
\mondai11+27
\vskip2ex

\mondai74+24
\mondai40+11
\mondai26+53
\vskip5ex


\toi 次の計算をしましょう。

\mondai97-31
\mondai23-11
\mondai68-44
\vskip2ex

\mondai39-29
\mondai76-32
\mondai45-24
\vskip5ex


%\vspace*{2zh}

\end{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
