% --  kno.tex  --------------------------------------------
%LaTeX2e 対応に合わせ macro を大幅変更(2000-12-2)
%	macto.tex + kno.sty --> kno2e.sty
%	安定したので名前を kno.sty に変更(2001-5-7)
%----------------------------------------------------------
%常用macro @@@
\hyphenation{homeo-morphism} %add @@@@@
\def\kaigyou{\par\leavevmode} %add @@@@@
\def\kaigyouni{\mbox{　 }\protect\\}
\let\KG=\kaigyou
\let\kg=\kaigyou
\def\MSP#1{\mbox{\hspace*{#1cm}}}
\def\MSPS{\mbox{\hspace*{.5cm}}}
\def\MS{\mbox{\hspace*{.5cm}}}
\def\VSP#1{\vspace{#1cm}}
\def\VSPS{\vspace{.7cm}}
\def\VS{\vspace{.7cm}}
\def\maru#1{{\rm\ooalign{\hfil\lower.168ex\hbox{#1}\hfil%
			\crcr\mathhexbox20D}}}
\def\nigt{\noindent\gt}
\def\noi{\noindent}
\let\fukumu=\ni %add @@@@@
\def\ni{\noindent} %modify @@@@@
\def\knoline#1{\rule{#1cm}{.4pt}}
%-- 演習 -------------------------------------------------
\def\midasi#1#2{{\large\gt\bf #1#2:\ }}
\def\bmidasi#1{{\large\gt\bf ●#1:\ }}
\def\testmidasi#1#2%
	{\fbox{　\Large #1　}\hfill #2\MSP{1.5}河野\MSP{.5}\VS}
%	{　\mask{　\Large #1　}{E}\MSP{2}#2\MSP{.5}河野}
\let\prmidasi=\testmidasi
\def\enmidasi#1{\fbox{　\Large 演習問題　}\MSP{6}#1\MSP{1.5}河野}
\def\ReportBasho#1{情報1号棟2階ラウンジレポートボックス%
	(#1と書いてある所)}
%----------------------------------------------------------
%数学用記号 @@@
\def\ds{\displaystyle}
\def\kyouyaku{\overline}
\def\証明{{\noindent\bf 証明\MSPS}}
\def\proof{{\noindent\bf proof\MSPS}}
\def\defje#1#2{{\gt\bf #1}{(\sl #2\rm)}} %add @@@@@
\def\defj#1{{\gt #1}} %add @@@@@@
\def\bbox{\mbox{\ \rule{.15cm}{.3cm}}}
\def\naraba{\,\Longra\,}
\def\narababa{\,\Longlra\,}
\def\barana{\,\Longla\,}
\let\nonvarepsilon=\epsilon
\def\epsilon{\varepsilon}
\let\nonvarphi=\phi
\def\phi{\varphi}
%----------------------------
\def\Sin{\mathop{\rm Sin}\nolimits}
\def\Cos{\mathop{\rm Cos}\nolimits}
\def\Tan{\mathop{\rm Tan}\nolimits}
\def\id{\mathop{\rm id}\nolimits}
\def\rank{\mathop{\rm rank}\nolimits}
\def\dim{\mathop{\rm dim}\nolimits}
\def\Ker{\mathop{\rm Ker}\nolimits}
\def\Img{\mathop{\rm Img}\nolimits}
\def\sgn{\mathop{\rm sgn}\nolimits}
\def\Int{\mathop{\rm Int}\nolimits}
\def\GCD{\mathop{\rm GCD}\nolimits}
%----------------------------
%\renewcommand{\emptyset}{\hbox{\rm%
%		\rlap/\kern-.1em\lower.05em\hbox{O}}}
\def\emptyset{\hbox{\rm\char"1F}}
%真部分集合
\def\subsetneq{\mathrel{\mbox{\kern .2em\lower.7ex\hbox{$\neq$}%
	\kern -.8em \raise .7ex\hbox{$\subset$}\kern .2em}}}
\def\subsetne{\mathrel{\mbox{\kern .7em\lower.5ex\hbox{\tiny /}%
	\kern -.6em \raise .2ex\hbox{$\subseteq$}\kern .2em}}}
\def\any{\forall}
\def\exi{\exists}
%\def\set#1#2{\left\{\MSP{.05}#1\ |\ #2\MSP{.05}\right\}}
% old type 次の大きさ変動 type に変更 00-12-9
\def\set#1#2{%
\def\sp@{\MSP{.05}}
\def\tmp@{\vphantom{#1#2}}
\hbox{$\left\{\sp@#1\tmp@\sp@\right|\sp@\left.#2\tmp@\sp@\right\}$}%
}% 真中を大きさに合わせたい
%\def\bigset{\@ifnextchar[{\bigset@@}{\bigset@}}
%\def\bigset@@[#1]#2#3{\left\{\MSP{.05}#2\ |\ #3\MSP{.05}\right\}}
%\def\bigset@#1#2{\left\{\MSP{.05}#1\ \Big|\ #2\MSP{.05}\right\}}
%\let\bset=\bigset
% setを変更したので上削除 @@@@@
\def\lfrac#1#2{\frac{\,#1\,}{\,#2\,}}
\def\dlfrac#1#2{\ds\frac{\,#1\,}{\,#2\,}}
\def\dfrac#1#2{\ds\frac{#1}{#2}}
\let\lbar=\overline
\def\dlf{\dlfrac}
\def\dfl{\dlfrac}		%よく間違えるので付け加える
\def\ggeq{\mbox{\kern .2em\lower.8ex\hbox{$-$}%
	\kern -.8em \raise .6ex\hbox{$\geq$}\kern .2em}}
\def\lleq{\mbox{\kern .2em\lower.8ex\hbox{$-$}%
	\kern -.8em \raise .6ex\hbox{$\leq$}\kern .2em}}
%\renewcommand{\vec}[1]{\mbox{\boldmath $#1$}}%-- vector
\let\originalvec=\vec
%\makeatletter%@@@@@
\def\vec{\@ifnextchar 0{\veczero}{\vecnzero}}
%\makeatother%@@@@@
\def\veczero#1{\mbox{\bf 0}}
\def\vecnzero#1{\mbox{\boldmath $#1$}}
\def\sumi{\sum_{i=1}^n}
\def\isum#1#2{\sum_{#1=1}^#2}
\def\el{\ell} %add @@@@@@
%c-- kai ------------------------------------------------------------
\def\dpartial#1#2{\dfrac{\partial#1}{\partial#2}}
\def\dpar{\dpartial}
\def\bibun#1#2{\dfrac{d#1}{d#2}}
\def\dint{\int\!\!\int}
\def\grad{{\bf grad}}
\let\waru=\div
\def\div{{\rm div}}
%boxの積み重ね
\newlength{\lll}
\def\wboxset#1#2{\settowidth{\lll}{#1}%
			\raisebox{.9ex}{$#1$}\kern -\lll%
			\raisebox{-.9ex}{$#2$}}
% diff
\def\yakobimat#1#2{\frac{D(\vec{#1})}{D(\vec{#2})}}
\def\yakobian#1#2{\frac{\partial\vec{#1}}{\partial\vec{#2}}}
\def\tint{\int\!\!\int\!\!\int}
\def\nint{\int\!\cdots\!\int}
\def\vint#1#2{\int_{#2}\!{#1}(\vec{x})d\vec{x}}
%g-- arrow --------------------------------------------------------%B
\def\la{\mbox{$\leftarrow$}}
\def\ra{\mbox{$\rightarrow$}}
\def\La{\mbox{$\Leftarrow$}}
\def\Ra{\mbox{$\Rightarrow$}}
\def\lra{\mbox{$\leftrightarrow$}}
\def\Lra{\mbox{$\Leftrightarrow$}}
\def\Longra{\mbox{$\Longrightarrow$}}
\def\longra{\mbox{$\longrightarrow$}}
\def\Longlra{\mbox{$\Longleftrightarrow$}}
\def\longlra{\mbox{$\longleftrightarrow$}}
\def\Longla{\mbox{$\Longleftarrow$}}
\def\longla{\mbox{$\longleftarrow$}}
\def\ua{\mbox{$\uparrow$}}
\def\da{\mbox{$\downarrow$}}
%e-- sen ------------------------------------------------------------
% vector
%\renewcommand{\vector}[1]{\mbox{$\matkugiria#1_1,\ldots,#1_{\mu}\matkugiriz$}}
% %をadd @@@@@
\def\vectorset#1#2{\mbox{$\matkugiria\vec{#1_1},\ldots,%
\vec{#1}_{#2}\matkugiriz$}}
\def\twovector#1#2{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ {#2} \end{array} \right\matkugiriz$}}
\def\twovec#1#2{\twovector{#1}{#2}}
\def\threevector#1#2#3{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ {#2}\\{#3} \end{array} \right\matkugiriz$}}
\let\threevec=\threevector
\def\fourvector#1#2#3#4{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ {#2}\\{#3}\\{#4} \end{array} \right\matkugiriz$}}
\let\fourvec=\fourvector
\def\fivevector#1#2#3#4#5{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ {#2}\\{#3}\\{#4}\\{#5} \end{array} \right\matkugiriz$}}
\let\fivevec=\fivevector
\def\nvec#1{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1_1}\\ \vdots\\{#1_n} \end{array} \right\matkugiriz$}}
\def\mvec#1{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1_1}\\ \vdots\\{#1_m} \end{array} \right\matkugiriz$}}
\def\nvector#1#2{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ \vdots\\{#2} \end{array} \right\matkugiriz$}}
\def\nnvec#1#2#3{\mbox{$ \left\matkugiria \begin{array}{c}%
	{#1}\\ {#2}\\ \vdots\\{#3} \end{array} \right\matkugiriz$}}
%\def\innerprdt#1#2{\mbox{$(\vec{#1}\cdot\vec{#2})$}}
\def\innerprdt#1#2{\mbox{$(#1,#2)$}}
%\def\innerprdt#1#2{\mbox{$(\vec{#1},\vec{#2})$}}
\def\norm#1{\|#1\|}
% matrix
\def\twomatrix#1#2#3#4{\mbox{$ \left\matkugiria \begin{array}{rr}%
	{#1}&{#2}\\ {#3}&{#4}\\ \end{array} \right\matkugiriz$}} %２次の行列
\newcommand{\threematrix}[9]{\mbox{$ \left\matkugiria \begin{array}{rrr}%
	{#1}&{#2}&{#3}\\{#4}&{#5}&{#6}\\{#7}&{#8}&{#9}\end{array} \right\matkugiriz$}}
\newcommand{\twothreematrix}[6]{\mbox{$ \left\matkugiria \begin{array}{rrr}%
	{#1}&{#2}&{#3}\\{#4}&{#5}&{#6}\end{array} \right\matkugiriz$}}
\newcommand{\threetwomatrix}[6]{\mbox{$ \left\matkugiria \begin{array}{rr}%
	{#1}&{#2}\\{#2}&{#4}\\{#5}&{#6}\end{array} \right\matkugiriz$}}
	%３次の行列
\def\twodet#1#2#3#4{\mbox{$ \left| \begin{array}{rr}%
	{#1}&{#2}\\ {#3}&{#4}\\ \end{array} \right|$}}	%２次の行列式
\newcommand{\threedet}[9]{\mbox{$ \left| \begin{array}{rrr}%
	{#1}&{#2}&{#3}\\ {#4}&{#5}&{#6}\\{#7}&{#8}&{#9} \end{array} \right|$}}
	%３次の行列式
\def\twodmatrix#1#2{\mbox{$ \left\matkugiria\begin{array}{rr}%
	{#1}&0\\ 0&{#2}\\ \end{array} \right\matkugiriz$}}
\def\twoddet#1#2{\mbox{$ \left| \begin{array}{rr}%
	{#1}&0\\ 0&{#2}\\ \end{array} \right|$}}
%\newcommand{\fourmatrix}[16]{\mbox{$ \left[ \begin{array}{rrrr}%
%	{#1}&{#2}&{#3}&{#4}\\ {#5}&{#6}&{#7}&{#8}\\%
%	{#9}&{#10}&{#11}{#12}\\ {#13}&{#14}&{#15}&{#16} \end{array} \right]$}}
%\newcommand{\fourdet}[16]{\mbox{$ \left| \begin{array}{rrrr}%
%	{#1}&{#2}&{#3}&{#4}\\ {#5}&{#6}&{#7}&{#8}\\%
%	{#9}&{#10}&{#11}{#12}\\ {#13}&{#14}&{#15}&{#16} \end{array} \right|$}}
\def\nmatrix#1{\mbox{$ \left\matkugiria\begin{array}{rrr}%
	{#1}_{11}&\cdots&{#1}_{1n}\\ \vdots&{#1}_{ij}&\vdots\\%
	{#1}_{n1}&\cdots&{#1}_{nn} \end{array} \right\matkugiriz$}}
\def\mnmatrix#1{\mbox{$ \left\matkugiria\begin{array}{ccc}%
	{#1}_{11}&\cdots&{#1}_{1n}\\ \vdots&{#1}_{ij}&\vdots\\%
	{#1}_{m1}&\cdots&{#1}_{mn} \end{array} \right\matkugiriz$}}
\def\npmatrix#1{\mbox{$ \left\matkugiria\begin{array}{ccc}%
	{#1}_{11}&\cdots&{#1}_{1p}\\ \vdots&{#1}_{ij}&\vdots\\%
	{#1}_{n1}&\cdots&{#1}_{np} \end{array} \right\matkugiriz$}}
\def\ndet#1{\mbox{$ \left| \begin{array}{ccc}%
	{#1}_{11}&\cdots&{#1}_{1n}\\ \vdots&{#1}_{ij}&\vdots\\%
	{#1}_{n1}&\cdots&{#1}_{nn} \end{array} \right|$}}
\def\threedmatrix#1#2#3{\mbox{$ \left\matkugiria\begin{array}{ccc}%
	{#1}&0&0\\ 0&{#2}&0\\0&0&{#3} \end{array} \right\matkugiriz$}}
\def\dtwomatrix#1#2{\mbox{$ \left\matkugiria\begin{array}{rrr}%
	{#1}& &O\\ &\ddots& \\O& &{#2} \end{array} \right\matkugiriz$}}
\def\ndmatrix#1#2{\mbox{$ \left\matkugiria\begin{array}{rrr}%
	{#1}& &O\\ &\ddots& \\O& &{#2} \end{array} \right\matkugiriz$}}
\let\matkugiria=(
\let\matkugiriz=)
%\fi
%X-- topology -------------------------------------------------------
\def\pione{\mbox{$\pi_1$}}
\def\uc#1{\mbox{$\stackrel{\circ}{#1}$}}
\def\upcirc#1{\mbox{$\stackrel{\circ}{#1}$}}
\def\bd{\partial}
%----------------------------------------------------------
%等号付き不等号を変更%(->LaTeX美文P107)
%\makeatletter	style file中では不用
\def\le{\mathrel{\mathpalette\gl@align<}}
\def\ge{\mathrel{\mathpalette\gl@align>}}
\def\gl@align#1#2{\lower.6ex\vbox{\baselineskip\z@skip\lineskip\z@%
	\ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr}}}
%\makeatother
%リスト環境の不具合を直すため(->LaTeX美文p72)
\def\descriptionlabel#1{\bf #1\hfil}
\def\description{\list{}{%
	\labelwidth=\leftmargin
	\advance\labelwidth by -\labelsep
	\let \makelabel=\descriptionlabel}}
%均等割(->LaTeX美文P66)---\kintou{5zw}{均等割}
\def\kintou#1#2{\makebox[#1]{%
	\kanjiskip=0pt plus 1fill minus 1fill
	\xkanjiskip=\kanjiskip
	#2}}
%ルビ(->LaTeX美文P66)
\def\ruby#1#2{%
	\leavevmode
	\setbox0=\hbox{#1}\setbox1=\hbox{\tiny#2}%
	\ifdim\wd0>\wd1 \dimen0=\wd0 \else \dimen0=\wd1 \fi
	\hbox{\kanjiskip=\fill
		\vbox{\hbox to \dimen0{\tiny \hfil#2\hfil}%
		\nointerlineskip
		\hbox to \dimen0{\hfil#1\hfil}}}}
%引用文献 style 変更 --- add \MSPCITE
%\def\MSPCITE{\MSP{.05}}
\def\MSPCITE{\hbox{\hskip .05cm\relax}}
\def\@cite#1#2{[\MSPCITE{#1\if@tempswa , #2\fi}\MSPCITE]}
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{,\MSPCITE\penalty\@m}\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
\hbox{\csname b@\@citeb\endcsname}}}{#1}}
%----------------------------------------------------------
%field \iftrue <--> \iffalse で選択 @@@
\iftrue%
\typeout{Fonts of number fields --- old type}%
\def\R#1{\mbox{{\boldmath $R$}$^{#1}$}}
\def\Q#1{\mbox{{\boldmath $Q$}$^{#1}$}}
\def\N#1{\mbox{{\boldmath $N$}$^{#1}$}}
\def\C#1{\mbox{{\boldmath $C$}$^{#1}$}}
\def\H#1{\mbox{{\boldmath $H$}$_{#1}$}}%@@@@@
\def\Z#1{\mbox{{\boldmath $Z$}$^{#1}$}}
\def\K#1{\mbox{{\boldmath $K$}$^{#1}$}}
\def\F#1{\mbox{{\boldmath $F$}$^{#1}$}}
\fi%
\iffalse%
\typeout{Fonts of number fields --- mew type}%
\def\R{\sf R\hspace*{-0.9ex}\rule{0.15ex}{1.5ex}\hspace*{0.9ex}}
\def\Q{\sf Q\hspace*{-1.1ex}\rule{0.15ex}{1.5ex}\hspace*{1.1ex}}
\def\N{\sf N\hspace*{-1.0ex}\rule{0.15ex}{1.3ex}\hspace*{1.0ex}}
\def\C{\sf C\hspace*{-0.9ex}\rule{0.15ex}{1.3ex}\hspace*{0.9ex}}
\def\Z#1{\mbox{{\boldmath $Z$}$^{#1}$}}
\def\K{\sf K\hspace*{-1.0ex}\rule{0.15ex}{1.3ex}\hspace*{1.0ex}}
\fi%
%----------------------------------------------------------
%macro読込みのためのnewif @@@
\newif\ifsecthm
% true にすると\the=sec.thm となる。
\newif\ifsamethm
% true にするとprop等に 共通の thm counter を用いる。
\def\ssthm{\secthmtrue\samethmtrue}
\newif\iftosithm
% true にすると section でcounter が reset されない。
%\def\kzero{\input kart10e.sty}
%\def\kone{\input kart11e.sty}
%\def\ktwo{\input kart12e.sty}
%----------------------------------------------------------
%jarticle.sty
% 次の行がオリジナル．その次の行はReferencesの表示を真ん中に．	@@@
\def\thebibliography#1{\section*{参考文献\markboth
%\def\thebibliography#1{\section*{\hfil 参考文献\hfil\hfil\markboth
 {参 考 文 献}{参 考 文 献}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
%---------------------------
% タイトル部分	@@@
\typeout{title parts & enumerate item modified in kno.sty}
\def\@maketitle{\newpage
 \null
 \vskip 2em \begin{center}
 {\LARGE \@title \par} \vskip 2.5em {\large \lineskip .5em
% 1.5em->2.5em	@@@
\begin{tabular}[t]{c}\@author 
 \end{tabular}\par}
  \vskip 2em {\normalsize \@date} \end{center}
%\large->\normalsize 1em->2em	@@@
 \par
 \vskip 1.5em} 
%---------------------------
%modify theorem環境
%\makeatletter	%style fileの中では不用
\def\@begintheorem#1#2{\trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
\def\@opargbegintheorem#1#2#3{\trivlist
      \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
%\makeatother	%original=\it\trivlist...

%----------------------------------------------------------
% enumerate item 			@@@ %add @@@@@
\def\labelenumi{(\arabic{enumi})} 
\def\theenumi{\arabic{enumi}} 
\def\labelenumii{\arabic{enumii})}
\def\theenumii{\roman{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\theenumiii.}
\def\theenumiii{\arabic{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}} 
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}
%----------------------------------------------------------
\endinput
%style file中でないところでincludeする時はmakeatletter/otherを変更する事
% set の中対応
% \ktwo 等を使わずにpoint に対応したい
