iwase/koujo の履歴(No.6) - PukiWiki

扶養控除申告書を作るマクロをマイナンバーに対応する書式に合わせて更新した。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%				%
%  扶養控除申告書		%
%				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%!TEX TS-program = XeLaTeX
%!TEX encoding = UTF-8 Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\undefined\XeTeXversion
\documentclass[12pt]{jarticle}
\usepackage[dvipdfmx]{graphicx}
\input fuyou-13-p.inc
\else
\documentclass[12pt,a4paper]{article}
\usepackage[xetex]{graphicx}
\input fuyou-13-x.inc
\fi
%
\setlength{\voffset}		{  39.0mm}
\setlength{\hoffset}		{ -13.0mm}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ここから文書開始		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  研究機関のID		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\税務所轄:{博多}税務署長{福岡市西区}市区町村長
\所属機関:{国立大学法人 九州大学}番号{12345}
\所在地〒{812-8581}{福岡県福岡市東区箱崎6丁目10番1号}
%\所在地〒{819-0395}{福岡県福岡市西区元岡744番地}
\部局{研究院}({1234567890}):{部門}
\事務局{学部等}({0 1 2 3 4})
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  研究代表者のID		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\本人姓{九}{キュウ}
\本人姓{大}{ダイ}
\本人名{某}{ナニ}
\本人名{某}{ガシ}
\本人番号{12345678}
\昭和{1}年{2}月{3}日生
\世帯主{九大 何某}({本人})
\住所〒{123}ー{0123}:{福岡市西区元岡 1 丁目 2 番 3 号}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  配偶者データ			%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\配偶者{九大 何何}昭和{1}年{2}月{3}日住所{福岡市西区元岡 1-2-3}所得{0}円
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  扶養親族データ		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\扶養親族{九大 何某}続柄{子}平成{4}年{5}月{6}日住所{}所得{0}円
\特定扶養{九大 某何}続柄{子}平成{7}年{8}月{9}日住所{}所得{0}円
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\これで終り書き出し		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

インクルードファイルは xelatex 版はテストしたが、pdfplatex 版はテストしていない。

\ifx\undefined\XeTeXversion
 \usepackage[deluxe]{otf}
\else
 \usepackage[no-math]{fontspec}
 \usepackage[boldfont,slantfont]{xeCJK}
 \usepackage{zxjatype}
 \usepackage{zxotf}
 \CJKspace
 %
 \defaultfontfeatures{Mapping=tex-text}
 \setromanfont{Times}\setsansfont{Papyrus}\setmonofont{Arial}
 \setjamainfont[Scale=0.95]{HGSeikaishotaiPRO}
 \setjasansfont[Scale=0.9]{IPAexMincho}
 \setjamonofont[Scale=0.9]{Osaka-Mono}
\fi
\usepackage{ifthen,numbersty}
\usepackage{lscape}
%
\def\税務所轄:#1税務署長#2市区町村長{%
\put(6.0,359.5){\makebox(35,0)[bc]{#1}}%
\put(6.0,336.5){\makebox(35,0)[bc]{\small#2}}}
\def\所属機関:#1番号#2{%
\put(96.0,368.5){\makebox(115,0)[bc]{ #1}}%
\gdef\kikanbangou{#2}}
\def\機関代表:#1氏名#2{\gdef\kikanchou{#1}\gdef\souchou{#2}}
\def\所在地〒#1#2{\gdef\kikanzip{#1}%
\put(96.0,332.5){\makebox(115,0)[bc]{\scriptsize #2}}}
\def\部局#1(#2):#3{\gdef\bukyoku{#1}\gdef\bukyokucode{#2}\gdef\bumon{#3}}
\def\事務局#1(#2){\gdef\jimu{#1}\gdef\bumoncode{#2}}
%
\def\本人所属:#1職#2{\gdef\shozoku{#1}\gdef\shoku{#2}}
\def\住所〒#1ー#2:#3{
\put(273.0,340.0)	{\makebox(15,0)[br]{\scriptsize #1}}
\put(296.5,340.0)	{\makebox(15,0)[bl]{\scriptsize #2}}
\put(255.0,329.5)	{\makebox(140,0)[bl]{\small #3}}
}
\def\昭和#1年#2月#3日生{%
\put(387.5,374.5){\makebox(5,0)[br]{\small 〇}}%
\put(405,377.0){\makebox(5,0)[br]{\footnotesize #1}}%
\put(422,377.0){\makebox(5,0)[br]{\footnotesize #2}}%
\put(439,377.0){\makebox(5,0)[br]{\footnotesize #3}}}
\def\平成#1年#2月#3日{}
\def\世帯主#1(#2){%
\put(396,363.3){\makebox(45,0)[bc]{#1}}%
\put(396,349.3){\makebox(45,0)[bc]{#2}}}
\newcount{\cntLINE} \cntLINE=2840
\newcount{\cntline} \cntline=0
\newcount{\cntkingaku} \cntkingaku=0
\def\配偶者なし{
\put(460.1,330.5){\makebox(5,6)[bc]{\Large 〇}}%
}
\def\配偶者#1昭和#2年#3月#4日住所#5所得#6円{
\put(460.1,343.5){\makebox(5,6)[bc]{\Large 〇}}%
\cntline=\cntLINE \divide\cntline by 10
\put(80.0,\number\cntline){\makebox(50,6)[lc]{#1}}
\advance\cntline by -8
\put(176.5,\number\cntline){\makebox(4,6)[bc]{\small 〇}}
\advance\cntline by 2
\put(191.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #2}}
\put(202.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #3}}
\put(213.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #4}}
\put(285,\number\cntline){\makebox(90,7)[cl]{\small #5}}
\advance\cntline by 5
\cntkingaku=#6
\put(405.0,\number\cntline){\makebox(32,7)[cr]{\tt\small\milnumber\cntkingaku}}
}
\def\扶養親族#1続柄#2平成#3年#4月#5日住所#6所得#7円{
\advance\cntLINE by -225
\cntline=\cntLINE \divide\cntline by 10
\put(85.0,\number\cntline){\makebox(50,6)[lc]{#1}}
\advance\cntline by -6
\put(161.5,\number\cntline){\makebox(5,6)[cc]{#2}}
\advance\cntline by -2
\put(183.2,\number\cntline){\makebox(5,7)[cc]{\small 〇}}
\advance\cntline by 2
\put(191.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #3}}
\put(202.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #4}}
\put(213.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #5}}
\put(285,\number\cntline){\makebox(90,7)[cl]{#6}}
\advance\cntline by 6
\cntkingaku=#7
\put(405.0,\number\cntline){\makebox(32,7)[cr]{\tt\small\milnumber\cntkingaku}}
}
\def\特定扶養#1続柄#2平成#3年#4月#5日住所#6所得#7円{
\advance\cntLINE by -225
\cntline=\cntLINE \divide\cntline by 10
\put(85.0,\number\cntline){\makebox(50,6)[lc]{#1}}
\advance\cntline by -6
\put(161.5,\number\cntline){\makebox(5,6)[cc]{#2}}
\advance\cntline by -1
\put(183.2,\number\cntline){\makebox(5,6)[cc]{\small 〇}}
\advance\cntline by 1
\put(191.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #3}}
\put(202.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #4}}
\put(213.5,\number\cntline){\makebox(4.5,7)[cr]{\scriptsize #5}}
\put(265.0,\number\cntline){\makebox(5,7)[bc]{\large 〇}}
\put(285,\number\cntline){\makebox(90,7)[cl]{#6}}
\advance\cntline by 6
\cntkingaku=#7
\put(395.0,\number\cntline){\makebox(32,7)[cr]{\tt\small\milnumber\cntkingaku}}
}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	特種設定					%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\makeatletter
\makeatother
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	\姓・\名 コマンド				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newcommand{\rubi}[2]{\hbox{\shortstack{{\tiny #2}\\[.0mm]{#1}}}}
\newcommand{\Sei}{}\newcommand{\Mei}{}
\newcommand{\sei}{}\newcommand{\mei}{}
\def\本人姓#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
 \ifthenelse{\equal{\Sei}{}}{}{\xdef\Sei{\Sei\protect{ }}}%
 \xdef\Sei{\Sei\protect\rubi{#1}{#2}}%
  \ifthenelse{\equal{\sei}{}}{}{\xdef\sei{\sei\protect{}}}%
  \xdef\sei{\sei{\protect\bgroup\protect #1\protect\egroup}}%
  \endgroup}
\def\本人名#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
  \ifthenelse{\equal{\Mei}{}}{}{\xdef\Mei{\Mei\protect{ }}}%
  \xdef\Mei{\Mei\protect\rubi{#1}{#2}}%
  \ifthenelse{\equal{\mei}{}}{}{\xdef\mei{\mei\protect{}}}%
  \xdef\mei{\mei{\protect\bgroup\protect #1\protect\egroup}}%
  \endgroup}
\def\本人番号#1{\gdef\ID{#1}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\ここから文書開始			%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\ここから文書開始{
\pagestyle{empty}
%
\begin{document}
\begin{landscape}
\setlength{\textwidth}		{ 200.0mm}
\setlength{\textheight}		{ 280.0mm}
\setlength{\oddsidemargin}	{  -6.8mm}
\setlength{\unitlength}		{   0.5mm}
\begin{picture}(280,200)(0,200)
%
\put(0,0)	{\makebox(550,395){\includegraphics[page=1]{fuyou}}}
%
}
%
\def\これで終り書き出し{
\put(270,363)	{\makebox( 60,0)[bc]{\Sei { } \Mei}}
\put(260,377)		{\makebox(30,8)[lc]{\scriptsize \ID}}
\put(518,390)		{\makebox(30,8)[rc]{\scriptsize \bumoncode}}
\ifx\jimu\empty
\put(0,395){\makebox(30,8)[lc]{\tiny {\bukyokucode}・{\bukyoku}}}
\else
\put(0,395){\makebox(30,8)[lc]{\tiny {\bukyokucode}・{\bukyoku}({\jimu})}}
\fi
\put(0,390){\makebox(30,8)[lc]{\tiny {\bukyoku}\ifx\bumon\empty\else{・{\bumon}}\fi}}
%
\end{picture}
\clearpage
\addtolength{\hoffset}{-0.5mm}
\addtolength{\voffset}{ 0.3mm}
\begin{picture}(280,200)(0,200)
\put(0,0)	{\makebox(550,395){\includegraphics[page=2]{fuyou}}}
\end{picture}
\end{landscape}
\end{document}
}

給与所得者の保険料控除申告書 兼 給与所得者の配偶者特別控除申告書のマクロは変更なしでよかった。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%					%
%  保険料控除・配偶者特別控除申告書	%
%					%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%!TEX TS-program = XeLaTeX
%!TEX encoding = UTF-8 Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\undefined\XeTeXversion
\documentclass[12pt]{jarticle}
\usepackage[dvipdfmx]{graphicx}
\input hoken-haigusha-15-p.inc
\else
\documentclass[12pt,a4paper]{article}
\usepackage[xetex]{graphicx}
\input hoken-haigusha-15-x.inc
\fi
%
\setlength{\voffset}		{  42.5mm}
\setlength{\hoffset}		{ -13.0mm}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ここから文書開始		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  研究機関のID		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\税務所轄:{博多}税務署長
\所属機関:{国立大学法人 九州大学}番号{12345}
%\所在地〒{812-8581}{福岡県福岡市東区箱崎6丁目10番1号}
%\所在地〒{819-0395}{福岡県福岡市西区元岡744番地}
\部局{研究院}({1234567890}):{部門}
\事務局{学部等}({0 1 2 3 4})
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  研究代表者のID		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\本人姓{九}{キュウ}
\本人姓{大}{ダイ}
\本人名{某}{ナニ}
\本人名{某}{ガシ}
\本人番号{12345678}
\配偶者姓{九}{キュウ}
\配偶者姓{大}{ダイ}
\配偶者名{何}{ナニ}
\配偶者名{何}{ガシ}
\配偶者続柄{逑}
\住所{福岡市西区元岡 1 丁目 2 番 3 号}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  保険料控除			%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\一般生命{何何生命}{}{}{\sei\mei}{\hsei\hmei}{\htuduki}{123450}
\新一般生命{何何生命}{}{}{\sei\mei}{\hsei\hmei}{\htuduki}{123450}
\介護医療{某何生命}{}{}{\sei\mei}{\hsei\hmei}{\htuduki}{123450}
\個人年金{某某生命}{}{}{\sei\mei}{\hsei\hmei}{\htuduki}{123450}
\新個人年金{何々生命}{}{}{\sei\mei}{\hsei\hmei}{\htuduki}{123450}
\保険控除額{0}{0}{0}
\地震保険{某々労災}{}{}{\sei\mei}{\sei\mei}{本人}{12340}
\地震控除額{0}{0}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  配偶者控除			%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\配偶者収入{0}(特別控除{0}万円)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  社会保険料控除		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\社会保険{〇△}{}{}{}{123450}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\これで終り書き出し		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

こちらのマクロも同じようなものである。

\ifx\undefined\XeTeXversion
 \usepackage[deluxe]{otf}
\else
 \usepackage[no-math]{fontspec}
 \usepackage[boldfont,slantfont]{xeCJK}
 \usepackage{zxjatype}
 \usepackage{zxotf}
 \CJKspace
 %
 \defaultfontfeatures{Mapping=tex-text}
 \setromanfont{Times}\setsansfont{Papyrus}\setmonofont{Arial}
 \setjamainfont[Scale=0.95]{HGSeikaishotaiPRO}
 \setjasansfont[Scale=0.9]{IPAexMincho}
 \setjamonofont[Scale=0.9]{Osaka-Mono}
\fi
\usepackage{ifthen,numbersty}
\usepackage{lscape}
\usepackage{curves}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  マクロ			%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\税務所轄:#1税務署長{%
\put(30.0,354.5){\makebox(35,0)[bc]{\large #1}}}
\def\所属機関:#1番号#2{%
\put(147.0,366.5){\makebox(90,0)[bc]{\large #1}}\gdef\kikanbangou{#2}}
\def\機関代表:#1氏名#2{\gdef\kikanchou{#1}\gdef\souchou{#2}}
\def\所在地〒#1#2{\gdef\kikanzip{#1}\put(146.0,349.0){\makebox(103,7)[cc]{%{\small 〒#1} 
#2}}}
\def\部局#1(#2):#3{\gdef\bukyoku{#1}\gdef\bukyokucode{#2}\gdef\bumon{#3}}
\def\事務局#1(#2){\gdef\jimu{#1}\gdef\bumoncode{#2}}
%
\def\本人所属:#1職#2{\gdef\shozoku{#1}\gdef\shoku{#2}}
\def\住所#1{
\put(330.0,349.0)	{\makebox(140,7)[cl]{#1}}
}
\def\隅黒{\def\sumi{1}}\def\kuro{1}\def\sumi{0}
%
\newcount{\ippangaku}\ippangaku=0
\newcount{\nippangaku}\nippangaku=0
\newcount{\kaigogaku}\kaigogaku=0
\newcount{\kojingaku}\kojingaku=0
\newcount{\nkojingaku}\nkojingaku=0
\newcount{\ippangakukei}\ippangakukei=0
\newcount{\nippangakukei}\nippangakukei=0
\newcount{\kaigogakukei}\kaigogakukei=0
\newcount{\kojingakukei}\kojingakukei=0
\newcount{\nkojingakukei}\nkojingakukei=0
\def\一般生命#1#2#3#4#5#6#7{\gdef\ippan{#1}\gdef\ippanshurui{#2}\gdef\ippankikan{#3}\gdef\ippankeiyaku{#4}\gdef\ippanshimei{#5}\gdef\ippantuduki{#6}\ippangaku=#7\advance\ippangakukei by #7\ippankojo=\ippangakukei}
\def\新一般生命#1#2#3#4#5#6#7{\gdef\nippan{#1}\gdef\nippanshurui{#2}\gdef\nippankikan{#3}\gdef\nippankeiyaku{#4}\gdef\nippanshimei{#5}\gdef\nippantuduki{#6}\nippangaku=#7\advance\nippangakukei by #7\nippankojo=\nippangakukei}
\def\介護医療#1#2#3#4#5#6#7{\gdef\kaigo{#1}\gdef\kaigoshurui{#2}\gdef\kaigokikan{#3}\gdef\kaigokeiyaku{#4}\gdef\kaigoshimei{#5}\gdef\kaigotuduki{#6}\kaigogaku=#7\advance\kaigogakukei by #7\kaigokojo=\kaigogakukei}
\def\個人年金#1#2#3#4#5#6#7{\gdef\kojin{#1}\gdef\kojinshurui{#2}\gdef\kojinkikan{#3}\gdef\kojinkeiyaku{#4}\gdef\kojinshimei{#5}\gdef\kojintuduki{#6}\kojingaku=#7\advance \kojingakukei by #7\kojinkojo=\kojingakukei}
\def\新個人年金#1#2#3#4#5#6#7{\gdef\nkojin{#1}\gdef\nkojinshurui{#2}\gdef\nkojinkikan{#3}\gdef\nkojinkeiyaku{#4}\gdef\nkojinshimei{#5}\gdef\nkojintuduki{#6}\nkojingaku=#7\advance \nkojingakukei by #7\nkojinkojo=\nkojingakukei}
\newcount{\ippankojo}\ippankojo=0
\newcount{\nippankojo}\nippankojo=0
\newcount{\kaigokojo}\kaigokojo=0
\newcount{\kojinkojo}\kojinkojo=0
\newcount{\nkojinkojo}\nkojinkojo=0
\newcount{\dishinkojo}\dishinkojo=0
\newcount{\shakaikojo}\shakaikojo=0
\newcount{\songaikojo}\songaikojo=0
\newcount{\kojokei}\kojokei=0
\newcount{\dkojokei}\dkojokei=0
\def\保険控除額#1#2#3{\ippankojo=#1\kojokei=#1\kaigokojo=#2\advance\kojokei by #2\kojinkojo=#3\advance\kojokei by #3}
\def\地震控除額#1#2{\dishinkojo=#1\dkojokei=#1\songaikojo=#2\advance\dkojokei by #2}
\newcount{\dishingaku}\dishingaku=0
\newcount{\dishingakukei}\dishingakukei=0
\def\地震保険#1#2#3#4#5#6#7{\gdef\dishin{#1}\gdef\dishinshurui{#2}\def\dishinkikan{#3}\gdef\dishinkeiyaku{#4}\gdef\dishinshimei{#5}\gdef\dishintuduki{#6}\dishingaku=#7\advance \dishingakukei by #7\dishinkojo=\dishingakukei\advance \dishinkojokei by \dishinkojo}
\newcount{\dishinkojo}\dishinkojo=0
\newcount{\dishinkojokei}\dishinkojokei=0
%
\newcount{\shakaigaku}\shakaigaku=0
\newcount{\shakaigakukei}\shakaigakukei=0
\def\社会保険#1#2#3#4#5{\gdef\shakai{#1}\gdef\shakaishurui{#2}\gdef\shakaishimei{#3}\gdef\shakaituduki{#4}\shakaigaku=#5\advance \shakaigakukei by #5\shakaikojo=\shakaigakukei\advance \shakaikojokei by \shakaikojo}
\newcount{\shakaikojo}\shakaikojo=0
\newcount{\shakaikojokei}\shakaikojokei=0
%
\newcount{\hshunyu}\hshunyu=0
\newcount{\hshotoku}\hshotoku=0
\def\配偶者収入#1(特別控除#2万円){
\hshotoku=#1 \advance \hshotoku by -650000
\ifthenelse{\hshotoku<0}{\hshotoku=0}{}
\put(435.0,243.7)	{\makebox( 18,7)[cr]{ \scriptsize\milnumber#1}}
\put(522.0,243.7)	{\makebox( 20,7)[cr]{ \scriptsize\milnumber\hshotoku}}
\put(520.0,184.0)	{\makebox( 20,7)[cr]{ \small\milnumber\hshotoku}}
\put(519.0,114.0)	{\makebox( 20,7)[cr]{ #2}}
}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	特種設定					%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\makeatletter
\makeatother
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	\姓・\名 コマンド				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newcommand{\rubi}[2]{\hbox{\shortstack{{\tiny #2}\\[.0mm]{#1}}}}
\newcommand{\Sei}{}\newcommand{\Mei}{}
\newcommand{\sei}{}\newcommand{\mei}{}
\def\本人姓#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
 \ifthenelse{\equal{\Sei}{}}{}{\xdef\Sei{\Sei\protect{ }}}%
 \xdef\Sei{\Sei\protect\rubi{#1}{#2}}%
 \ifthenelse{\equal{\sei}{}}{}{\xdef\sei{\sei\protect{}}}%
 \xdef\sei{\sei{\protect\bgroup\protect #1\protect\egroup}}%
 \endgroup}
\def\本人名#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
 \ifthenelse{\equal{\Mei}{}}{}{\xdef\Mei{\Mei\protect{ }}}%
 \xdef\Mei{\Mei\protect\rubi{#1}{#2}}%
 \ifthenelse{\equal{\mei}{}}{}{\xdef\mei{\mei\protect{}}}%
 \xdef\mei{\mei{\protect\bgroup\protect #1\protect\egroup}}%
 \endgroup}
\def\本人番号#1{\gdef\ID{#1}}
%
\newcommand{\HSei}{}\newcommand{\HMei}{}
\newcommand{\hsei}{}\newcommand{\hmei}{}
\def\配偶者姓#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
 \ifthenelse{\equal{\HSei}{}}{}{\xdef\HSei{\HSei\protect{ }}}%
 \xdef\HSei{\HSei\protect\rubi{#1}{#2}}%
 \ifthenelse{\equal{\hsei}{}}{}{\xdef\hsei{\hsei\protect{}}}%
 \xdef\hsei{\hsei{\protect\bgroup\protect #1\protect\egroup}}%
 \endgroup}
\def\配偶者名#1#2{\begingroup\def\protect{\noexpand\protect\noexpand}%
 \ifthenelse{\equal{\HMei}{}}{}{\xdef\HMei{\HMei\protect{ }}}%
 \xdef\HMei{\HMei\protect\rubi{#1}{#2}}%
 \ifthenelse{\equal{\hmei}{}}{}{\xdef\hmei{\hmei\protect{}}}%
 \xdef\hmei{\hmei{\protect\bgroup\protect #1\protect\egroup}}%
 \endgroup}
\def\配偶者続柄#1{\gdef\htuduki{#1}}
%
\def\ここから文書開始{
\pagestyle{empty}
%
\begin{document}
\begin{landscape}
\setlength{\textwidth}		{ 200.0mm}
\setlength{\textheight}		{ 280.0mm}
\setlength{\oddsidemargin}	{  -6.8mm}
\setlength{\unitlength}		{   0.5mm}
\setlength\unitlength{0.5mm}
\begin{picture}(280,200)(0,200)
%
\put(9,-2)	{\makebox(547,398){\includegraphics[page=1]{hoken-haigusha}}}
%
}
%
\def\これで終り書き出し{
\put(370.0,365.0)	{\makebox( 60,14)[cc]{ \Sei { } \Mei}}
\put(468.0,303.0)	{\makebox( 60,14)[cc]{ \scriptsize\HSei { } \HMei}}
\put(323,373.0)		{\makebox(30,8)[lc]{\scriptsize \ID}}
\put(535,393.0)		{\makebox(30,8)[lc]{\scriptsize \bumoncode}}
\ifx\jimu\empty
\put(20,395){\makebox(30,8)[lc]{\tiny {\bukyokucode}・{\bukyoku}}}
\else
\put(20,395){\makebox(30,8)[lc]{\tiny {\bukyokucode}・{\bukyoku}({\jimu})}}
\fi
\put(20,390){\makebox(30,8)[lc]{\tiny {\bukyoku}\ifx\bumon\empty\else{・{\bumon}}\fi}}
%
\ifx\undefined\ippan\else
\put( 50.0,291.0)	{\makebox( 45,7)[cc]{ \ippan}}
\put( 93.0,291.0)	{\makebox( 37,7)[cc]{ \scriptsize\ippanshurui}}
\put(127.5,291.0)	{\makebox( 13,7)[cc]{ \scriptsize\ippankikan}}
\put(148.0,291.0)	{\makebox( 39,7)[cc]{ \ippankeiyaku}}
\put(198.0,291.0)	{\makebox( 41,7)[cc]{ \ippanshimei}}
\put(242.5,291.0)	{\makebox( 12,7)[cc]{ \ippantuduki}}
\put(262.7,288.0)	{\scaleput(7,7){\bigcircle{7}}}
\put(278.0,291.0)	{\makebox( 44,7)[cr]{ \milnumber\ippangaku}}
\put( 76.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize\milnumber\ippangakukei}}
\put(205.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\ippankojo}}
\put(298.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\ippankojo}}
\fi
%
\ifx\undefined\nippan\else
\put( 50.0,291.0)	{\makebox( 45,7)[cc]{ \nippan}}
\put( 93.0,291.0)	{\makebox( 37,7)[cc]{ \scriptsize\ippanshurui}}
\put(127.5,291.0)	{\makebox( 13,7)[cc]{ \scriptsize\ippankikan}}
\put(148.0,291.0)	{\makebox( 39,7)[cc]{ \ippankeiyaku}}
\put(198.0,291.0)	{\makebox( 41,7)[cc]{ \ippanshimei}}
\put(242.5,291.0)	{\makebox( 12,7)[cc]{ \ippantuduki}}
\put(254.5,288.0)	{\scaleput(7,7){\bigcircle{7}}}
\put(278.0,291.0)	{\makebox( 44,7)[cr]{ \milnumber\ippangaku}}
\put( 76.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize\milnumber\ippangakukei}}
\put(205.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\ippankojo}}
\put(298.0,231.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\ippankojo}}
\fi
%
\ifx\undefined\kaigo\else
\put( 50.0,220.5)	{\makebox( 45,7)[cc]{ \kaigo}}
\put( 93.0,220.5)	{\makebox( 37,7)[cc]{ \scriptsize\kaigoshurui}}
\put(127.5,220.5)	{\makebox( 13,7)[cc]{ \scriptsize\kaigokikan}}
\put(148.0,220.5)	{\makebox( 39,7)[cc]{ \kaigokeiyaku}}
\put(198.0,220.5)	{\makebox( 41,7)[cc]{ \kaigoshimei}}
\put(242.5,220.5)	{\makebox( 12,7)[cc]{ \kaigotuduki}}
\put(278.0,220.5)	{\makebox( 44,7)[cr]{ \milnumber\kaigogaku}}
\fi
\put( 76.0,196.0)	{\makebox( 44,7)[cr]{ \scriptsize\milnumber\kaigogakukei}}
\put(298.0,196.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\kaigokojo}}
%
\ifx\undefined\kojin\else
\put( 50.0,185.0)	{\makebox( 45,7)[cc]{ \kojin}}
\put( 93.0,185.0)	{\makebox( 37,7)[cc]{ \scriptsize\kojinshurui}}
\put(127.5,185.0)	{\makebox( 13,7)[cc]{ \scriptsize\kojinkikan}}
\put(148.0,185.0)	{\makebox( 39,7)[cc]{ \kojinkeiyaku}}
\put(198.0,187.5)	{\makebox( 41,7)[cc]{ \scriptsize\kojinshimei}}
\put(242.5,185.0)	{\makebox( 12,7)[cc]{ \scriptsize\kojintuduki}}
\put(262.7,182.0)	{\scaleput(7,7){\bigcircle{7}}}
\put(278.0,185.0)	{\makebox( 44,7)[cr]{ \milnumber\kojingaku}}
\put( 76.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize\milnumber\kojingakukei}}
\put(205.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\kojinkojo}}
\put(298.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\kojinkojo}}
\fi
%
\ifx\undefined\nkojin\else
\put( 50.0,185.0)	{\makebox( 45,7)[cc]{ \nkojin}}
\put( 93.0,185.0)	{\makebox( 37,7)[cc]{ \scriptsize\kojinshurui}}
\put(127.5,185.0)	{\makebox( 13,7)[cc]{ \scriptsize\kojinkikan}}
\put(148.0,185.0)	{\makebox( 39,7)[cc]{ \kojinkeiyaku}}
\put(198.0,187.5)	{\makebox( 41,7)[cc]{ \scriptsize\kojinshimei}}
\put(242.5,185.0)	{\makebox( 12,7)[cc]{ \scriptsize\kojintuduki}}
\put(254.5,182.0)	{\scaleput(7,7){\bigcircle{7}}}
\put(278.0,185.0)	{\makebox( 44,7)[cr]{ \milnumber\kojingaku}}
\put( 76.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize\milnumber\kojingakukei}}
\put(205.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\kojinkojo}}
\put(298.0,136.0)	{\makebox( 44,7)[cr]{ \scriptsize \milnumber\kojinkojo}}
\fi
%
\put(298.0, 95.0)	{\makebox( 44,7)[cr]{ \milnumber\kojokei}}
%
\ifx\dishin\empty\else
\put( 33.0, 48.0)	{\makebox( 45,7)[cc]{ \dishin}}
\put( 81.5, 48.0)	{\makebox( 37,7)[cc]{ \small\dishinshurui}}
\put(125.0, 48.0)	{\makebox( 13,7)[cc]{ \small\dishinkikan}}
\put(144.0, 48.0)	{\makebox( 39,7)[cc]{ \dishinkeiyaku}}
\put(187.0, 48.0)	{\makebox( 41,7)[cc]{ \dishinshimei}}
\put(234.0, 48.0)	{\makebox( 12,7)[cc]{ \dishintuduki}}
\put(257.5,39.0){
 \renewcommand{\xscale}{1}
 \renewcommand{\xscaley}{-1}
 \renewcommand{\yscale}{0.7}
 \renewcommand{\yscalex}{0.7}
 \scaleput(9,9){\bigcircle{9}}
 }
\put(278.0, 48.0)	{\makebox( 44,7)[cr]{ \milnumber\dishingaku}}
\put(134.5, 27.5)	{\makebox( 44,7)[cr]{ \small\milnumber\dishingakukei}}
\put(298.0, 27.5)	{\makebox( 44,7)[cr]{ \small 0}}
\put( 95.0,  9.0)	{\makebox( 44,7)[cr]{ \milnumber\dishinkojo}}
\put(221.0,  9.0)	{\makebox( 44,7)[cr]{ \milnumber\songaikojo}}
\put(297.0,  9.0)	{\makebox( 44,7)[cr]{ \milnumber\dishinkojokei}}
\fi
%
\ifx\shakai\empty\else
\put(361.5, 80.0)	{\makebox( 30,7)[cc]{ \scriptsize\shakai}}
\put(391.5, 80.0)	{\makebox( 37,7)[cc]{ \scriptsize\shakaishurui}}
\put(432.5, 80.0)	{\makebox( 41,7)[cc]{ \shakaishimei}}
\put(478.5, 80.0)	{\makebox( 12,7)[cc]{ \shakaituduki}}
\put(501.0, 80.0)	{\makebox( 44,7)[cr]{ \milnumber\shakaigaku}}
\put(499.7, 60.5)	{\makebox( 44,7)[cr]{ \small\milnumber\shakaigakukei}}
\fi
%
\ifx\sumi\kuro
\put(569.5, 2.5)	{\makebox(0,0){\rule{11mm}{11mm}}}
\fi
%
\end{picture}
\clearpage
\addtolength{\voffset}		{ -4.8mm}
\addtolength{\hoffset}		{ -3.8mm}
\begin{picture}(280,200)(0,200)
\put(0,-7)	{\makebox(547,403){\includegraphics[page=2]{hoken-haigusha}}}
\end{picture}
\end{landscape}
\end{document}
}

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS