iwase/moushitate の変更点 - PukiWiki

昨年は、やっつけで扶養の申し立て書のマクロも作っていた。これも、もしかしたら uplatex でも動くかもしれない。

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %								%
 %  扶養の申し立て書・九大用		%
 %								%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %!TEX TS-program = XeLaTeX
 %!TEX encoding = UTF-8 Unicode
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \def\mac{} 
 \input moushitate-18.inc
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%	
 \申し立て					%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 \別居{九大 何某,九大 某何}
 %
 \被扶養者A平成{1}年{2}月{3}日生まれ({21}歳)続柄{続柄}
 \被扶養者B平成{4}年{5}月{6}日生まれ({18}歳)続柄{続柄}
 \現在無職:理由{後も組合員が扶養しなければならない事情。特に18歳以上の被扶養者については、就労できない理由を詳しく記載する。}
 \他の扶養義務者無し
 \令和{1}年{8}月{12}日
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%	
 \申し立て					%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 \別居{九大 何某}
 %
 \被扶養者平成{1}年{2}月{3}日生まれ({18}歳)続柄{続柄}
 \現在無職:理由{今後も組合員が扶養しなければならない事情。特に18歳以上の被扶養者については、就労できない理由を詳しく記載する。}
 \他の扶養義務者無し
 \平成{31}年{4}月{12}日
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \これで終り書き出し				%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

以下が moushitate-18.inc の中身である。均等割り付けのマクロ fitwidth.sty は http://www.math.nagoya-u.ac.jp/~kubo/ja/latex/tips-003.html から取って来た。

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %											%
 %	扶養の申し立て書 Macro by Norio Iwase	%
 %											%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \ifx\undefined\XeTeXversion
  \documentclass[12pt,a4j]{jarticle}
  \usepackage[dvipdfmx]{graphicx,color}
  \ifdefined\mac\usepackage[deluxe]{otf}\fi
 \else
  \documentclass[12pt,a4paper]{article}
  \usepackage[xetex]{graphicx,color}
  \usepackage[no-math]{fontspec}
  \usepackage[boldfont,slantfont]{xeCJK}
  \usepackage{zxjatype}
  \ifdefined\mac\usepackage{zxotf}\fi
  \CJKspace
  \defaultfontfeatures{Mapping=tex-text,Scale=0.9}
  \usepackage[hiragino]{zxjafont}
  \setjamainfont[Scale=0.82]{HiraMinProN-W3}
  \setjasansfont[Scale=0.73]{HiraMinProN-W3}
  \ifdefined\mac
   \usepackage{zxotf}
   \setromanfont{Times}\setsansfont{Papyrus}\setmonofont{Arial}
   \setjamainfont[Scale=0.9]{HGSeikaishotaiPRO}
   \setjamonofont[Scale=0.9]{Osaka-Mono}
   \setjasansfont[Scale=0.8]{HiraMinProN-W3}
  \fi
 \fi
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %	共通設定						%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \ifdefined\XeTeXversion
  \setlength{\voffset}		{  41.0mm}
  \setlength{\hoffset}		{  -9.5mm}
 \else
  \setlength{\voffset}		{  50.0mm}
  \setlength{\hoffset}		{  -1.9mm}
 \fi
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \usepackage{amsmath,amssymb}
 \usepackage{curves}
 \usepackage{ifthen,numbersty}
 \usepackage{fitwidth}
 \usepackage{uline-x}
 \def\textul#1{\uline{#1}}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %  マクロ						%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 \def\申し立て{
 \clearpage
 \begin{picture}(200,240)(0,190)
 \ifdefined\XeTeXversion
  \put(10.0,-11.5)	{\makebox(397.5,554.5){\includegraphics{fuyou-mousitate15}}}
 \else
  \put( 9.5,-12.0)	{\makebox(397.5,554.5){\includegraphics{fuyou-mousitate15.pdf}}}
 \fi
 }
 %
 \def\別居#1{
 \put(23,520)	{\makebox(200,8)[cc]{\large #1}}
 \put(391,507){\thicklines\def\xscale{1}\def\xscaley{-1}\def\yscale{0.4}\def\yscalex{0.4}
  \scaleput(20,20){\color{blue}\bigcircle{26}}}
 }
 %
 \def\同居#1{
 \put(23,520)	{\makebox(200,8)[cc]{\large #1}}
 \put(335,507){\thicklines\def\xscale{1}\def\xscaley{-1}\def\yscale{0.4}\def\yscalex{0.4}
  \scaleput(20,20){\color{blue}\bigcircle{26}}}
 }
 %
 \def\被扶養者昭和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(59.0,486.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,486)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,486)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,486)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,486)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,486)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,485)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者平成#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(79.0,486.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,486)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,486)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,486)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,486)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,486)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,485)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者令和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(99.0,486.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,486)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,486)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,486)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,486)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,486)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,485)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者A昭和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(59.0,495.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,495)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,495)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,495)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,495)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,495)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,495)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者A平成#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(79.0,495.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,495)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,495)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,495)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,495)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,495)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,495)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者A令和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(99.0,495.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,495)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,495)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,495)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,495)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,495)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,495)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者B昭和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(59.0,479.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,479)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,479)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,479)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,479)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,479)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,479)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者B平成#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(79.0,479.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,479)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,479)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,479)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,479)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,479)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,479)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\被扶養者B令和#1年#2月#3日生まれ(#4歳)続柄#5{
 \put(99.0,479.5)	{\makebox(8,8){\LARGE 〇}}
 \put(140,479)	{\makebox(8,8)[cr]{\large #1}}
 \put(178,479)	{\makebox(8,8)[cr]{\large #2}}
 \put(216,479)	{\makebox(8,8)[cr]{\large #3}}
 \put(277,479)	{\makebox(8,8)[cc]{\large #4}}
 \put(395,479)	{\makebox(8,8)[cc]{\large #5}}
 \put(-20,479)	{\makebox(8,8)[cl]{\ifdefined\XeTeXversion\large\fi\sf{生\hskip.04em{年}\hskip.04em{月}\hskip.04em{日}}\ \,\textul{( \ \ifdefined\XeTeXversion\,\fi{昭} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{平} \ \ifdefined\XeTeXversion\hskip-.1em\else\hskip-.2em\fi{令}\ \ifdefined\XeTeXversion\,\fi)   \ \ \ \ifdefined\XeTeXversion\hskip.01em\else\hskip-.21em\fi{年}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{月}  \ \ \ifdefined\XeTeXversion\hskip-.2em\else\hskip-.4em\fi{日}}\ \ \ifdefined\XeTeXversion\,\fi(\textul{ \ \ \  \ \ \ \ \ifdefined\XeTeXversion\hskip.65em\else\hskip.5em\fi}歳\hskip0em) \ \ifdefined\XeTeXversion\,\fi\hskip.65em続\hskip-.06em柄\textul{    \ \hskip.5em}}}
 }
 %
 \def\現在無職:理由#1{
 \put(-18,354)	{\makebox(8,8){\huge 〇}}
 \put(-18,290)	{\makebox(8,8)[tl]{\begin{minipage}{159mm}\baselineskip16.5pt #1\end{minipage}}}
 }
 %
 \def\他の扶養義務者無し{
 \put(200,191)	{\makebox(8,8){\huge 〇}}
 }
 %
 \def\平成#1年#2月#3日{
 \put(285.5,-42){\makebox(20,8)[cr]{\sf 平\hskip.2em成}}
 \put(330.6,-42){\makebox(20,8)[cr]{\sf 年}}
 \put(376.6,-42){\makebox(20,8)[cr]{\sf 月}}
 \put(422.6,-42){\makebox(20,8)[cr]{\sf 日}}
 \put(314.0,-42){\makebox(20,8)[cr]{#1}}
 \put(360.0,-42){\makebox(20,8)[cr]{#2}}
 \put(406.0,-42){\makebox(20,8)[cr]{#3}}
 \end{picture}
 }
 \def\令和#1年#2月#3日{
 \put(285.5,-42){\makebox(20,8)[cr]{\sf 令\hskip.2em和}}
 \put(330.6,-42){\makebox(20,8)[cr]{\sf 年}}
 \put(376.6,-42){\makebox(20,8)[cr]{\sf 月}}
 \put(422.6,-42){\makebox(20,8)[cr]{\sf 日}}
 \put(314.0,-42){\makebox(20,8)[cr]{#1}}
 \put(360.0,-42){\makebox(20,8)[cr]{#2}}
 \put(406.0,-42){\makebox(20,8)[cr]{#3}}
 \end{picture}
 }
 %
 \def\これで終り書き出し{
 \end{document}
 }
 \begin{document}
 %


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS