iwase/hifuyou2 - PukiWiki

昨年も被扶養者申告書(確認あるいは検認用)のマクロを更新していた。これも、もしかしたら uplatex でも動くかもしれない。

毎度のことながら、似たような書類ばかりを異なる書式で提出させられるのはかなわない。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%								%
%  被扶養者申告書・九大用		%
%								%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%!TEX TS-program = XeLaTeX
%!TEX encoding = UTF-8 Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input kennin-18.inc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ここから文書開始				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\提出先:{文部科学省}共済組合{九州大学}支部
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  本人のID					%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\所属部局:{所属}職{職}
\本人姓{九}{キュウ}
\本人姓{大}{ダイ}
\本人名{某}{ボウ}
\本人名{某}{ボウ}
\本人({昭和}{12}年{03}月{04}日生まれ)
\本人番号{1234567800}
\〒{819-0385}住所{福岡市西区元岡1丁目2番3号}
\電話{092-802-1234 (伊都-1234)}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\申告:平成{31}年{8}月{9}日		%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\配偶者姓{九}{キュウ}
\配偶者姓{大}{ダイ}
\配偶者名{何}{ナニ}
\配偶者名{何}{ナニ}
\性別{性別}続柄{続柄}
\配偶者({昭和}{12}年{03}月{04}日生まれ)
\配偶者所得推計{\scriptsize パート・ \\ アルバイト}で{123456}円住所{申告者に同じ}で{}より%更新の為
%
\被扶養者姓{九}{キュウ}
\被扶養者姓{大}{ダイ}
\被扶養者名{某}{ボウ}
\被扶養者名{何}{ナニ}
\性別{性別}続柄{続柄}
\被扶養者({平成}{12}年{03}月{04}日生まれ)
\被扶養者所得推計{\scriptsize なし}で{0}円住所{申告者に同じ}で{}より%更新の為
%
\被扶養者姓{九}{キュウ}
\被扶養者姓{大}{ダイ}
\被扶養者名{何}{ナニ}
\被扶養者名{某}{ボウ}
\性別{性別}続柄{続柄}
\被扶養者({令和}{1}年{03}月{04}日生まれ)
\被扶養者所得推計{\scriptsize なし}で{0}円住所{申告者に同じ}で{}より%更新の為
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\これで終り書き出し				%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

以下が kennin-18.inc の中身である。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%										%
%	被扶養者申告書 Macro by Norio Iwase	%
%										%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\undefined\XeTeXversion
 \documentclass[12pt,a4paper]{article}
 \usepackage[dvipdfmx]{graphicx,color}
 \usepackage[deluxe]{otf}
 \usepackage{uline--}
\else
 \documentclass[12pt,a4paper]{article}
 \usepackage[xetex]{graphicx,color}
 \usepackage[no-math]{fontspec}
 \usepackage[boldfont,slantfont]{xeCJK}
 \usepackage{zxjatype}
 \usepackage{zxotf}
 \usepackage{xunicode}\usepackage{xltxtra}
 \usepackage{uline-x}
 \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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	共通設定					%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\voffset}		{ 41.0mm}
\setlength{\hoffset}		{-12.0mm}
\def\textul#1{\uline{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{ifthen,numbersty}
\usepackage{lscape}
\usepackage{fitwidth}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  マクロ						%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\申告:平成#1年#2月#3日{%
\gdef\申告年{#1}\gdef\申告月{#2}\gdef\申告日{#3}
\put( 75.0,51.0){\makebox(20,8)[cr]{\small \申告年}}%
\put(110.0,51.0){\makebox(20,8)[cr]{\small \申告月}}
\put(145.0,51.0){\makebox(20,8)[cr]{\small \申告日}}}
%
\def\申立:平成#1年#2月#3日{
\put(318.0,-42){\makebox(20,8)[cr]{#1}}%
\put(364.0,-42){\makebox(20,8)[cr]{#2}}
\put(410.0,-42){\makebox(20,8)[cr]{#3}}}
%
\def\提出先:#1共済組合#2支部{\gdef\kumiai{#1}\gdef\shibu{#2}}
\def\所属部局:#1職#2{\gdef\shozoku{#1}\gdef\shoku{#2}}
\def\電話#1{\gdef\denwa{#1}}
\def\〒#1住所#2{\gdef\zip{#1}\gdef\jusho{#2}}
%
\newcounter{FUYOSHA}
\setcounter{FUYOSHA}{211}
\def\配偶者所得推計#1で#2円住所#3で#4より{
\gdef\haigushashotoku{#2}
\put(250.0,\value{FUYOSHA})	{\makebox( 20,8)[cr]{\small 円}}
\addtocounter{FUYOSHA}{5}
\put(45.0,\value{FUYOSHA})	{\makebox( 20,8)[cc]{\HSei { }\HMei}}
\put(110.5,\value{FUYOSHA})	{\makebox( 20,8)[cc]{$\substack{\text{\gender}\\[3.5mm]\text{\relation}}$}}
\put(157.0,\value{FUYOSHA})	{\makebox( 20,8)[cc]{\small\hgengo \,\hbirthyear\! 年 \!\hbirthmon\! 月 \!\hbirthday\! 日}}
\put(202.0,\value{FUYOSHA})	{\makebox( 20,0)[cc]{\begin{minipage}[c]{16.5mm}\small\hfil{#1}\hfil\\\end{minipage}}}
\addtocounter{FUYOSHA}{5}
\put(250.0,\value{FUYOSHA})	{\makebox( 14,0)[cr]{\small{\milnumber#2}}}
\put(345.0,\value{FUYOSHA})	{\makebox( 20,0)[cr]{\begin{minipage}[c]{44.0mm}\small#3\end{minipage}}}
\put(442.0,\value{FUYOSHA})	{\makebox( 20,0)[cc]{\begin{minipage}[c]{24.0mm}\small#4\end{minipage}}}
\addtocounter{FUYOSHA}{-44}
%\def\Sei{}\def\Mei{}\def\sei{}\def\mei{}
\def\HSei{}\def\HMei{}\def\hsei{}\def\hmei{}
%\def\gender{}\def\relation{}
%\def\gengo{}\def\birthyear{}\def\birthmon{}\def\birthday{}
\def\hgengo{}\def\hbirthyear{}\def\hbirthmon{}\def\hbirthday{}
}%
\def\被扶養者所得推計#1で#2円住所#3で#4より{
\put(250.0,\value{FUYOSHA})	{\makebox( 20,8)[cr]{\small 円}}
\addtocounter{FUYOSHA}{5}
\put(45.0,\value{FUYOSHA})	{\makebox( 20,8)[cc]{\HSei { }\HMei}}
\put(110.5,\value{FUYOSHA})	{\makebox( 20,8)[cc]{$\substack{\text{\gender}\\[3.5mm]\text{\relation}}$}}
\put(157.0,\value{FUYOSHA})	{\makebox( 20,8)[cc]{\small\hgengo \,\hbirthyear\! 年 \!\hbirthmon\! 月 \!\hbirthday\! 日}}
\put(202.0,\value{FUYOSHA})	{\makebox( 20,0)[cc]{\begin{minipage}[c]{16.5mm}\small\hfil{#1}\hfil\\\end{minipage}}}
\addtocounter{FUYOSHA}{5}
\put(250.0,\value{FUYOSHA})	{\makebox( 14,0)[cr]{\small{\milnumber#2}}}
\put(345.0,\value{FUYOSHA})	{\makebox( 20,0)[cr]{\begin{minipage}[c]{44.0mm}\small#3\end{minipage}}}
\put(442.0,\value{FUYOSHA})	{\makebox( 20,0)[cc]{\begin{minipage}[c]{24.0mm}\small#4\end{minipage}}}
\addtocounter{FUYOSHA}{-44}
%\def\Sei{}\def\Mei{}\def\sei{}\def\mei{}
\def\HSei{}\def\HMei{}\def\hsei{}\def\hmei{}
%\def\gender{}\def\relation{}
%\def\gengo{}\def\birthyear{}\def\birthmon{}\def\birthday{}
\def\hgengo{}\def\hbirthyear{}\def\hbirthmon{}\def\hbirthday{}
}%
\pagestyle{empty}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	マクロ						%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newcommand{\rubi}[2]{\hbox{\shortstack{{\tiny #2}\\[.0mm]{#1}}}}
\newcommand{\Sei}{}\newcommand{\Mei}{}
\newcommand{\sei}{}\newcommand{\mei}{}
\def\HSei{}\def\HMei{}
\def\hsei{}\def\hmei{}
\newcommand{\本人姓}[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}
\newcommand{\本人名}[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#2年#3月#4日生まれ){\def\gengo{#1}\def\birthyear{#2}\def\birthmon{#3}\def\birthday{#4}}
\def\本人番号{\def\bango}
\def\配偶者(#1#2年#3月#4日生まれ){\def\hgengo{#1}\def\hbirthyear{#2}\def\hbirthmon{#3}\def\hbirthday{#4}}
\newcommand{\配偶者姓}[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}
\newcommand{\配偶者名}[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#2年#3月#4日生まれ){\def\hgengo{#1}\def\hbirthyear{#2}\def\hbirthmon{#3}\def\hbirthday{#4}}
\newcommand{\被扶養者姓}[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}
\newcommand{\被扶養者名}[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続柄#2{\def\gender{#1}\def\relation{#2}}
%
\def\ここから文書開始{
%
\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(.5,7.5)	{\makebox(578,376){\includegraphics{hifuyou13kennin1}}}
%
\put(.5,7)	{\makebox(578,376){\includegraphics[width=297.2mm]{hifuyou13kennin}}}}
%
\def\これで終り書き出し{
\put(148.0,311.0)	{\makebox( 60,8)[cl]{\Sei { } \Mei}}
\put(148.0,296.0)	{\makebox( 60,8)[cl]{\gengo \ \birthyear 年 \birthmon 月 \birthday 日}}
\put(408.0,337.5)	{\makebox( 60,8)[cl]{\large\shozoku}}
\put(148.0,337.5)	{\makebox( 60,8)[cl]{\large\bango}}
\put(55,67.5)		{\makebox(100,8)[cr]{{\kumiai}共済組合\ {\shibu}支部長}}
\put(360.0,77.5)	{\makebox(140,8)[cl]{\small 〒 \zip}}
\put(360.0,67.5)	{\makebox(140,8)[cl]{\jusho}}
%\put(360.0,51.5)	{\makebox(140,8)[cl]{\sei \ \mei}}
%\put(360.0,51.5)	{\makebox(140,8)[cl]{\includegraphics[width=25mm]{signature.jpg}}}
%
\end{picture}
\end{landscape}
\clearpage
\end{document}
}
%

添付ファイル: filehifuyou13kennin.pdf 269件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-04-22 (水) 08:44:18