Annotation of OpenXM/doc/Papers/rims02.sty, Revision 1.1
1.1 ! noro 1: % LateX2e Style File for "数理解析研究所講究録 (Rims Kyoto)"
! 2: % published by Research Institure for Mathematical Sciences, Kyoto Univ.
! 3: %
! 4: % rims.sty
! 5: % version 3.0: Jan. 2002
! 6: % by Tomokatsu Saito saito@@a2z.co.jp
! 7: %
! 8: % Usage::
! 9: %
! 10: % You make headline.tex. This file include next items.
! 11: % \title{原稿のタイトル}
! 12: % \etitle{English Title}
! 13: % \author{著者1\affil{所属}\mail{E-mail address}%
! 14: % \ename{English name}\eaffil{English} \and
! 15: % 著者2\affil{所属}\mail{E-mail address}%
! 16: % \ename{English name}\eaffil{English} ...}
! 17: %
! 18: % And, paper body, Main file preable only include
! 19: % \usepackage[option]{rims}.
! 20: %
! 21: % \documentclass{jarticle}
! 22: % \usepackage[option]{rims}
! 23: % \begin{document}
! 24: %% Option setting
! 25: % English, FVerb, useeps, theorem
! 26: % You don't write \maketitle.
! 27: %
! 28: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
! 29: \newif\ifLang
! 30: \newif\iffancybox
! 31: \newif\ifgraphics
! 32: \newif\iftheorem
! 33: \DeclareOption{English}{\Langtrue}
! 34: \DeclareOption{FVerb}{\fancyboxtrue}
! 35: \DeclareOption{useeps}{\graphicstrue}
! 36: \DeclareOption{theorem}{\theoremtrue}
! 37: \ProcessOptions\relax
! 38: \iffancybox\RequirePackage{fancybox}\fi
! 39: \ifgraphics\RequirePackage[dvips]{graphics}\fi
! 40: \iftheorem\RequirePackage{theorem}\fi
! 41: %
! 42: %% Page dimensions
! 43: %
! 44: \setcounter{@paper}{1}%
! 45: \setlength\paperheight{296mm}
! 46: \setlength\paperwidth{210mm}
! 47: %\tombowtrue \tombowdatetrue
! 48: \tombowfalse
! 49: \setlength{\@tombowwidth}{.1\p@}%
! 50: \@bannertoken{%
! 51: \jobname\space:\space\number\year/\number\month/\number\day
! 52: (\number\hour:\number\minute)}
! 53: %\maketombowbox
! 54: \textheight=226mm
! 55: \textwidth=160mm
! 56: \topmargin=-7mm
! 57: \oddsidemargin=-5mm
! 58: %\setlength{\hoffset}{-0.5in}
! 59: \setlength{\evensidemargin}{\oddsidemargin}
! 60: \footnotesep=9pt
! 61: %
! 62: \ifLang% English mode
! 63: \typeout{English Mode}
! 64: \global\parindent=1.5em \global\leftmargini=1.5em
! 65: \global\leftmarginii=1.25em \global\leftmarginiii=1.0em
! 66: \global\leftmarginiv=1.0em \global\leftmarginv=1.0em
! 67: \global\baselineskip=12pt
! 68: \gdef\the@ck{Acknowledgements}
! 69: \gdef\the@ref{References}
! 70: \iftheorem
! 71: \theoremstyle{break} \newtheorem{Th}{Theorem}
! 72: \theoremstyle{break} \newtheorem{Pro}[Th]{Proposition}
! 73: \theoremstyle{break} \newtheorem{Lem}[Th]{Lemma}
! 74: \theoremstyle{break} \newtheorem{Cor}[Th]{Corollary}
! 75: \theoremstyle{break} \newtheorem{Def}[Th]{Definition}
! 76: \theoremstyle{break} \newtheorem{Hyp}[Th]{Hypothesis}
! 77: \theoremstyle{break} \newtheorem{Nte}{Notation}
! 78: \theoremstyle{break} \newtheorem{Exp}{Example}
! 79: \theoremstyle{break} \newtheorem{Rem}{Remark}
! 80: \theoremstyle{break} \newtheorem{Prob}{Problem}
! 81: \theoremstyle{break} \newtheorem{Alg}{Algorithm}
! 82: \newenvironment{Proof}%
! 83: {\par{\bf Proof }}{\hfill\hbox{\rule[-2pt]{3pt}{6pt}}\par}
! 84: \fi
! 85: \renewcommand\figurename{Figure}
! 86: \renewcommand\listfigurename{List of Figures}
! 87: \renewcommand\tablename{Table}
! 88: \renewcommand\listtablename{List of Tables}
! 89: \else% Japanese mode
! 90: \typeout{Japanese Mode}
! 91: \global\parindent=1zw
! 92: \global\baselineskip=15.65pt
! 93: \gdef\the@ck{謝 辞}
! 94: \gdef\the@ref{参 考 文 献}
! 95: \iftheorem
! 96: \theoremstyle{break} \newtheorem{Th}{定理}
! 97: \theoremstyle{break} \newtheorem{Pro}[Th]{命題}
! 98: \theoremstyle{break} \newtheorem{Lem}[Th]{補題}
! 99: \theoremstyle{break} \newtheorem{Cor}[Th]{系}
! 100: \theoremstyle{break} \newtheorem{Def}[Th]{定義}
! 101: \theoremstyle{break} \newtheorem{Hyp}[Th]{仮定}
! 102: \theoremstyle{break} \newtheorem{Nte}{記法}
! 103: \theoremstyle{break} \newtheorem{Exp}{例}
! 104: \theoremstyle{break} \newtheorem{Rem}{注意}
! 105: \theoremstyle{break} \newtheorem{Prob}{問題}
! 106: \theoremstyle{break} \newtheorem{Alg}{アルゴリズム}
! 107: \newenvironment{Proof}%
! 108: {\par{\bf 証明 }}{\hfill\hbox{\rule[-2pt]{3pt}{6pt}}\par}
! 109: \fi
! 110: \fi
! 111: %
! 112: %% Define some macros
! 113: %
! 114: \ifgraphics%
! 115: \def\Eps#1{\includegraphics{#1}}
! 116: \fi
! 117: \iffancybox%
! 118: \newenvironment{FVerb}[1]%
! 119: {\VerbatimEnvironment%
! 120: \begin{Sbox}\begin{minipage}{#1}\begin{Verbatim}}%
! 121: {\end{Verbatim}\end{minipage}\end{Sbox}%
! 122: \setlength{\fboxsep}{3mm}\vspace*{4mm}\fbox{\TheSbox}}
! 123: \fi
! 124: \long\def\ifundefined#1#2#3{%
! 125: \expandafter\ifx\csname #1\endcsname\relax #2\else #3\fi}
! 126: %%\def\affil#1{\\[-1.5ex]\small #1}
! 127: \def\affil#1{\\ #1}
! 128: %%\def\ename#1{\\[-1.5ex]\footnotesize\scshape #1}
! 129: %%\def\eaffil#1{\\[-1.5ex]\footnotesize\scshape #1}
! 130: \def\ename#1{\\[-0.5ex]\normalsize\scshape #1}
! 131: \def\eaffil#1{\\[-0.5ex]\normalsize\scshape #1}
! 132: \def\author#1{\gdef\@author{#1}}
! 133: \def\etitle#1{\gdef\@etitle{#1}}
! 134: \def\thefootnote{\arabic{footnote})}
! 135: %\def\art#1{\gdef\@art{#1}}
! 136: \def\year#1{\gdef\@year{#1}}
! 137: \gdef\StartPage#1{\gdef\@SPage{#1}}
! 138: \gdef\EndPage#1{\gdef\@epage{#1}}
! 139: \def\vol#1{\gdef\@vol{#1}}
! 140: \def\num#1{\gdef\@num{#1}}
! 141: \def\dg{\textbf}
! 142: \def\abstractname{Abstract}
! 143: \gdef\received#1{\gdef\@received{#1}}
! 144: \gdef\revised#1{\gdef\@revised{#1}}
! 145: %
! 146: % Define some fonts
! 147: %
! 148: % AMSFonts and AMSSymbols
! 149: \font\msbmbbs=msbm10
! 150: \font\msbmbb=msbm10 scaled \magstep1
! 151: \def\Bbb#1{\mbox{\msbmbb\relax#1}}
! 152: \def\Bbbs#1{\mbox{\msbmbbs\relax#1}}
! 153: \def\JSSAC{\textit{JSS\hspace{-0.2ex}A\hspace{-0.3ex}C} }
! 154: %
! 155: \newcommand{\C}{\Bbb C}
! 156: \newcommand{\R}{\Bbb R}
! 157: \newcommand{\Q}{\Bbb Q}
! 158: \newcommand{\Z}{\Bbb Z}
! 159: \newcommand{\N}{\Bbb N}
! 160: \newcommand{\SC}{\hbox{\footnotesize \Bbb C}}
! 161: \newcommand{\SR}{\hbox{\footnotesize \Bbb R}}
! 162: \newcommand{\SQ}{\hbox{\footnotesize \Bbb Q}}
! 163: \newcommand{\SZ}{\hbox{\footnotesize \Bbb Z}}
! 164: \newcommand{\SN}{\hbox{\footnotesize \Bbb N}}
! 165: \newcommand{\qed}{\hbox{\rule[-2pt]{3pt}{6pt}}}
! 166: %
! 167: \def\thebibliography#1{
! 168: \section*{\hfil\the@ref\hfill}
! 169: \list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
! 170: \leftmargin\labelwidth
! 171: \advance\leftmargin\labelsep\parsep=0pt
! 172: \usecounter{enumi}}
! 173: \def\newblock{\hskip .11em plus .33em minus .07em}
! 174: \sloppy\clubpenalty4000\widowpenalty4000\sfcode`\.=1000
! 175: \relax}
! 176: \def\endthebibliography{\global\advance\@listdepth\m@ne\endtrivlist}
! 177: \def\acknowledgements#1{\section*{\hbox to\hsize{\hss\the@ck\hss}}#1}
! 178: \def\endacknowledgements{\par}
! 179: %%HM addition
! 180: \def\ps@eplain{%
! 181: \def\@oddhead{}
! 182: \def\@oddfoot{\footnotesize\hfil{\Roman{PartNumber}-\thepage}\hfil}
! 183: }
! 184: \def\ps@rims{%
! 185: %%HM ...
! 186: \ifEditor%
! 187: \def\@oddhead{\setcounter{TotalPage}{\value{page}}%
! 188: \addtocounter{TotalPage}{-1}%
! 189: \addtocounter{TotalPage}{\@SPage}%
! 190: % \footnotesize\hfil\textit{\theTotalPage}
! 191: }
! 192: \def\@evenhead{\setcounter{TotalPage}{\value{page}}%
! 193: \addtocounter{TotalPage}{-1}%
! 194: \addtocounter{TotalPage}{\@SPage}%
! 195: % \footnotesize\textit{\theTotalPage}\hfil
! 196: }
! 197: \def\@oddfoot{\footnotesize\hfil{\Roman{PartNumber}-\thepage}\hfil}%
! 198: \def\@evenfoot{\footnotesize\hfil{\Roman{PartNumber}-\thepage}\hfil}%
! 199: \else
! 200: \def\@oddfoot{\footnotesize\hfil{\thepage}\hfil}%
! 201: \def\@evenfoot{\footnotesize\hfil{\thepage}\hfil}%
! 202: \fi
! 203: %%... end of HM
! 204: }
! 205: \def\maketitle{%
! 206: \ifundefined{@year}{\gdef\@year{200X}}{}
! 207: \ifundefined{@vol}{\gdef\@vol{XX}}{}
! 208: \ifundefined{@num}{\gdef\@num{XX}}{}
! 209: \ifundefined{@SPage}{\gdef\@SPage{1}}{}
! 210: \ifundefined{@epage}{\gdef\@epage{XXX}}{}
! 211: \par
! 212: \begingroup
! 213: \def\thefootnote{\fnsymbol{footnote}}%
! 214: \def\@makefnmark{\hbox to 3pt{$^{\@thefnmark}$\hss}}%
! 215: \ifEditor\thispagestyle{eplain}\else\thispagestyle{plain}\fi
! 216: \@maketitle%
! 217: \@thanks%
! 218: \endgroup
! 219: \setcounter{footnote}{0}
! 220: \let\maketitle=\relax
! 221: \let\@maketitle=\relax
! 222: \let\thanks=\relax
! 223: }
! 224: \def\@maketitle{%
! 225: \let\mail\thanks
! 226: \null
! 227: % \vbox{
! 228: % \hbox{\footnotesize \textgt{数式処理} \textit{J.\JSSAC (\@year)}%
! 229: % }\vskip -1.5ex
! 230: % \hbox{\footnotesize \textit{Vol.\ \@vol ,\ No.\ \@num ,%
! 231: % \ pp.\ \@SPage\ -\ \@epage}}\vskip 1ex
! 232: % \ifundefined{@art}{\relax}{\hbox{\fbox{\textgt{\@art}}}}
! 233: % }
! 234: % \vskip 2em
! 235: \begin{center}
! 236: {\LARGE \bf \@title \par}\vskip 1.5em
! 237: %%HM \ifundefined{\@etitle}{}%
! 238: %%HM {\Large (\@etitle) \par}\vskip 1.5em%
! 239: %%HM {\Large \lineskip .5em \begin{tabular}[t]{c}\@author\end{tabular}\vskip .5em}
! 240: {\Large \lineskip .5em \begin{tabular}[t]{c}\@author\end{tabular}\vskip .5em}
! 241: % \ifundefined{@received}{}%
! 242: % {\vskip 1.5em \footnotesize\sc (Received \@received %
! 243: % \ifundefined{@revised}{)}{\ \ \footnotesize\sc Revised \@revised)}
! 244: % }
! 245: \end{center}
! 246: \par
! 247: \vskip 1.5em}
! 248: \@twosidetrue
! 249: %
! 250: %% Editors Session
! 251: %
! 252: \newcounter{PP}
! 253: \newcounter{TotalPage} %%HM
! 254: \newcounter{PartNumber} %%HM
! 255: \newif\ifPage%
! 256: \newif\ifEditor%
! 257: \newif\ifEndWithEvenP%
! 258: \IfFileExists{../vol.tex}{\Editortrue}{\Editorfalse}
! 259: \IfFileExists{Page.tex}{\Pagetrue}{\Pagefalse \Editorfalse}
! 260: \def\NoPage{%
! 261: \newwrite\OutTouch\immediate\openout\OutTouch=NoPage.tex\closeout\OutTouch}
! 262: %%HM\def\OddStart{\relax}
! 263: \def\ignore#1{{#1}}
! 264: \global\let\ndocument\document%
! 265: \global\let\nenddocument\enddocument%
! 266: \ifEditor
! 267: \input ../vol.tex
! 268: \fi
! 269: \ifPage
! 270: \input Page.tex
! 271: \fi
! 272: \ifEditor\EndWithEvenPtrue\else\EndWithEvenPfalse\fi
! 273: %%% specification of RIMS
! 274: \EndWithEvenPfalse
! 275: %%\IfFileExists{headline.tex}{\ifEditor{\include{headline}}\fi}{}
! 276: \ifEditor{\typeout{******** Editor Mode ********}%
! 277: \newwrite\OutPut
! 278: \immediate\openout\OutPut=Page.tex
! 279: \gdef\partnumberout#1{%
! 280: \immediate\write\OutPut{\string
! 281: \setcounter{PartNumber}{#1}}}
! 282: \gdef\spageout#1{%
! 283: \immediate\write\OutPut{\string
! 284: \StartPage{#1}}}
! 285: \gdef\epageout#1{%
! 286: \immediate\write\OutPut{\string
! 287: \EndPage{#1}}}
! 288: \long\gdef\document{%
! 289: \ndocument%
! 290: \pagestyle{rims}
! 291: \partnumberout{\thePartNumber}
! 292: %%HM \setcounter{page}{\@SPage}
! 293: \setcounter{TotalPage}{\@SPage}
! 294: \maketitle
! 295: %%HM \spageout{\thepage}}
! 296: \spageout{\theTotalPage}}
! 297: \gdef\enddocument{%
! 298: %%HM \epageout{\thepage}
! 299: \setcounter{TotalPage}{\value{page}}
! 300: \addtocounter{TotalPage}{\@SPage}
! 301: \addtocounter{TotalPage}{-1}
! 302: \epageout{\theTotalPage}
! 303: \closeout\OutPut
! 304: %%HM \IfFileExists{NextOdd.tex}{\ifodd\thepage{\clearpage }\fi}{}
! 305: \ifEndWithEvenP{\ifodd\value{page}{\clearpage }\fi}\fi
! 306: \newcount\PP
! 307: \newwrite\Plist
! 308: %%HM \PP=\thepage
! 309: \setcounter{TotalPage}{\value{page}}
! 310: \addtocounter{TotalPage}{\@SPage}
! 311: \addtocounter{TotalPage}{-1}
! 312: \PP=\theTotalPage
! 313: \advance \PP 1
! 314: \immediate\openout\Plist=Next.pp
! 315: \immediate\write\Plist{%
! 316: \number\PP}
! 317: \closeout\Plist
! 318: \nenddocument}
! 319: }\fi
! 320: %%\etitle{}
! 321: \makeatother
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>