Annotation of OpenXM/src/asir-doc/papers/isisrr.sty, Revision 1.1
1.1 ! noro 1: % isisrr.sty --- a style file for research report/memorandum of ISIS
! 2: % Release 1.0
! 3: %
! 4: % Originally written by T. Ohtani Jan. 1991
! 5: %
! 6: % a Revised by Y. Takada 6 Feb. 1991
! 7: % Acknowledge: I would like to thank my colleagues, H. Yamanaka, H. Sugano, and K. Misue
! 8: % for their helpful suggestion.
! 9: % b Revised by Y. Takada 18 Feb. 1991
! 10: % Now the user does not have to define the abstract and the keyword list.
! 11: % If so, it type out warnings.
! 12: %% Declaration for memoranda
! 13: \newif\if@isismemo
! 14: \def\isismemo{\@isismemotrue}
! 15:
! 16: %% Support the draft mode.
! 17: \newif\if@rrdraft
! 18: \def\rrdraft{\@rrdrafttrue\def\@oddfoot{{\bf Draft Copy}: \today \hfil\thepage\hfil {\sl Do not circulate!!}}\let\@evenfoot\@oddfoot\reversemarginpar}
! 19:
! 20: %%% Pagestyle for the draft mode
! 21: \def\ps@rrdraft{\let\@mkboth\@gobbletwo
! 22: \def\@oddfoot{\hfil\thepage\hfil}
! 23: \let\@evenfoot\@oddfoot}
! 24: \let\pagestyle\relax
! 25: \def\pagestyle#1{\if@rrdraft\else\@nameuse{ps@#1}\fi}
! 26:
! 27: %%% Nice stuffs for the draft mode
! 28: %%
! 29: %% for the cross reference
! 30: %% \bf is used for \label
! 31: %% \it is used for \ref
! 32: %% \sl is used for \pageref
! 33: \let\label\relax \let\ref\relax \let\pageref\relax
! 34: \def\label#1{\@bsphack\if@filesw {\let\thepage\relax
! 35: \def\protect{\noexpand\noexpand\noexpand}%
! 36: \xdef\@gtempa{\write\@auxout{\string\newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa%
! 37: \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack\if@rrdraft{\@rrmarginnote{\scriptsize\bf #1}}\fi}
! 38: \def\ref#1{\@ifundefined{r@#1}{{\bf ??}\@warning
! 39: {Reference `#1' on page \thepage \space undefined}}
! 40: {\edef\@tempa{\@nameuse{r@#1}}\expandafter
! 41: \@car\@tempa \@nil\null}\if@rrdraft{\@rrmarginnote{\scriptsize\it #1}}\fi}
! 42: \def\pageref#1{\@ifundefined{r@#1}{{\bf ??}\@warning
! 43: {Reference `#1' on page \thepage \space undefined}}
! 44: {\edef\@tempa{\@nameuse{r@#1}}\expandafter
! 45: \@cdr\@tempa\@nil\null}\if@rrdraft{\@rrmarginnote{\scriptsize\sl #1}}\fi}
! 46:
! 47: %%% Nice stuffs for the bibliography
! 48: \let\@citex\relax
! 49: \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
! 50: \def\@citea{}\@cite{\@for\@citeb:=#2\do
! 51: {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
! 52: {b@\@citeb}{{\bf ?}\@warning
! 53: {Citation `\@citeb' on page \thepage \space undefined}}%
! 54: \hbox{\csname b@\@citeb\endcsname}}}{#1}\if@rrdraft{\@rrmarginnote{\scriptsize\tt #2}}\fi}
! 55: \let\nocite\relax
! 56: \def\nocite#1{\@bsphack
! 57: \if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi
! 58: \@esphack\if@rrdraft{\@rrmarginnote{\scriptsize\tt #1}}\fi}
! 59: \let\@lbibitem\relax \let\@bibitem\relax
! 60: \def\@lbibitem[#1]#2{\item[\@biblabel{#1}]\if@filesw
! 61: { \def\protect##1{\string ##1\space}\immediate
! 62: \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces\if@rrdraft{\@rrrowmargin{\scriptsize\tt #2}}\fi}
! 63: \def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
! 64: {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces\if@rrdraft{\@rrrowmargin{\scriptsize\tt #1}}\fi}
! 65:
! 66: \newif\if@rrfnin
! 67: \def\@rrmarginnote#1{\ifinner\@rrrowmargin{#1}\else\if@rrfnin\@rrrowmargin{#1}\else\marginpar{#1}\fi\fi}
! 68: %\newbox\rr@marbox
! 69: %\setbox\rr@marbox=\hbox{\vrule height0pt depth0pt width0pt}
! 70: %\def\rr@mar{\relax\ifmmode\copy\rr@marbox\else\unhcopy\rr@marbox\fi}
! 71: %\def\@rrrowmargin#1{\rr@mar{\vadjust{\kern-0pt{
! 72: % \vtop to 0pt{\vss{\hbox to 0pt{\hss #1 \hskip 5pt}}\null}}}}}
! 73: \def\rr@strutdepth{\dp\strutbox}
! 74: \def\@rrrowmargin#1{\strut{\vadjust{\kern-\rr@strutdepth{
! 75: \vtop to \rr@strutdepth{
! 76: \baselineskip\rr@strutdepth\vss{\hbox to 0pt{\hss #1 \hskip 5pt}}\null}
! 77: }}}}
! 78:
! 79: \long\def\@makefntext#1{%
! 80: \@rrfnintrue\parindent 1em\noindent\hbox to 1.8em{\hss$^{\@thefnmark}$}#1\@rrfninfalse}
! 81:
! 82: %% Switch for the address of Tokyo branch
! 83: \newif\if@tokyo
! 84: \def\tokyo{\@tokyotrue}
! 85:
! 86: %% The argument of \rrno should look like {RR-91-1E}
! 87: \def\rrno#1{\gdef\@rrno{#1}}
! 88: \gdef\@rrno{??}
! 89: %% The argument of \Email should look like {yuji} or {\{yuji,ohtani\}}
! 90: \def\Email#1{\gdef\@Email{#1}}
! 91: \gdef\@Email{isis}
! 92: \def\abstract#1{\gdef\@abstract{#1}}
! 93: \def\keywords#1{\gdef\@keywords{#1}}
! 94:
! 95: \def\maketitle{\@windowpage\@maketitle\setcounter{footnote}{0}\def\thefootnote{\arabic{footnote}}
! 96: \gdef\@title{}\gdef\@author{}\gdef\@date{}
! 97: \gdef\@rrno{}\gdef\@Email{}\gdef\@abstract{}\gdef\@thanks{}
! 98: \let\rrno\relax \let\Email\relax \let\abstract\relax \let\keywords\relax
! 99: \let\maketitle\relax}
! 100:
! 101: \def\maintitle{
! 102: \@windowpage
! 103: \setcounter{footnote}{0}
! 104: \def\thefootnote{\arabic{footnote}}
! 105: \gdef\@title{}\gdef\@author{}\gdef\@date{}
! 106: \gdef\@rrno{}\gdef\@Email{}\gdef\@abstract{}\gdef\@thanks{}
! 107: \let\rrno\relax \let\Email\relax \let\abstract\relax \let\keywords\relax
! 108: \let\maketitle\relax
! 109: \let\windowpage\relax}
! 110:
! 111: \def\@windowpage{\par
! 112: \def\thefootnote{\fnsymbol{footnote}}
! 113: \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}}
! 114: \setcounter{footnote}{0}
! 115: \setcounter{page}{-1}
! 116: \thispagestyle{empty}
! 117: \null
! 118: \vskip 6.57cm
! 119: \if@rrdraft
! 120: \hskip 0.98cm
! 121: \setlength{\unitlength}{1cm}
! 122: \begin{picture}(13,7.5)
! 123: %\thicklines
! 124: \put(0,0){\framebox(13,7.5){\@titlewindow}}
! 125: \end{picture}
! 126: \else
! 127: \hskip 0.65cm
! 128: \@titlewindow
! 129: \fi
! 130: \vfill
! 131: \if@rrdraft
! 132: \centerline{\large{\bf Draft Copy} --- \today --- {\sl Do not circulate!!}}
! 133: \vfill
! 134: \vskip 1em
! 135: \fi
! 136: \begin{center}
! 137: Institute for Social Information Science ({\sl ISIS\/}), \par
! 138: {\sf FUJITSU LABORATORIES LIMITED.} \\[1.5em]
! 139: Numazu office \\
! 140: 140 Miyamoto, Numazu-shi, Shizuoka 410-03, Japan \\
! 141: Telephone: (Numazu) 0559-23-2222 Telex: 3922508J Fax: 0559-24-6180 \\[1.5em]
! 142: Tokyo office \\
! 143: 1-9-3, Nakase, Mihama-ku, Chiba-shi, Chiba 261, Japan \\
! 144: Telephone: (Chiba) 043-299-3211 Fax: 043-299-3075 \\
! 145: \end{center}
! 146: \null\newpage
! 147: \let\@windowpage\relax}
! 148:
! 149: \def\@maketitle{
! 150: \gdef\@thanks{}
! 151: \setcounter{page}{0}
! 152: \setcounter{footnote}{0}
! 153: \thispagestyle{empty}
! 154: \null
! 155: \begin{center}
! 156: {\LARGE \@title \par} \vskip 3em
! 157: {\Large \lineskip .75em \begin{tabular}[t]{c} \@author \end{tabular}\par}
! 158: \vskip 2em
! 159: Institute for
! 160: Social Information Science ({\sl ISIS\/}), \\[.5em]
! 161: {\sf FUJITSU LABORATORIES LIMITED.} \\[3em]
! 162: \if@tokyo
! 163: 1-9-3, Nakase, Mihama-ku, Chiba-shi, Chiba 261, Japan \\[.5em]
! 164: \else
! 165: 140 Miyamoto, Numazu-shi, Shizuoka 410-03, Japan \\[.5em]
! 166: \fi
! 167: Email: {\tt \@Email @iias.flab.fujitsu.co.jp} \\[3em]
! 168: \end{center}
! 169: \@ifundefined{@abstract}{\typeout{ISIS-RR Warning: no abstract}}
! 170: {\centerline{\large\bf Abstract}\par
! 171: \begin{quotation}
! 172: \@abstract
! 173: \end{quotation}} %\else\typeout{ISIS-RR Warning: no abstract.}\fi \par\vskip 1.5em
! 174: \@ifundefined{@keywords}{\typeout{ISIS-RR Warning: no keywords list}}
! 175: {\begin{quotation}
! 176: \begin{list}{{\bf Key words}:}{}\item\@keywords\end{list}
! 177: \end{quotation}} %\else\typeout{ISIS-RR Warning: no keywords list}\fi % \par\vskip 1.5em
! 178: \vfil
! 179: \@thanks
! 180: \null\newpage
! 181: \let\@maketitle\relax}
! 182:
! 183: \def\@titlewindow{
! 184: \vbox to 7.5cm{\hsize=14cm
! 185: \vfil \hskip -0.18cm %\hskip -0.65cm
! 186: \parbox{13cm}{
! 187: \centering
! 188: \if@isismemo
! 189: {\large\sc Research Memorandum ISIS-RM-\@rrno \par}
! 190: \else
! 191: {\large\sc Research Report ISIS-RR-\@rrno \par}
! 192: \fi \vskip 1.5em
! 193: {\Large\bf \@title \par} \vskip 2em
! 194: {\large \lineskip .75em \begin{tabular}[t]{c} \@author \end{tabular}\par}
! 195: \vskip 1.5em {\large @date \par}}
! 196: \vfil}
! 197: \let\@titlewindow\relax }
! 198:
! 199: %% The size of papers
! 200: \textwidth=16.5cm
! 201: \textheight=23cm % Nice for a previewer
! 202: \oddsidemargin=-0.4cm
! 203: \evensidemargin=-0.4cm
! 204: \topmargin=-0.5cm % for dvi2ps
! 205: \marginparwidth=1.5cm
! 206: \marginparsep=2pt
! 207:
! 208: \def\@oddhead{}\def\@evenhead{}\def\@oddhead{}\def\@evenhead{} \ps@rrdraft
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>