% \iffalse meta-comment
% Copyright (C) 2004 by Thor Watanabe
% 
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.2 of this license or (at your option) any later
% version.  The latest version of this license is in:
% 
%    http://www.latex-project.org/lppl.txt
% 
% and version 1.2 or later is part of all distributions of
% LaTeX version 1999/12/01 or later.
% 
% \fi
% \CheckSum{0}
% \iffalse
%<joumac>\NeedsTeXFormat{LaTeX2e}
%<joumac>\ProvidesPackage{joumac}
%<joumac>   [20006/03/01 v0.3 (Thor)]
%<*driver>
\documentclass{jsarticle}
\usepackage{doc}
\usepackage{shortvrb}
\newcommand{\marg}[1]{\string{$\langle$\mbox{}#1\mbox{}$\rangle$\string}}
\MakeShortVerb|
\EnableCrossrefs
\CodelineIndex
\DoNotIndex{\textsf,\bs,\texttt,\glossary,\index,\zdash}
\DoNotIndex{\def,\DescribeMacro,\@ifnextchar,\mbox,\newcommand}
\DoNotIndex{\hspace,\normalfont,\newfont,\string,\protect}
\DoNotIndex{\@ne,\@for,\@tempcnta,\@tempcntb,\addvspace}
\DoNotIndex{\advance,\al,\begin,\begingroup,\bfseries}
\DoNotIndex{\char,\color,\colorbox}
\DoNotIndex{\DeclareRobustCommand}
\DoNotIndex{\endlist,\varbatim,\endvarbatim}
\DoNotIndex{\fullwidth,\hbox,\hskip,\immediate}
\DoNotIndex{\itshape,\kern,\member,\newenvironment}
\DoNotIndex{\parskip,\par,\parindent,\put,\ref,\relax}
\DoNotIndex{\rightmargin,\rmfamily,\small,\TeX,\textcolor}
\DoNotIndex{\textsl,\ttfamily,\upshape,\usepackage}
\DoNotIndex{vector,\vskip}
\addtolength{\textwidth}{-1in}
\addtolength{\evensidemargin}{1in}
\addtolength{\oddsidemargin}{1in}
\addtolength{\marginparwidth}{1in}
\setlength\marginparsep{10pt}
\setlength\marginparpush{0pt}
\setcounter{StandardModuleDepth}{1}
\GetFileInfo{joumac.sty}
\begin{document}
  \DocInput{joumac.dtx}
\end{document}
%</driver>
% \fi
%
% \title{ع{\LaTeXe}ѥޥ}
% \author{Ű}
% \date{\number\year/\number\month/\number\day}
% \maketitle
% \StopEventually{}
%    \begin{macrocode}
%<*joumac>
%    \end{macrocode}
%
% \DescribeMacro{\FileDatej}
% \DescribeMacro{\FileVerjou}
% ҤȥСݻ|\FileDatej|
% |\FileVerjou|ޤ
%    \begin{macrocode}
\newcommand* \FileDatej{\number\year/\two@digits\month/\two@digits\day}
\FileVerjou{0.3d}
%    \end{macrocode}
%
% \DescribeMacro{\author}
% \DescribeMacro{\title}
% \DescribeMacro{\date}
% |\author||\title||\date|ϸǤ
%    \begin{macrocode}
\author {Ű}
\title  { \LaTeXe }
\date   \today
%    \end{macrocode}
%
% \DescribeMacro{\RequirePackage}
% ع٤ɬפȤޥǤ
% ޥɤ߹Ȥ|\ifusedvipdfm|Υ֡ͤ
% ȤäƥѥåץȽꤷޤϼ縶
% Ƥޤ\textsf{listings}͡ʾ̤
% Ȥޤ\textsf{jlisting}̾ΤäݰȻ
% ĺΤǤ\textsf{okumacro}|\ruby|
% |\yen||\key||\return||\MARU|
% |\JTeX||\JLaTeX||screen|Ķʤɤ
% ѤƤޤվѤ|namelist|Ķ
% ʸϤ|mybibliography|ĶȤäƤޤ
% \textsf{url}ѥå|\url|̿ʤɤȤäƤޤ
% 
%    \begin{macrocode}
\RequirePackage[usenames]{color}[1999/02/16]%
\RequirePackage{graphicx}[1999/02/16]%
\RequirePackage{epic}\relax%
\RequirePackage{eepic}\relax%
\RequirePackage{pict2e}[2004/02/19]%
\RequirePackage{amsmath}[2000/07/18]
\RequirePackage{amssymb}[2002/01/22]
\RequirePackage{array}[2003/12/17]
\RequirePackage{bm}[2004/02/26]
\RequirePackage{booktabs}[2003/03/28]
\RequirePackage{calc}[1998/07/07]
\RequirePackage{cmtt}[1996/05/25]
\RequirePackage{delarray}[1994/03/14]
\RequirePackage{dcolumn}[2001/05/28]
\RequirePackage{enumerate}[1999/03/05]
\RequirePackage{fancybox}[2000/09/19]
\RequirePackage{ifthen}[2001/05/26]
\RequirePackage{labelfig}\relax
\RequirePackage{latexsym}[1998/08/17]
\RequirePackage{leftidx}\relax
\RequirePackage{indent}\relax% TODO
\RequirePackage{listings}[2004/02/13]% v1.2
\RequirePackage{longtable}[2004/02/01]
\RequirePackage{makeidx}[2000/03/29]
\RequirePackage{manfnt}\relax
\RequirePackage{mflogo}[1999/03/10]
\RequirePackage{multicol}[2004/02/14]
\RequirePackage{multirow}\relax
\RequirePackage{tabularx}[1999/01/07]
\RequirePackage{theorem}[1995/11/23]
\RequirePackage[obeyspaces,spaces]{url}\relax
\RequirePackage{verbatim}[2003/08/22]
\RequirePackage{wrapfig}[2003/01/31]
\RequirePackage{xspace}[1997/10/13]
\RequirePackage{alltt}[1991/01/01]% TODO 
\ifx \pfmtname \@undefined \else
  \RequirePackage{jlisting}[2004/03/24]
  \RequirePackage {okumacro}[2003/11/24]
\fi
\RequirePackage{type1ec}[1991/01/01]% TODO
\RequirePackage[T1]{fontenc}\relax%
\RequirePackage{textcomp}\relax% TODO
\RequirePackage{emathN}[1991/01/01]% http://emath.s40.xrea.com/
\resettagform % ɬ
%    \end{macrocode}
%
% \DescribeMacro{\lstset}
% \DescribeMacro{\lstlistlistingname}
% \DescribeMacro{\lstlistingname}
% \textsf{listings}ѤǤ|\lstset|Ǥ٤Ƥ
% \textsf{listings}δĶ򤷤ޤ
%    \begin{macrocode}
\lstset{breaklines=true,columns=[l]{fullflexible},%
   numbers=left,numberstyle={\scriptsize},%
   stepnumber=1,numbersep=1zw,%
   lineskip=-0.5ex}%
\def\lstlistlistingname{ܼ}
\def\lstlistingname{}
% wrapfig Ѥ (\fullwidth)
\setlength{\wrapoverhang}{\fullwidth}
\addtolength{\wrapoverhang}{-\textwidth}
\addtolength{\wrapoverhang}{\marginparsep}
\addtolength{\wrapoverhang}{-2zw}
%    \end{macrocode}
%
% \DescribeMacro{\contact}
% ҤκԤؤϢޤ
% ɽ˻Ȥޤ
%    \begin{macrocode}
\contact{%
   Th\'or Watanabe\\%
   Dept.\ of System Information Science\\%
   Future University-Hakodate\\%
   thor@tex.dante.jp\\%
   \url{http://tex.dante.jp/}}%
%    \end{macrocode}
%
% \DescribeMacro{\makeindex}
% \DescribeMacro{\makeglossary}
% \DescribeMacro{\indexname}
% \DescribeMacro{\glossaryname}
% ̿뤿|\makeindex||\makeglossary|
% Ƥޤ˰|\indexname||\glossaryname|
% 줾ֺ פȡ̿   פ˷Ƥޤ
%    \begin{macrocode}
\makeindex
\makeglossary
\def\indexname{ }
\def\glossaryname{̿   }
%    \end{macrocode}
%
% \DescribeMacro{\bs}
% Хåå˥뤿|\bs|̿ޤ
% ͡ʾ̤ǻȤޤץ饤ΤǤνϤΤȤˤ
% Ȥޤ
%    \begin{macrocode}
\newcommand{\bs}{\symbol{'134}}
%    \end{macrocode}
%
% \DescribeMacro{\cmd}
% ʸ{\LaTeX}Υޥɤ򻲾ȤȤ˻Ȥ̿Ǥ
% |\cmd{newcommand}|Τ褦˻ȤޤƬ˥Хå
% 夬ղäޤҤ|\bs|̿᤬Ȥޤ
% \DescribeMacro{\Cmd}
% {\LaTeX}Υޥɤֺפɲä|\cmd|ǤϤʤ
% |\Cmd|̿Ȥ褦ˤޤ
%    \begin{macrocode}
\newcommand{\cmd}[1]{\texttt{\bs#1}}
\newcommand{\Cmd}[1]{%
   \glossary{#1@\texttt{\hspace*{-1.2ex}{\protect\bs#1}}}%
   \texttt{\bs#1}}
%    \end{macrocode}
%
% \DescribeMacro{\env}
% {\LaTeX}δĶΥޥɤʸǻȤȤ
% |\env|̿Ȥޤ
% \DescribeMacro{\Env}
% δĶɲä|\Env|̿Ȥޤ
%    \begin{macrocode}
\newcommand{\env}[1]{\texttt{#1}}%
\newcommand{\Env}[1]{%
   \index{Ķ!#1@\texttt{#1}}%
   \glossary{Ķ!#1@\texttt{#1}}%
   \glossary{#1󤭤褦@\texttt{#1}Ķ}%
   \texttt{#1}}%
%    \end{macrocode}
%
% \DescribeMacro{\word}
% |\word|̿ޤ
% \DescribeMacro{\Word}
% ɲäȤ|\Word|̿Ȥޤ
%    \begin{macrocode}
\newcommand{\word}[1]{#1}
\newcommand{\Word}[1]{\index{#1}#1}
%    \end{macrocode}
%
% \DescribeMacro{\zdash}
%  ܳѥå|\protect|뤿
%  |\zdash|̿Ƥޤ
% \DescribeMacro{\indindz}
% \DescribeMacro{\zindind}
%  Ūʺˤϡֿơפȡֻҡפꤷƥȥꤵޤ
%    \begin{macrocode} 
\DeclareRobustCommand\zdash{\char\jis"213D\kern-.5zw%
   \char\jis"213D\kern-.5zw\char\jis"213D\relax}
\newcommand\zindind[2]{\index{#1!\zdash#2}}
\newcommand\indindz[2]{\index{#1!#2\zdash}}
%    \end{macrocode}
%
% \DescribeMacro{\prog}
% ץ̾򻲾Ȥ|\prog|̿Ȥޤ
% \DescribeMacro{\Prog}
% ץ̾ɲä|\Prog|̿Ȥޤ
%    \begin{macrocode}
\newcommand{\prog}{\@ifnextchar[{\yomi@prog}{\@prog}}%]
\newcommand{\@prog}[1]{#1}
\newcommand{\yomi@prog}[2][]{#2}
\newcommand{\Prog}{\@ifnextchar[{\yomi@Prog}{\@Prog}}
\newcommand{\@Prog}[1]{%
   \index{ץ!#1}\index{#1}#1}
\newcommand{\yomi@Prog}[2][]{%
   \index{ץ!#1@\protect#2}%
   \index{#1@\protect#2}#2}
%    \end{macrocode}
%
% \DescribeMacro{\fl}
% ե̾򻲾Ȥ|\fl|Ȥޤ
% \DescribeMacro{\Fl}
% ե̾򻲾ȤɲäȤ|\Fl|Ȥޤ
%    \begin{macrocode}
\newcommand{\fl}[1]{\texttt{#1}}
\newcommand{\Fl}[1]{%
   \index{ե!#1@\texttt{#1}}%
   \index{#1@\texttt{#1}}\texttt{#1}}
%    \end{macrocode}
%
% \DescribeMacro{\cls}
% Ĥ褦Ǥɥȥ饹򻲾ȤȤ
% |\cls|̿Ȥޤ
% \DescribeMacro{\Cls}
% 饹ˤɲäȤ|\Cls|̿Ȥޤ
%    \begin{macrocode}
\newcommand{\cls}[1]{\textsf{#1}}
\newcommand{\Cls}[1]{%
   \index{饹!#1@\textsf{#1}}%
   \index{#1@\textsf{#1}}\textsf{#1}}
%    \end{macrocode}
%
% \DescribeMacro{\sty}
% ޥѥå|\sty|ǻȤޤ
% \DescribeMacro{\Sty}
% ˺ˤɲäˤ|\Sty|̿Ȥޤ
%    \begin{macrocode}
\newcommand{\sty}[1]{\textsf{#1}}
\newcommand{\Sty}[1]{%
   \index{ѥå!#1@\textsf{#1}}%
   \index{#1@\textsf{#1}}\textsf{#1}}%
%    \end{macrocode}
%
% \DescribeMacro{\bst}
% ʸ򻲾ȤȤ|\bst|̿Ȥޤ
% \DescribeMacro{\Bst}
% ɲä|\Bst|Ǥ
%    \begin{macrocode}
\newcommand{\bst}[1]{\textsf{#1}}
\newcommand{\Bst}[1]{%
	\index{ʸ!#1@\textsf{#1}}%
	\index{#1@\textsf{#1}}\textsf{#1}}%
%    \end{macrocode}
%
% \DescribeMacro{\hito}
% ̾񤯤Ȥ|\hito|̿ȤɾΤάޤ
% ɾΤ|\hito|̿¦줷ޤ
% \DescribeMacro{\Hito}
% ɲä|\Hito|̿Ǥɤߤ
% Ǥհǻꤷޤ
%    \begin{macrocode}
\newcommand{\hito}{\@ifnextchar[{\yomi@hito}{\@hito}}
\newcommand{\yomi@hito}[2][]{#2}
\newcommand{\@hito}[1]{#1}
\newcommand{\Hito}{\@ifnextchar[{\yomi@Hito}{\@Hito}}
\newcommand{\yomi@Hito}[2][]{%
	\index{̾!#1@\protect{#2}}%
	\index{#1@\protect{#2}}#2}
\newcommand{\@Hito}[1]{\index{̾!#1}\index{#1}#1}
\newcommand{\HITO}{\@ifnextchar[{\yomi@HITO}{\@HITO}}
\newcommand{\yomi@HITO}[2][]{%
   \index{̾!#1@\protect{#2}}%
   \index{#1@\protect{#2}}#2}%
\newcommand{\@HITO}[1]{\index{̾!#1}\index{#1}#1}
%    \end{macrocode}
%
% \DescribeMacro{\kount}
% {\LaTeX}Υ̾򻲾Ȥ|\kount|Ȥޤ
% \DescribeMacro{\Kount}
% Ƥɲäˤ|\Kount|Ȥޤ
%    \begin{macrocode}
\newcommand{\kount}[1]{\texttt{#1}}
\newcommand{\Kount}[1]{%
  \index{#1@\texttt{#1}\pp{}}\index{!#1@\texttt{#1}}%
  \texttt{#1}}
%    \end{macrocode}
%
% \DescribeMacro{\exten}
% ĥҤ򼨤|\exten|̿Ȥޤ˥ԥꥪɤ
% άޤ
% \DescribeMacro{\Exten}
% ˤɲä|\Exten|Ȥޤ
%    \begin{macrocode}
\newcommand{\exten}[1]{\texttt{.#1}}
\newcommand{\Exten}[1]{%
  \index{ĥ!#1@\texttt{\protect\hspace*{-1ex}.#1}}%
  \index{#1@\texttt{\protect\hspace*{-1ex}.#1} (ĥ)}%
  \texttt{.#1}}
%    \end{macrocode}
%
%    \begin{macrocode}
\newfont{\manfnt}{manfnt}
\newcommand{\key}[1]{\texttt{#1}}
\newcommand{\ka}{{\normalfont\textbar}}
\renewcommand{\kaku}[1]{#1\textdegree}
%    \end{macrocode}
% 
% \DescribeMacro{\va}
% ŪʡѿפȸƤФǤФƤ|\va|̿Ȥޤ
% \DescribeMacro{\Va}
% |\Va|̿2Ĥΰޤ1ܤˤǤդʸ2ܤˤ
% ĥҤ񤭤ޤ顤ǤդΥեĥդ
% ˻Ȥޤ
% \DescribeMacro{\str}
% ɤϤ䤽¾ɬפȻפʸפФƤ
% |\str|̿ȤޤƬʸ|\string|
% ƥ꡼̵ˤʤޤ
%    \begin{macrocode}
\newcommand{\va}[1]{{\normalfont$\langle$\mbox{}#1\mbox{}$\rangle$}}
\newcommand{\av}[1]{{\normalfont$\langle$\mbox{}#1\mbox{}$\rangle$}}
\newcommand{\Va}[2]{%
   $\langle$\mbox{}\textit{#1}\mbox{}$\rangle$\exten{#2}}
\newcommand{\str}[1]{{\normalfont\ttfamily\mdseries\string#1}}
%    \end{macrocode}
%
% \DescribeMacro{\pa}
% {\LaTeX}ޥɤɬܰ򼨤|\pa|̿Ȥޤ
% \DescribeMacro{\opa}
% Ǥհξ|\opa|̿Ȥޤ
% \DescribeMacro{\xy}
% ɸϤξ|\xy|Ȥ$x$$y$2ĤΰϤޤ
%    \begin{macrocode}
\newcommand{\pa}[1]{{\ttfamily\string{}\va{#1}{\ttfamily\string}}}%
\newcommand{\opa}[1]{{\ttfamily[}\va{#1}{\ttfamily]}}%
\newcommand{\xy}[2]{\string({\itshape#1}\texttt, {\itshape#2}\string)}
%    \end{macrocode}
%
% \DescribeMacro{\func}
% Cˤؿ򼨤Ȥ|\func|̿Ȥޤ
% \DescribeMacro{\Func}
% ؿˤɲäȤ|\Func|Ȥޤ
% \DescribeMacro{\res}
% ͽ|\res|̿Ȥޤ
% \DescribeMacro{\ope}
% 黻Ҥ|\ope|Ǥ
% \DescribeMacro{\Ope}
% 黻Ҥˤɲäʤ|\Ope|Ǥ
% \DescribeMacro{\bun}
% Cˤʸפ|\bun|Ȥޤ
% \DescribeMacro{\Bun}
% ʸפɲäȤ|\Bun|Ǥ
%    \begin{macrocode}
\newcommand{\func}[1]{{\ttfamily#1}}
\newcommand{\Func}[1]{\index{ؿ!#1@{\ttfamily#1}}%
   \index{#1@{\ttfamily#1}ؿ}{\ttfamily#1}}
\newcommand{\res}[1]{{\normalfont\bfseries#1}}
\newcommand{\ope}[1]{{\ttfamily#1}}
\newcommand{\Ope}[1]{\index{黻!#1@{\ttfamily#1}}
   \index{#1@{\ttfamily#1}黻}{\ttfamily#1}}
\newcommand{\bun}[1]{{\ttfamily#1}}
\newcommand{\Bun}[1]{\index{C!#1@{\ttfamily#1}ʸ}%
   \index{#1@{\ttfamily#1}ʸ}{\ttfamily#1}}
%    \end{macrocode}
%
% \DescribeMacro{\option}
% ѥåץ䥯饹ץˤ|\option|̿Ȥ
% ϥΤѹ롥
% \DescribeMacro{\Option}
% ץɲäˤ|\Option|̿Ȥ
% \DescribeMacro{\copt}
% ̤˥ץΥޥɥ饤󥪥ץξ|\copt|
% ̿Ȥ褦ˤɤϺɲäɬפϤʤ
%    \begin{macrocode}
\newcommand{\option}[1]{\textsl{#1}}
\newcommand{\Option}[1]{%
	\index{#1@\textsl{#1}}%
	\index{ץ!#1@\textsl{#1}}%
	\textsl{#1}}
\newcommand{\copt}[1]{\texttt{#1}}
%    \end{macrocode}
%
% \DescribeMacro{\qu}
% \DescribeMacro{\qq}
% ʸΰѤˤ|\qu||\qq|ȤޤñΰѤ|\qu|ǡ
% ʸΰѤˤ|\qq|Ȥ褦ˤޤ
% \DescribeMacro{\yo}
% \DescribeMacro{\yy}
% ʸΰѤˤ|\yo||\yy|ȤޤƱ褦
% ñˤ|\yo|ǡʸˤ|\yy|Ǥ
% \DescribeMacro{\pp}
% ݳ̤ǳ|\pp|̿ȤޤѴݳ̤Ȥޤ
% \DescribeMacro{\wasyo}
% \DescribeMacro{\yousyo}
% ̾̾򻲾ȤȤ|\wasyo||\yousyo|̿
% Ȥޤ½ξ|\wasyo|νξ|\yousyo|Ǥ
% 狼䤹Ǥ礦
%    \begin{macrocode}
\newcommand{\qu}[1]{`#1'}
\newcommand{\qq}[1]{``#1''}
\newcommand{\yo}[1]{#1}
\newcommand{\yy}[1]{#1}
\newcommand{\pp}[1]{#1}
\newcommand{\wasyo}[1]{#1}
\newcommand{\yousyo}[1]{\emph{#1}}
%    \end{macrocode}
%
% \DescribeMacro{\optionlist}
% 饹ץѥåץʣƱ
% ¤٤Ȥ|\optionlist|̿Ȥޤ
% \DescribeMacro{\Optionlist}
% ɲä|\Optionlist|ˤʤޤ
%    \begin{macrocode}
\def\optionlist#1{\@tempcnta=\z@ \@tempcntb=\z@%
 \@for\member:=#1\do{\advance\@tempcnta\@ne}%
 \@for\member:=#1\do{\advance\@tempcntb\@ne%
   \ifnum\@tempcntb<\@tempcnta%
         \textsl{\member}%
 \else%
  \ifnum\@tempcntb=\@tempcnta%
    \textsl{\member}%
  \fi%
\fi}}%
\def\Optionlist#1{\@tempcnta=\z@ \@tempcntb=\z@%
 \@for\member:=#1\do{\advance\@tempcnta\@ne}%
 \@for\member:=#1\do{\advance\@tempcntb\@ne%
   \ifnum\@tempcntb<\@tempcnta%
	\index{\member @\textsl{\member}}%
	\index{ץ!\member @\textsl{\member}}%
	\textsl{\member}%
 \else%
  \ifnum\@tempcntb=\@tempcnta%
	\index{\member @\textsl{\member}}%
	\index{ץ!\member @\textsl{\member}}%
	\textsl{\member}%
  \fi%
\fi}}
%    \end{macrocode}
%
% \DescribeMacro{\win}
% WindowsΥġС˥塼С򻲾ȤȤ
% |\win|ȤޤǲԤޤΤ|Overfull|
% ˤʤΤդɬפǤ
%    \begin{macrocode}
\newcommand{\win}[1]{{%
   \fboxsep0pt\fboxrule0pt\colorbox[gray]{.8}{[#1]}}} 
%    \end{macrocode}
%
% \begin{environment}{myquote}
% jsclassesǤϱ¦ޤ󤬡
% ¦ѴĶǤ
%    \begin{macrocode}
\newenvironment{myquote}%
  {\list{}{\rightmargin\leftmargin}\item\relax}{\endlist}
%    \end{macrocode}
% \end{environment}
% \begin{environment}{myquotation}
% ιƬޤ
%    \begin{macrocode}
\newenvironment{myquotation}{%
  \list{}{%
    \listparindent\parindent
    \itemindent\listparindent
    \rightmargin\leftmargin}%
  \item\relax}{\endlist}
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{InText}
% 桼Ϥ٤ƥȤ򼨤ˤ|InText|Ķ
% Ȥޤ|verbatim|Ķ|\small|Ⱥ¦λ򤷤
% ǡäƥץǤ
%    \begin{macrocode}
\newenvironment{InText}{%
  \list{}{\leftmargin=2zw \rightmargin=0zw}
   \item\small\verbatim}{\endverbatim \endlist}%
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{OutText}
% ɤ򥿥ץåȤȤɽ򼨤ˤ
% |OutText|ĶȤޤϤ|InText|Фˤʤޤ
%    \begin{macrocode}
\newenvironment{OutText}{\unitlength=1pt
	\begin{screen}}{\end{screen}}
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{InTerm}
% 󥽡뤫ʸϤˤ|InTerm|Ķ
% ȤޤʣԤϤˤ|\item|̿Ƭˤޤ
% üʸˤŬХååդʤ
% ʤޤ
%    \begin{macrocode}
\newenvironment{InTerm}%
   {\list{\rule[-.2em]{1ex}{1em}}{\ttfamily
      \itemsep=-.5ex \parsep=-.5ex}\item\relax}%
   {\endlist}
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{OutTerm}
% 󥽡˽Ϥʸ򼨤|OutTerm|Ķ
% ȤޤdraftץͭΤȤ|verbatim|ޤ
% ǤʤlistingsѥåȤޤ
%    \begin{macrocode}
\ifdraft
\newenvironment{OutTerm}{%
   \list{}{\leftmargin=1.5zw \rightmargin=1.5zw}
   \item\small\verbatim}{\endverbatim \endlist}%
\else
\lstnewenvironment{OutTerm}{%
  \lstset{%
    columns=[l]{fullflexible},
    basicstyle={\small\ttfamily},%
    identifierstyle={\small},%
    commentstyle={\small},%
    keywordstyle={\small\bfseries},%
    ndkeywordstyle={\small},%
    numbers=none,%
    formfeed=\linebreak,%
    frameshape={yny}{}{}{yny},
    xrightmargin=1.5zw,%
    xleftmargin=1.5zw,%
    }}{}%
\fi%
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{C}
% CΥɤ򵭽ҤˤϤФ|C|ĶȤޤ
%    \begin{macrocode}
\lstnewenvironment{C}{%
  \lstset{%
    xleftmargin=3zw,%
    basicstyle={\small\ttfamily\upshape},%
    identifierstyle={\small\ttfamily\upshape},%
    commentstyle={\small\ttfamily\itshape},%
    keywordstyle={\small\ttfamily\upshape},%
    ndkeywordstyle={\small\ttfamily\upshape},%
    }}{}%
%    \end{macrocode}
% \end{environment}
%
% \begin{macro}{\lstbash}
% listingsbashѤǤȤäƤޤ
%    \begin{macrocode}
%\newcommand{\lstbash}{%
%\lstset{%
%  formfeed={\linebreak},%
%   columns=[l]{fullflexible},%
%   basicstyle={\small},%
%   identifierstyle={\small},%
%   commentstyle={\small\ttfamily},%
%   keywordstyle={\small\bfseries},%
%   ndkeywordstyle={\small},%
%   xrightmargin=1.5zw,xleftmargin=1.5zw,%
%   frame=tb,
%   language=ksh,numbers=left,numberstyle={\scriptsize},%
%   stepnumber=1,numbersep=1zw}}
%    \end{macrocode}
% \end{macro}
%
% \begin{environment}{Syntax}
% {\LaTeX}ʤɤˤפʹʸ|Syntax|Ķޤ
% ԤʤɤϹԤ줺ñǤʸäѤդ
% ȢǤ顤ڡڤˤϵĤƤ
%    \begin{macrocode}
\newenvironment{Syntax}%
  {\bgroup \parindent=0pt%
    \par\addvspace{1ex plus 0.8ex minus 0.5ex}%
    \vskip-\parskip\begin{Sbox}%
    \begin{minipage}{\ftextwidth}}%
  {\end{minipage}\end{Sbox}\fbox{\TheSbox}%\IOlabel%
    \par\addvspace{1ex plus 0.8ex minus 0.5ex}%
    \vskip-\parskip\egroup\par\noindent}%
%    \end{macrocode}
% \end{environment}
%
% \DescribeMacro{\pref}
% ڡ򻲾Ȥ|\pageref|ǤϤʤ|\pref|Ȥޤ
% ξ|\pref|¦ǡ֡ڡפΡ֥ڡפ˳
% ʸ줷ޤ
% \DescribeMacro{\chapref}
% Ϥ򻲾ȤȤ|\ref|ǤϤʤ|\chapref|̿Ȥޤ
% \DescribeMacro{\secref}
% Ʊ褦|\secref|Ȥޤ%
% \DescribeMacro{\fullref}
% ڡֹֹξ֡ڡפȤ
% Ȥˤ|\fullref|Ȥޤ
% \DescribeMacro{\figref}
% ޤ|\figref|Ǥ
% \DescribeMacro{\tabref}
% ɽ|\tabref|Ǥ
% \DescribeMacro{\eqref}
% 򻲾Ȥ뤿|\eqref|ϤǤamsmathƤΤ
% |\def|ȤäƤޤ
%    \begin{macrocode}
\newcommand{\pref}[1]{\pageref{#1}~ڡ}
\newcommand{\chapref}[1]{\ref{#1}~}
\newcommand{\secref}[1]{\ref{#1}~}
\newcommand{\fullref}[1]{\pref{#1}\secref{#1}~}
\newcommand{\figref}[1]{\figurename~\ref{#1}}
\newcommand{\tabref}[1]{\tablename~\ref{#1}}
\def\eqref#1{~(\ref{#1})}
%    \end{macrocode}
%
% \DescribeMacro{\Xy}
% Ƽޤ
% \DescribeMacro{\PIC}
% \DescribeMacro{\Tpic}
% \DescribeMacro{\JLaTeXe}
% \DescribeMacro{\XyMTeX}
% \DescribeMacro{\eTeX}
% \DescribeMacro{\eLaTeX}
% \DescribeMacro{\AmsLaTeX}
% \DescribeMacro{\dvipdfmx}
% dvipdfm$x$ΥʤΤǤϤʤ⤷ޤ
% |\kterm|LinuxOSǹȤƤϤǤ
% üߥ졼Ǥ
% |\TtH|ΥǤϤޤ󡥺ɲäˤ
% Թ礬ΤǤΥˤʤäƤޤ
%    \begin{macrocode}
\DeclareRobustCommand{\Xy}{\leavevmode%
   \hbox{\kern-.1em X\kern-.3em\lower.4ex\hbox{Y\kern-.15em}}}
\newcommand{\PIC}{PIC}
\newcommand{\Tpic}{{\normalfont\textsc{Tpic}}}
\DeclareRobustCommand{\JLaTeXe}{\leavevmode%
   \lower.5ex\hbox{\rm J}\kern-.1em\LaTeXe}
\DeclareRobustCommand{\XyMTeX}{%
   X\kern-.3em\smash{\raise.5ex\hbox{$\m@th\Upsilon$}}%
   \kern-.3em{M}\kern-0.1em\TeX}
\DeclareRobustCommand{\eTeX}{$\m@th\varepsilon$-\TeX}
\DeclareRobustCommand{\eLaTeX}{$\m@th\varepsilon$-\LaTeX}
\def\NTS{\leavevmode\hbox{$\cal N\kern-0.35em\lower0.5ex\hbox{$\cal T$}%
  \kern-0.2emS$}}
\providecommand{\AmSLaTeX}{\AmS-\LaTeX}
\newcommand{\dvipdfmx}{Dvipdfm{\rmfamily\itshape x}}
%    \end{macrocode}
%
% \DescribeMacro{\kterm}
% ѸΤˤĤν̾ѸϿƤޤ
% |\LMANUAL||\COMP||\GCOMP||\WCOMP|4϶κʡ
% |\TEXBOOK||\METAFONTBOOK|KnuthΥХ֥롥
%    \begin{macrocode}
\newcommand{\LMANUAL}{ʸƥ{\LaTeXe}}
\newcommand{\COMP}{{\LaTeX}ѥ˥}
\newcommand{\GCOMP}{{\LaTeX}եåѥ˥}
\newcommand{\WCOMP}{{\LaTeX} Webѥ˥}
\newcommand{\TEXBOOK}{\TeX book}% 
\newcommand{\METAFONTBOOK}{\MF ֥å} % 
\newcommand{\ANOTHERMANUAL}{Another Manual}
\newcommand{\PS}{PostScript}
\newcommand{\IM}{ImageMagick}
\newcommand{\EPSconv}{EPS-Conv}
\newcommand{\GS}{Ghostscript}
\newcommand{\BB}{BoundingBox}
\newcommand{\kterm}{kterm}
\newcommand{\TtH}{TtH}
\newcommand{\laTEX}{\TeX/\LaTeX}
%    \end{macrocode}
%
% \DescribeMacro{\m}
% ʲ|\m||\M||\T||\KM||\A||\B||\W|
% ٤ɽǻȤޤϺ¦Ǥ˵Ϥ
% ¦Ǥ˥Ϥޤפ˵
% ϤФ򼨤˲٤ȤƤޤ
% 嵭̿ǤϥХååϾάޤ
% Ū˵椬ϤƤʤ⤢Τ
% ץߥդƤ
% \DescribeMacro{\M}
% |\m|ξϺɲäʤصǤꡤ
% |\M|̿ϿصȤ̿ɲäޤ
% \DescribeMacro{\T}
% ʸ|\T|Ȥ̿ɲäޤ
% \DescribeMacro{\KM}
% ֵ桡̿פϲ٤Ȥ뤫⤷ʤΤ|\KM|
% ȤƤޤ
%    \begin{macrocode}
\newcommand{\m}[1]{$#1$&\texttt{\string#1}}
\newcommand{\M}[1]{%
   \glossary{#1@\hspace*{-1.2ex}\texttt{\protect\bs#1}%
	\hskip1em($\protect\csname #1\endcsname$)}%
   $\csname #1\endcsname$&\texttt{\bs#1}}
\newcommand{\BM}[1]{%
   \glossary{#1@\hspace*{-1.2ex}\texttt{\protect\bs#1}%
	\hskip1em($\protect\csname #1\endcsname$)}%
   \texttt{\bs#1}}
\newcommand{\T}[1]{%
   \glossary{#1@\hspace*{-1.2ex}\texttt{\protect\bs\string#1}%
	\hskip1em(\csname#1\endcsname)}%
   \csname#1\endcsname&\texttt{\bs\string#1}}
\newcommand{\KM}{&̿}
%    \end{macrocode}
%
% \DescribeMacro{\A}
% ʸü쵭ˤ|\A|Ȥޤ
% \DescribeMacro{\B}
% ʸĹΥȤˤ|\B|̿Ȥ1ܤΰ
% ̿2ܤΰ˥ȤĤʸ񤭤ޤ
% \DescribeMacro{\W}
% ΥȤˤ|\W|̿ǡ1ܤΰ
% ̿2ܤΰ˥ȤĤ뵭񤭤ޤ
%    \begin{macrocode}
\newcommand{\A}[1]{%
   \glossary{#1@\hspace*{-1.2ex}\texttt{\protect\bs#1}%
      \hskip1em(\csname#1\endcsname)}%
   \csname#1\endcsname&\texttt{\bs#1}}
\newcommand{\B}[2]{%
   \glossary{#1@\hspace*{-1.2ex}\texttt{\protect\bs#1}%
      \hskip1em(\csname#1\endcsname{#2}\relax)}%
   \csname#1\endcsname{#2}&%
    \texttt{\protect\bs\string#1\string{#2\string}}}
% \W{#1}{#2} Υ
\newcommand{\W}[2]{%
  \glossary{#1@\hspace*{-1.2ex}\texttt{\bs#1}%
    \hskip1em($\csname#1\endcsname{#2}$)}%
  $\csname#1\endcsname{#2}$ & %
  \texttt{\bs#1\string{#2\string}}}%
%    \end{macrocode}
%
% \DescribeMacro{\demowidth}
% ʸĹ򼨤ˤ|\demowidth|Ȥޤ
% lshortβѤǤĹξνɲä
% ɤ⤷ޤ
%    \begin{macrocode}
\newcommand{\demowidth}[1]{%
   \rule{0.3pt}{1.3ex}\rule{#1}{0.3pt}\rule{0.3pt}{1.3ex}}
%    \end{macrocode}
% ɤ|hoge|󥿤ȤƤޤȤ͡
% ȤǤ|hoge|󥿤ѤƤޤ
%    \begin{macrocode}
\newcounter{hoge}
\newcommand{\bool}{֡}%?
%    \end{macrocode}
%
% \begin{environment}{Prob}
% ׷δĶǤ\textsf{theorem}ѥåȤä
% Ƥޤ
%    \begin{macrocode}
{\theoremstyle{plain}
   \theorembodyfont{\normalfont\rmfamily}
   \theoremheaderfont{\normalfont\bfseries}
   \newtheorem{Prob}{{\manfnt \char'170}}[chapter]}
%    \end{macrocode}
% \end{environment}
%
% \begin{environment}{Exe}
% ׷δĶǤ
%    \begin{macrocode}
{\theoremstyle{plain}
   \theorembodyfont{\normalfont\rmfamily}
   \theoremheaderfont{\normalfont\bfseries}
   \newtheorem{Exe}[Prob]{$\triangleright$}}
%    \end{macrocode}
% \end{environment}
%
% \DescribeMacro{\ifusehyperref}
% \textsf{hyperref}ȤäƤˤPDFʸPDF
% ꤬ɬפˤʤޤΤǡ|\ifusehyperref|ȽǤƤޤ
%    \begin{macrocode}
\ifusehyperref
	\usepackage[dvipdfm,bookmarks=true,hyperindex=true%
	bookmarkstype=toc,bookmarksnumbered=false,%
	bookmarksopen=true,colorlinks=true,%
	linkcolor=blue,citecolor=blue,filecolor=blue,%
	menucolor=magenta,pagecolor=blue,urlcolor=blue,%
        plainpages=false%
	]{hyperref}
	\special{pdf:docinfo <<
	/Author   ( Thor Watanabe )
	/Title    ( How to Use LaTeX2e )
	/Subject  ( For LaTeX2e Begginers )
	/Creator  ( pLaTeX2e with hyperref and dvipdfmx )
	/Keywords ( TeX, LaTeX, LaTeX2e, pTeX, pLaTeX, pLaTeX2e)
	>>}
\AtBeginDocument{%
  \def\theHProb{\theHchapter.\arabic{Prob}}%
  \def\theHExe{\theHchapter.\arabic{Prob}}%
  \def\theHItem{\theHchapter.\arabic{Item}}%
  \def\theHenumi{\theHchapter.\arabic{enumi}}%
}
\else
   \ifusehtml
      \usepackage[jp,html,3,fonts+,fn-in,png,imgdir:images/,%
         pic-m,pic-eqnarray,pic-align]{tex4ht}%
      \usepackage[tex4ht]{hyperref}
      \def\ruby#1#2{#1(#2)}
      \def\Ruby#1#2{#1(#2)}
      \def\JBibTeX{J\BibTeX}
      \def\pTeX{p\TeX}
      \def\pLaTeX{p\LaTeX}
      \def\pLaTeXe{p\LaTeXe}
   \fi\fi
\newcommand{\RED}[1]{\ifusehyperref\textcolor{red}{#1}\else#1\fi}
\newcommand{\BLUE}[1]{\ifusehyperref\textcolor{blue}{#1}\else#1\fi}
\DeclareRobustCommand{\funnist}{{FUNNIST}}
\ifusehyperref
   \def\funnist{\textcolor{red}{FUN}\textcolor{blue}{NIST}}
\fi
\ifusehtml
   \def\funnist{\textcolor{red}{FUN}\textcolor{blue}{NIST}}
\fi
\newcommand{\HEXCODE}[1]{0x#1}%${}_{16}$}
\newcommand{\DECCODE}[1]{#1}%${}_{10}$}
\newcommand{\OCTCODE}[1]{\str'#1}%${}_{8}$}
\newcommand{\BINCODE}[1]{#1}%${}_{2}$} 
\newcommand{\kasane}[2]{{\ooalign{#1\crcr\hss#2\hss}}}
%    \end{macrocode}
%
% \DescribeMacro{\dos}
% üɽٹʤɤ򼨤|\dos|̿Ȥޤ
% طʤʸˤʤޤΤǡޤǥץץȤ
% 褦ʥˤʤޤ
% \DescribeMacro{\dosh}
% |\dosh|ȤʸäѤΥˤʤޤʬ
% ŬԤ򤷤ޤ
%    \begin{macrocode}
\newcommand{\dos}[1]{%
   \colorbox{black}{\color{white}{%
   \small\normalfont\ttfamily #1\hfil}}}
\newcommand{\dosh}[1]{%
   \noindent\colorbox{black}{%
   \hbox to \ftextwidth{\color{white}{%
   \small\normalfont\ttfamily #1\hfil}}}}
%    \end{macrocode}

% \DescribeMacro{\IOmargin}
% \DescribeMacro{\IOlabel}
% ʸϤ߽ФǤϰ̤äѤޤǤʤƤ롥
% ΤȤڡڡǥޡѹ롥
% ˤ|\IOmargin||\IOlabel|碌ƻȤ褦ˤ
% ǽǤʸӽФǤľ|\IOmargin|̿
% Ǥľ|\IOlabel|񤭤ޤ餫Ǥ|\makebox|
% ̿ʤɤ0pt˸ɬפˤʤޤ\par
% ϤФ̤äѤɽ뤿|InOut|Ķޤ
% lshort򾯤ѹǤ\textsf{fancybox}
% ޥȤФ⤦ñˤʤ롩
%    \begin{macrocode}
\newlength{\IOm}
\setlength{\IOm}{\textwidth}
\addtolength{\IOm}{-\fullwidth}
\newwrite\example@out
\newcounter{IOcnt}
\setcounter{IOcnt}{1}
\newcommand{\IOmargin}{%
  \stepcounter{IOcnt}%
  \expandafter\ifx\csname r@exa:\theIOcnt\endcsname\relax\else
    \ifusehyperref
      \ifodd\HyPsd@pageref{exa:\theIOcnt}\hspace*{0pt}%
         \else\hspace*{\IOm}\fi
    \else
      \ifodd\pageref{exa:\theIOcnt}\hspace*{0pt}%
         \else\hspace*{\IOm}\fi\fi\fi}
\newcommand{\IOlabel}{\label{exa:\theIOcnt}}
\newenvironment{InOut}%
   {\begingroup%
      \@bsphack%
       \immediate\openout \example@out \jobname.exa%
       \let\do\@makeother\dospecials\catcode`\^^M\active%
       \def\verbatim@processline{%
          \immediate\write\example@out{\the\verbatim@line}}%
          \verbatim@start}%
   {\immediate\closeout\example@out\@esphack\endgroup%
   \stepcounter{IOcnt}% 
   \setlength{\parindent}{0pt}%
   \par\addvspace{3.0ex plus 0.8ex minus 0.5ex}\vskip-\parskip%
\expandafter\ifx\csname r@exa:\theIOcnt\endcsname\relax\else%
   \ifusehyperref%
     \ifodd\HyPsd@pageref{exa:\theIOcnt}\hspace*{0pt}%
     \else\hspace*{\IOm}\fi%
   \else\ifodd\pageref{exa:\theIOcnt}\hspace*{0pt}%
     \else\hspace*{\IOm}\fi%
   \fi\fi%
   \makebox[0pt][l]{%
   {\begin{minipage}[c]{.47\fullwidth}%
      \small\verbatiminput{\jobname.exa}%
   \end{minipage}}%
   \hspace{0.05\fullwidth}%
   {\begin{minipage}{.47\fullwidth}%
      \begin{trivlist}\item\small\input{\jobname.exa}%
      \end{trivlist}%
   \end{minipage}}%
   }\label{exa:\theIOcnt}%
   \par\addvspace{3.0ex plus 0.8ex minus 0.5ex}\vskip-\parskip}%
%    \end{macrocode}
%
% \DescribeMacro{LRArrow}
% ꤫ΥޥǤȤäƤޤ
%    \begin{macrocode}
%\newcount\al
%\newcount\posX
%\newcount\posY
%\def\LRArrow(#1,#2)#3[#4]{%
%   \@tempcnta=#1
%   \@tempcntb=#2
%   \al=#3
%   \divide\al 2
%   \advance\@tempcnta \al
%   \put(\@tempcnta,\@tempcntb){\vector(+1,0){\al}}%
%   \put(\@tempcnta,\@tempcntb){\vector(-1,0){\al}}%
%   \put(\@tempcnta,\@tempcntb){\makebox(0,-3)[t]{\texttt{#4}}}%
%}
%\def\UpArrow(#1,#2)#3[#4]{%
%   \@tempcnta=#1
%   \@tempcntb=#2
%   \al=#3
%   \divide\al 2
%   \advance\@tempcntb \al
%   \put(\@tempcnta,\@tempcntb){\vector(0,+1){\al}}%
%   \put(\@tempcnta,\@tempcntb){\vector(0,-1){\al}}%
%   \put(\@tempcnta,\@tempcntb){\mbox{\space\texttt{#4}}}%
%}
%    \end{macrocode}
% \DescribeMacro{\image}
% ʲΥޥϤۤȤɻȤƤʤϤ
% ץޥκԤʤɤδ̿Ҳ𤹤ˤ
% |\authorpict|̿Ȥޤ
% \begin{quote}
%    |\authorpict||{bb=x0 y0 x1 y1}||{ե̾}||{̾}| 
% \end{quote}
% ɸǤ˵˽ϤޤJPEGǤ
% θǼޤޤΤǡγĥҤϾάޤ
%    \begin{macrocode}
\newcommand{\image}[4][]{%
\begin{figure}[htbp]
 \begin{center}
   \includegraphics[#1]{images/#2}
   \caption{#3}\label{fig:#4}
 \end{center}
\end{figure}}
\newenvironment{ftable}[1][htbp]%
  {\begin{table}[#1]
   \begin{Sbox}\begin{minipage}{%
  (\linewidth-2\fboxrule-2\fboxsep)}}%
  {\end{minipage}\end{Sbox}\fbox{\TheSbox}\end{table}} 
\newcommand{\cc}[2]{{#1} & \color{#1}{} &{#2}}
\newcommand{\kutiref}[1]{~\ref{kuti:#1}}
\newcommand{\kuti}[1]{\refstepcounter{enumi}%
  \theenumi~#1}
\newcommand{\authorpict}[3]{%
   \marginpar{%
     \ifusedvipdfm%
      \includegraphics[#1,width=\linewidth]{images/#2.jpg}%
     \else
      \includegraphics[#1,width=\linewidth]{images/#2.eps}%
     \fi
   {\small\\\hfil#3\hfil\\\hfil(HP)\hfil\par}}}%
\newenvironment{column}{\begin{small}\paragraph*{}}{\end{small}}
\newcommand{\okumura}{\url{http://oku.edu.mie-u.ac.jp/~okumura/}}
\newcommand{\joukuten}{}
\newcommand{\joutouten}{}
%    \end{macrocode}
%
%    \begin{macrocode}
%</joumac>
\endinput
%    \end{macrocode}
%
% \PrintChanges
% \PrintIndex
% \Finale
