Annotation of OpenXM/doc/Papers/jssac.sty, Revision 1.1
1.1 ! noro 1: % LateX2e Style File for "数式処理 (Sushiki-shori)"
! 2: % published by Japan Society for Symbolic and Algebraic Computation
! 3: %
! 4: % jssac.sty
! 5: % version 1.0: Aug. 1998
! 6: % version 1.1: Nov. 1999
! 7: % by Tomokatsu Saito saito@@mm.sophia.ac.jp
! 8: %
! 9: % Usage::
! 10: %
! 11: %
! 12: % \documentclass[b5paper,tombow]{jarticle}
! 13: % \usepackage{jssac}
! 14: % \art{種目} 論文、ノート、記録、...
! 15: % \begin{document}
! 16: % \title{原稿のタイトル}
! 17: % \author{著者1\affil{所属}\mail{E-mail address} \and
! 18: % 著者2\affil{所属}\mail{E-mail address} ...}
! 19: % \maketitle
! 20: %
! 21: %% Option setting
! 22: %
! 23: %
! 24: \newif\ifLang
! 25: \newif\ifEditor
! 26: \newif\ifNoPage
! 27: \newif\iffancybox
! 28: \newif\ifgraphics
! 29: \newif\iftheorem
! 30: \DeclareOption{English}{\Langtrue}
! 31: \DeclareOption{Editor}{\Editortrue}
! 32: \DeclareOption{NoPage}{\NoPagetrue}
! 33: \DeclareOption{FVerb}{\fancyboxtrue}
! 34: \DeclareOption{useeps}{\graphicstrue}
! 35: \DeclareOption{theorem}{\theoremtrue}
! 36: \ProcessOptions\relax
! 37: \iffancybox\RequirePackage{fancybox}\fi
! 38: \ifgraphics\RequirePackage[dvips]{graphics}\fi
! 39: \iftheorem\RequirePackage{theorem}\fi
! 40: %
! 41: %% Page dimensions
! 42: %
! 43: \setcounter{@paper}{1}%
! 44: \setlength\paperheight{257mm}
! 45: \setlength\paperwidth{182mm}
! 46: \tombowtrue \tombowdatetrue
! 47: \setlength{\@tombowwidth}{.1\p@}%
! 48: \@bannertoken{%
! 49: \jobname\space:\space\number\year/\number\month/\number\day
! 50: (\number\hour:\number\minute)}
! 51: \maketombowbox
! 52: \textheight=205mm
! 53: \textwidth=138mm
! 54: \topmargin=-7mm
! 55: \oddsidemargin=-5mm
! 56: \setlength{\hoffset}{-0.5in}
! 57: \setlength{\evensidemargin}{\oddsidemargin}
! 58: \footnotesep=9pt
! 59: %
! 60: \ifLang% English mode
! 61: \typeout{English Mode}
! 62: \global\parindent=1.5em \global\leftmargini=1.5em
! 63: \global\leftmarginii=1.25em \global\leftmarginiii=1.0em
! 64: \global\leftmarginiv=1.0em \global\leftmarginv=1.0em
! 65: \global\baselineskip=12pt
! 66: \gdef\the@ck{Acknowledgements}
! 67: \gdef\the@ref{References}
! 68: \iftheorem
! 69: \theoremstyle{break} \newtheorem{Th}{Theorem}
! 70: \theoremstyle{break} \newtheorem{Pro}[Th]{Proposition}
! 71: \theoremstyle{break} \newtheorem{Lem}[Th]{Lemma}
! 72: \theoremstyle{break} \newtheorem{Cor}[Th]{Corollary}
! 73: \theoremstyle{break} \newtheorem{Def}[Th]{Definition}
! 74: \theoremstyle{break} \newtheorem{Hyp}[Th]{Hypothesis}
! 75: \theoremstyle{break} \newtheorem{Nte}{Notation}
! 76: \theoremstyle{break} \newtheorem{Exp}{Example}
! 77: \theoremstyle{break} \newtheorem{Rem}{Remark}
! 78: \theoremstyle{break} \newtheorem{Prob}{Problem}
! 79: \theoremstyle{break} \newtheorem{Alg}{Algorithm}
! 80: \newenvironment{Proof}%
! 81: {\par{\bf Proof }}{\hfill\hbox{\rule[-2pt]{3pt}{6pt}}\par}
! 82: \fi
! 83: \else% Japanese mode
! 84: \typeout{Japanese Mode}
! 85: \global\parindent=1zw
! 86: \global\baselineskip=15.65pt
! 87: \gdef\the@ck{謝 辞}
! 88: \gdef\the@ref{参 考 文 献}
! 89: \iftheorem
! 90: \theoremstyle{break} \newtheorem{Th}{定理}
! 91: \theoremstyle{break} \newtheorem{Pro}[Th]{命題}
! 92: \theoremstyle{break} \newtheorem{Lem}[Th]{補題}
! 93: \theoremstyle{break} \newtheorem{Cor}[Th]{系}
! 94: \theoremstyle{break} \newtheorem{Def}[Th]{定義}
! 95: \theoremstyle{break} \newtheorem{Hyp}[Th]{仮定}
! 96: \theoremstyle{break} \newtheorem{Nte}{記法}
! 97: \theoremstyle{break} \newtheorem{Exp}{例}
! 98: \theoremstyle{break} \newtheorem{Rem}{注意}
! 99: \theoremstyle{break} \newtheorem{Prob}{問題}
! 100: \theoremstyle{break} \newtheorem{Alg}{アルゴリズム}
! 101: \newenvironment{Proof}%
! 102: {\par{\bf 証明 }}{\hfill\hbox{\rule[-2pt]{3pt}{6pt}}\par}
! 103: \fi
! 104: \fi
! 105: %
! 106: %% Define some macros
! 107: %
! 108: \ifgraphics%
! 109: \def\Eps#1{\includegraphics{#1}}
! 110: \fi
! 111: \iffancybox%
! 112: \newenvironment{FVerb}[1]%
! 113: {\VerbatimEnvironment%
! 114: \begin{Sbox}\begin{minipage}{#1}\begin{Verbatim}}%
! 115: {\end{Verbatim}\end{minipage}\end{Sbox}%
! 116: \setlength{\fboxsep}{3mm}\vspace*{4mm}\fbox{\TheSbox}}
! 117: \fi
! 118: \long\def\ifundefined#1#2#3{%
! 119: \expandafter\ifx\csname #1\endcsname\relax #2\else #3\fi}
! 120: \def\affil#1{\\\small #1}
! 121: \def\mail#1{\\\small \texttt{#1}}
! 122: \def\author#1{\gdef\@author{#1}}
! 123: \def\thefootnote{\arabic{footnote})}
! 124: \def\art#1{\edef\@art{#1}}
! 125: \def\year#1{\edef\@year{#1}}
! 126: \def\StartPage#1{\edef\@spage{#1}}
! 127: \def\EndPage#1{\edef\@epage{#1}}
! 128: \def\vol#1{\edef\@vol{#1}}
! 129: \def\num#1{\edef\@num{#1}}
! 130: \def\dg{\textbf}
! 131: \def\abstractname{Abstract}
! 132: %
! 133: % Define some fonts
! 134: %
! 135: % AMSFonts and AMSSymbols
! 136: \font\msbmbbs=msbm10
! 137: \font\msbmbb=msbm10 scaled \magstep1
! 138: \def\Bbb#1{\mbox{\msbmbb\relax#1}}
! 139: \def\Bbbs#1{\mbox{\msbmbbs\relax#1}}
! 140: %
! 141: \newcommand{\C}{\Bbb C}
! 142: \newcommand{\R}{\Bbb R}
! 143: \newcommand{\Q}{\Bbb Q}
! 144: \newcommand{\Z}{\Bbb Z}
! 145: \newcommand{\N}{\Bbb N}
! 146: \newcommand{\SC}{\hbox{\footnotesize \Bbb C}}
! 147: \newcommand{\SR}{\hbox{\footnotesize \Bbb R}}
! 148: \newcommand{\SQ}{\hbox{\footnotesize \Bbb Q}}
! 149: \newcommand{\SZ}{\hbox{\footnotesize \Bbb Z}}
! 150: \newcommand{\SN}{\hbox{\footnotesize \Bbb N}}
! 151: \newcommand{\qed}{\hbox{\rule[-2pt]{3pt}{6pt}}}
! 152: %
! 153: \def\thebibliography#1{
! 154: \section*{\hbox to\hsize{\hss\the@ref\hss}}
! 155: \list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
! 156: \leftmargin\labelwidth
! 157: \advance\leftmargin\labelsep\parsep=0pt
! 158: \usecounter{enumi}}
! 159: \def\newblock{\hskip .11em plus .33em minus .07em}
! 160: \sloppy\clubpenalty4000\widowpenalty4000\sfcode`\.=1000
! 161: \relax}
! 162: \def\endthebibliography{\global\advance\@listdepth\m@ne\endtrivlist}
! 163: %
! 164: \def\acknowledgements#1{\section*{\hbox to\hsize{\hss\the@ck\hss}}#1}
! 165: \def\endacknowledgements{\par}
! 166: %
! 167: \def\ps@jssac{%
! 168: \let\@oddfoot\@empty\let\@evenfoot\@empty
! 169: \def\@evenhead{\footnotesize\textit{\thepage}\hfil%
! 170: 数式処理 第 \textit{\@vol} 巻 第 \textit{\@num} 号 \textit{\@year}}%
! 171: \def\@oddhead{\footnotesize\textit{J.JSSAC Vol. \@vol, No. %
! 172: \@num, \@year\hfil\thepage}}}%
! 173: \def\maketitle{%
! 174: \ifundefined{@year}{\edef\@year{199X}}{}
! 175: \ifundefined{@vol}{\edef\@vol{XX}}{}
! 176: \ifundefined{@num}{\edef\@num{XX}}{}
! 177: \ifundefined{@spage}{\edef\@spage{1}}{}
! 178: \ifundefined{@epage}{\edef\@epage{XXX}}{}
! 179: \par
! 180: \begingroup
! 181: \def\thefootnote{\fnsymbol{footnote}}%
! 182: \def\@makefnmark{\hbox to 3pt{$^{\@thefnmark}$\hss}}%
! 183: \thispagestyle{plain}%
! 184: \@maketitle%
! 185: \@thanks%
! 186: \endgroup
! 187: \setcounter{footnote}{0}
! 188: \let\maketitle=\relax
! 189: \let\@maketitle=\relax
! 190: % \gdef\@thanks{}\gdef\@author{}\gdef\@title{}%
! 191: \let\thanks=\relax
! 192: }
! 193: \def\@maketitle{%
! 194: \newpage
! 195: \let\mail\thanks
! 196: \null
! 197: \vbox{
! 198: \hbox{\footnotesize \textgt{数式処理} \textit{J.JSSAC (\@year)}%
! 199: }\vskip -1.5ex
! 200: \hbox{\footnotesize \textit{Vol.\ \@vol ,\ No.\ \@num ,%
! 201: \ pp.\ \@spage\ -\ \@epage}}\vskip 1ex
! 202: \ifundefined{@art}{\relax}{\hbox{\fbox{\textgt{\@art}}}}
! 203: }
! 204: \vskip 2em
! 205: \begin{center}
! 206: {\LARGE \@title \par}\vskip 1.5em%
! 207: {\Large \lineskip .5em \begin{tabular}[t]{c}\@author\end{tabular}\par}
! 208: \ifundefined{received}{}%
! 209: {\vskip 1.5em \footnotesize\sc (Received \received %
! 210: \ifundefined{revised}{)}{\ \ \footnotesize\sc Revised \revised)}
! 211: }
! 212: \end{center}
! 213: \par
! 214: \vskip 1.5em}
! 215: \@twosidetrue
! 216: %
! 217: %% Editors Session
! 218: %
! 219: \newif\ifPage%
! 220: \IfFileExists{\jobname.pag}{\Pagetrue}{}
! 221: \ifPage
! 222: \input \jobname.pag
! 223: \setcounter{page}{\@spage}
! 224: \fi
! 225: %
! 226: \IfFileExists{../vol.tex}{\Editortrue}{\Editorfalse}
! 227: \ifEditor%
! 228: \typeout{Editor Mode}%
! 229: \input ../vol.tex
! 230: \newwrite\OutPut
! 231: \immediate\openout\OutPut=\jobname.pag
! 232: \def\spageout#1{%
! 233: \immediate\write\OutPut{\string
! 234: \StartPage{#1}}}
! 235: \def\epageout#1{%
! 236: \immediate\write\OutPut{\string
! 237: \EndPage{#1}}}
! 238: %
! 239: \let\ndocument\document
! 240: \let\nenddocument\enddocument
! 241: \def\document{%
! 242: \ndocument%
! 243: \spageout{\thepage}}
! 244: \def\enddocument{%
! 245: \newcount\PP
! 246: \def\affil##1{\empty}
! 247: \def\mail##1{\empty}
! 248: \def\and{,}
! 249: \def\\{\empty}
! 250: \epageout{\thepage}
! 251: \closeout\OutPut
! 252: \newwrite\Plist
! 253: \immediate\openout\Plist=\jobname.ttl
! 254: \ifNoPage
! 255: \immediate\write\Plist{%
! 256: NoPage}
! 257: \closeout\Plist
! 258: \else
! 259: \immediate\write\Plist{%
! 260: \string\jpage{\@art}{\@title}{\@author}{\@spage}}
! 261: \closeout\Plist
! 262: \fi
! 263: \PP=\thepage
! 264: \advance \PP 1
! 265: \immediate\openout\Plist=Next.pp
! 266: \immediate\write\Plist{%
! 267: \number\PP}
! 268: \closeout\Plist
! 269: \nenddocument}
! 270: \fi
! 271: \pagestyle{jssac}
! 272: \makeatother
! 273:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>