%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% sadoku.sty for JSCE
%  土木学会論文集および構造工学論文集の査読修正依頼頁用スタイルファイル
%    ver. 10.12.1996
%  サンプルは \endinput のうしろにあります．
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\input{longtable.sty}
%
% ここで longtable.sty が必要になります．これは例えば
%   ftp://ftp.tohoku.ac.jp/pub/TeX/latex-styles/MZ5-array/longtable.doc
% から得ることができます．MZ シリーズは docstrip が必要ですが．．．
%
\newif\ifkouzoukougaku \kouzoukougakufalse % 論文集の方をします．
%                      \kouzoukougakutrue  % 構造工学論文集の方をします．
\textheight=240mm
\textwidth=170mm
\topmargin=-6mm
\headheight=8mm
\oddsidemargin=-3.5mm
\evensidemargin=-3.5mm
%
% OFSS vs. NFSS
\@ifundefined{reset@font}{\let\reset@font\empty}{}
%
\def\ronbunbangou#1{\gdef\@ronbunbangou{#1}}
\ronbunbangou{0--0}
%
% KINTOU-WARITSUKE from "LaTeX bibunsho sakusei nyumon"
% "kintou" modified  \kintou{kono-nagasa}{kono-moji}
\def\kintou#1#2{%
  \setbox\@tempboxa\hbox{#1}\makebox[\wd\@tempboxa]{%
  \@ifundefined{jintercharskip}{%
    \kanjiskip=0pt plus 1fill minus 1fill
    \xkanjiskip=\kanjiskip #2}{%
    \jintercharskip=0pt plus 1fill minus 1fill
    \jasciikanjiskip=\jintercharskip #2}}}
%
\def\@oddhead{%
 \ifkouzoukougaku
  \hspace{5mm} 4. 修正意見 \hspace{4cm} 論文番号~
   \fbox{\hbox to 1.5cm{\rule[-1mm]{0mm}{5mm}\hfil
                        \@ronbunbangou\hfil\mbox{}}} \hfill%
     \reset@font\xpt\rm\thepage/\pageref{page:lastpage} 枚中
     \hspace{2cm}\mbox{}%
 \else
  \ifdim\thepage pt<2pt {\Large 修~正~意~見}
   \else \mbox{} \fi \hfill
   (\reset@font\xpt\rm\thepage/\pageref{page:lastpage})
 \fi}
\let\@oddfoot\@empty\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot
%
\newcounter{entryno}
\def\entry#1#2#3{\stepcounter{entryno} \theentryno &
 \ifkouzoukougaku (#1) \else #1 \fi & #2 & #3 \\}
%
\def\review{%
\begin{longtable}{|p{1.2cm}|p{1.2cm}|p{2cm}|p{10.6cm}|}
%
\ifkouzoukougaku
% 構造工学論文集用ヘッダ %%%%%%%
\hline
 No. & \shortstack{(a)\\or(b)} & \shortstack{箇　所\\(頁，行)} &
 \kintou{修正意見の内容修正意見の内容修正意見の内容}{修正意見} \\
\else
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 論文集用 %%%%%%%%%%%%%%%%%%%%%%
 \multicolumn{2}{l}{~} & \multicolumn{2}{l}{\fbox{\shortstack[l]{%
     ~~~ 修正意見の分類 \\
     I~~ 修正が必要な事項 \\
     II~ 修正が望ましい事項 \\
     III 記述の誤り，不明な点 \\
     IV~ その他}}} \\
 \multicolumn{4}{l}{~} \\
%
\hline
  No. & \shortstack{分類\\番号} & \shortstack{箇　所\\(頁，行)} &
  \kintou{修正意見の内容修正意見の内容修正意見の内容}{修正意見の内容} \\
\fi
\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endfirsthead                 % ここまでが一番最初の表タイトルと項目欄
%
\ifkouzoukougaku
% 構造工学論文集用ヘッダ %%%%%%%%
\hline
 No. & \shortstack{(a)\\or(b)} & \shortstack{箇　所\\(頁，行)} &
 \kintou{修正意見の内容修正意見の内容修正意見の内容}{修正意見} \\
\else
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 論文集用 %%%%%%%%%%%%%%%%%%%%%%
\hline
  No. & \shortstack{分類\\番号} & \shortstack{箇　所\\(頁，行)} &
  \kintou{修正意見の内容修正意見の内容修正意見の内容}{修正意見の内容} \\
\fi
\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endhead          % ここまでが後続する頁の表タイトル付加文字列と項目欄
\hline
\endfoot          % ここまでが分割された場合の表の最後につけるコメント
\hline
\endlastfoot                          % ここまでが最後につけるコメント
}
%
\def\endreview{\end{longtable}\label{page:lastpage}}
%
\endinput
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  サンプルはここから
%
\ifx\gtfam\undefined
 \documentstyle[sadoku]{j-article}
\else
 \documentstyle[sadoku]{jarticle}
\fi
%
% \setlongtables % 最後の最後に必要な，幅を読み込むコマンド
%
%%%%%%%% 構造工学論文集の場合は次の２行をアクティブに %%%%%%%%%%%%%%%%%%
%
% \kouzoukougakutrue  % 構造工学論文集の方をします．
% \ronbunbangou{4--5}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\begin{document}

\begin{review}
%  構造工学論文集の場合は，次のようになります．
%
%  \entry{a}{p.1, 右下4行}{「できた」とあるが，本当か}
%
%  \entry{b}{p.1, 右下}{この箇所は長過ぎて，何を}
%
%  論文集の場合は，次のようになります．単に最初の引数が違うだけ
%
\entry{I}{p.1, 右下4行}{「表現できたので」とあるが，本当か}
%
\entry{II}{p.1, 右下}{この箇所は長過ぎて，何を}
%
\entry{II}{p.1, 右下}{この箇所は長過ぎて，
\begin{equation}
 f=a+b
\end{equation}
何を言いたいのかわからない．}
%
\entry{I}{p.1, 右下4行}{「できたので」とあるが，
\begin{enumerate}
\item 一番目
\item 二番目
\end{enumerate}
本当か}
%
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
\entry{}{}{}
%
\end{review}

\end{document}
