%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%   Activity Report用 マクロ
%%                         May 25, 1998 by M. Takasu
%%                         with the help of a colleague
%%   macro1.tex と名前を付けてセーブして下さい。
%%   以下は変更しないで下さい。
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentstyle[12pt]{jarticle}
\pagestyle{empty}
\headheight=0mm
\headsep=-5mm
\oddsidemargin=-1cm
\evensidemargin=-1cm
\textheight=226mm
\textwidth=170mm
\parindent=0cm
\leftskip=0.5cm
\parindent=-0.5cm

%%-------------------------------------------------------------
%%      basic definitions  copied from rigakubu macro      
%%---------------------------------------------------------------

\newbox\dummybox
\long\def\CHKnull#1#2{% #1 is input, #2 is command to be used if #1 exists
  \setbox\dummybox=\vtop{#1}%
  \ifdim\wd\dummybox<1mm%       % don't do #2 if #1 is empty
  \else{#2}%
  \fi%
  }

%%%%%%%%%%%%%%%%%%% 項目コマンド生成用マクロ 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% \template{コマンド名}{項目タイトル}{#3}{#4}
%%    タイトルは一度だけ表示される.
%%    #3, #4は項目内容の前後に挿入される(スペーシングの調整用のつもり)
\makeatletter
\def\template#1#2#3#4{%
  \long\@namedef{#1}##1{%
    \CHKnull{##1}{
      \@ifundefined{#1p}%%% if \#1p is defined, ...
      {\global\@namedef{#1p}{\relax}%%% then
        \CHKnull{#2}
        {\parindent=-0.5cm\vspace{0.7cm}{\bf #2}\smallskip\par}}%
      {\relax}%%% else
      #3##1\par\smallskip#4}%
    }}%
\makeatother
%%

%%%%%%%%%%%%%%%%%%%  研究室名 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\long\def\jlab#1{
  \newpage%
  \begin{center}\Large#1\end{center}%
  \normalsize}%

%%%%%%%%%%%%%%%%%%%  Name of Lab %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\long\def\lab#1{
  \newpage              % start new page for each person
  \begin{center}\Large#1\end{center}%
  \normalsize}%

%%---------------------- 日本語版 ----------------------------------

\template{jresults}{97年度の成果}{}{}
\template{jmembers}
  {{\normalsize なお、本研究室の構成は以下の通りである。(98年3月現在)}}
  {\hspace*{1.0cm}}{}
\template{jprizes}{受賞}{}{}
\template{jkokusai}{国際雑誌}{}{}
\template{jkokunai}{国内雑誌}{}{}
\template{jpapers}{学術論文}{}{}
\template{jproceedings}{講究録等}{}{}
\template{jhon}{著書}{}{}
\template{jinternational}{国際会議}{}{}
\template{jdomestic}{国内会議}{}{}
\template{jkaigi}{}{\leftskip=0.8cm}{}
\template{jdoctor}{博士論文}{}{}
\template{jmaster}{修士論文}{}{}

%%---------------------- 英語版----------------------------------
\template{results}{Research Activities Apr 97 -- Mar 98}{}{}
\template{members}
  {{\normalsize Our group consists of the following members.}}
  {\hspace*{1.0cm}}{}
\template{prizes}{Prizes}{}{}
\template{kokusai}{Papers}{}{}
\template{kokunai}{Papers in Japanese}{}{}
\template{jpapers}{Academic Papers}{}{}
\template{proceedings}{Proceedings}{}{}
\template{hon}{Books}{}{}
\template{international}{Intenational Conferences}{}{}
\template{domestic}{Conferences in Japan}{}{}
\template{kaigi}{}{\leftskip=0.8cm}{}
\template{doctor}{Docter thesis}{}{}
\template{master}{Master thesis}{}{}

%%--------------------------------------------------------
\endinput

%% end of macro1.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%