% ^^A -*- japanese-latex -*-
% \CheckSum{142}
% \iffalse
%
%  $B%b%j%5%o4pK\(B5$B=qBN$r;H$&$?$a$N%Q%C%1!<%8(B
%
%  $B1|B<@2I'(B <okumura@matsusaka-u.ac.jp>
%
%  [2002-12-19] $B$$$m$$$m$J$b$N$K<}O?$7$F$$$?$@$/:]$K%i%$%;%s%9$rL@3N$K$9$k(B
%  $BI,MW$,@8$8$F$-$^$7$?!#%"%9%-!<$N$b$N$,:G6a$O(Bmodified BSD$B%i%$%;%s%9$K$J$C(B
%  $B$F$$$^$9$N$G!$;d$N$b$N$b$=$l$K=`$8$F(Bmodified BSD$B$H$9$k$3$H$K$7$^$9!#(B
%
%<morisawa>\NeedsTeXFormat{pLaTeX2e}
%<morisawa>\ProvidesPackage{morisawa}[2003/02/09 okumura]
%<*driver>
\documentclass{jsarticle}
\usepackage{doc}
\usepackage{morisawa}
\addtolength{\textwidth}{-1in}
\addtolength{\evensidemargin}{1in}
\addtolength{\oddsidemargin}{1in}
\addtolength{\marginparwidth}{1in}
\setlength\marginparsep{5pt}
\setlength\marginparpush{0pt}
% \OnlyDescription
\DisableCrossrefs
\setcounter{StandardModuleDepth}{1}
\GetFileInfo{morisawa.sty}
\begin{document}
  \DocInput{morisawa.dtx}
\end{document}
%</driver>
%
% \fi
%
% \title{$B%b%j%5%o4pK\(B5$B=qBN%Q%C%1!<%8(B}
% \author{$B1|B<@2I'(B}
% \date{\filedate}
% \maketitle
%
% \MakeShortVerb{\|}
%
% \section{$B$O$8$a$K(B}
%
% $B$3$l$O%b%j%5%o4pK\(B5$B=qBN$r;H$&$?$a$N%Q%C%1!<%8$G$9!#(B
% $B$4<+M3$K=$@5$7$F$*;H$$$/$@$5$$!#(B
%
% $B%b%j%5%o4pK\(B5$B=qBN$H$O(B
% \begin{itemize}
% \item $B%j%e%&%_%s(BL$B!J(BRyumin-Light$B!K!$(B
% \item $BCf%4%7%C%/(BBBB$B!J(BGothicBBB-Medium$B!K(B
% \item $BB@%_%s!J(BFutoMinA101-Bold$B!K(B
% \item $BB@%4!J(BFutoGoB101-Bold$B!K(B
% \item $B$8$e$s!J(BJun101-Light$B!K(B
% \end{itemize}
% $B$N$3$H$G$9!#(B
%
% $B$3$l$i$r;H$&$K$O!$%"%9%-!<$,G[I[$7$F$$$k(B |morisawa.tar.gz|
% $B$,I,MW$G$9!#$^$?!$(Bdvips(k)$B$N(Bmap$B%U%!%$%k$K<!$N$h$&$K=q$$$F$*$-$^$9!#(B
%
%\begin{verbatim}
% rml             Ryumin-Light-H
% rmlv            Ryumin-Light-V
% gbm             GothicBBB-Medium-H
% gbmv            GothicBBB-Medium-V
% ryumin-l        Ryumin-Light-H
% ryumin-l-v      Ryumin-Light-V
% gtbbb-m         GothicBBB-Medium-H
% gtbbb-m-v       GothicBBB-Medium-V
% futomin-b       FutoMinA101-Bold-H
% futomin-b-v     FutoMinA101-Bold-V
% futogo-b        FutoGoB101-Bold-H
% futogo-b-v      FutoGoB101-Bold-V
% jun101-l        Jun101-Light-H
% jun101-l-v      Jun101-Light-V
%\end{verbatim}
%
% $B$b$H$b$H(BPS$B%W%j%s%?$K<BAu$5$l$F$$$k>l9g0J30$O!$(B
% $B%b%j%5%o(B5$B=qBN$rGc$$B7$($F$b$7$+$?$,$"$j$^$;$s$,!$(B
% $B$3$l$i$NL>A0$OI8=`E*$J$N$G!$(B
% $B<B:]$N=PNO;~$K$OB>$N%U%)%s%H$GCV$-49$($k>l9g$G$b!$(B
% $B$3$l$i$NL>A0$r2>$K;H$C$F$*$/$HJXMx$G$9!#(B
%
% $B$?$H$($P!X!N2~D{HG!O(B\LaTeXe $BH~J8=q:n@.F~Lg!Y!J(B2000$BG/!K(B
% $B$G$O%R%i%.%N$KCV$-49$($k$?$a$K(B dvips(k)$B$N(Bmap$B%U%!%$%k$K(B
% $B<!$N$h$&$K=q$$$F$*$-$^$7$?!#(B
%
%\begin{verbatim}
% rml             Ryumin-Light-H
% rmlv            Ryumin-Light-V
% gbm             GothicBBB-Medium-H
% gbmv            GothicBBB-Medium-V
% ryumin-l        HiraginoMin-W3-H
% ryumin-l-v      HiraginoMin-W3-V
% gtbbb-m         HiraginoKaku-W5-H
% gtbbb-m-v       HiraginoKaku-W5-V
% futomin-b       HiraginoMin-W3-H
% futomin-b-v     HiraginoMin-W3-H
% futogo-b        HiraginoKaku-W5-H
% futogo-b-v      HiraginoKaku-W5-V
% jun101-l        HiraginoKaku-W2-H
% jun101-l-v      HiraginoKaku-W2-V
%\end{verbatim}
%
% \section{$B4JC1$J;H$$J}(B}
%
% |{\kanjifamily{rml}\selectfont $B%j%e%&%_%s(B}| $B"*(B {\kanjifamily{rml}\selectfont $B%j%e%&%_%s(B}
%
% |{\kanjifamily{gbm}\selectfont $BCf%4%7%C%/(B}| $B"*(B {\kanjifamily{gbm}\selectfont $BCf%4%7%C%/(B}
%
% |{\kanjifamily{fma}\selectfont $BB@%_%s(B}| $B"*(B {\kanjifamily{fma}\selectfont $BB@%_%s(B}
%
% |{\kanjifamily{gbm}\fontseries{bx}\selectfont $BB@%4(B}| $B"*(B {\kanjifamily{gbm}\fontseries{bx}\selectfont $BB@%4(B}
%
% |{\kanjifamily{jun}\selectfont $B$8$e$s(B}| $B"*(B {\kanjifamily{jun}\selectfont $B$8$e$s(B}
%
% |\textgt{\bfseries $BB@%4(B}| $B$H=q$/$H(B\textgt{\bfseries $BB@%4(B}$B$K$J$j$^$9!#(B
%
% |\textbf{\gtfamily $BB@%4(B}| $B$H=q$$$F$b(B\textbf{\gtfamily $BB@%4(B}$B$K$J$j$^$9!#(B
%
% |\textmg{$B$8$e$s(B}| $B$^$?$O(B |{\mgfamily $B$8$e$s(B}| $B$H=q$/$H(B\textmg{$B$8$e$s(B}$B$K$J$j$^$9!#(B
%
% |\texttt{$B$8$e$s(B}| $B$d(B |{\ttfamily $B$8$e$s(B}| $B$G$b(B\texttt{$B$8$e$s(B}$B$K$J$j$^$9!#(B
%
% $BK\J8$r(B{\kanjifamily{fma}\selectfont $BB@%_%s(B}$B$K$9$k$K$O(B |\renewcommand{\mcdefault}{fma}| $B$H$7$^$9!#(B
%
% \StopEventually{}
% 
% \section{$B%*%W%7%g%s$NDj5A(B}
% 
%    \begin{macrocode}
%<*morisawa>
\newif\if@fake \@fakefalse
\DeclareOption{fake}{\@faketrue}
\ProcessOptions\relax
%    \end{macrocode}
% 
% \section{$B3F%U%)%s%H$NDj5A(B}
%
% \texttt{fd} $B%U%!%$%k$r;HMQ$9$k$N$O$d$a$^$7$?!#(B
%
% $BL@D+BN$G$9!#%\!<%k%I$rB@%_%s$K$9$k$K$O(B
%\begin{verbatim}
% \DeclareFontShape{JY1}{rml}{bx}{n}{<-> s * [0.961] FutoMinA101-Bold-J}{}
%\end{verbatim}
% $B$H$9$l$P$$$$$N$G$9$,!$$3$3$G$O8_49@-$N$?$aL@D+$N%\!<%k%I$rCf%4%7%C%/$K$7$^$9!#(B
%
%    \begin{macrocode}
\DeclareKanjiFamily{JY1}{rml}{}
\DeclareKanjiFamily{JT1}{rml}{}
\if@fake
  \DeclareFontShape{JY1}{rml}{m}{n}{<-> s * [0.961] jis}{}
  \DeclareFontShape{JY1}{rml}{bx}{n}{<-> s * [0.961] jisg}{}
  \DeclareFontShape{JT1}{rml}{m}{n}{<-> s * [0.961] tmin10}{}
  \DeclareFontShape{JT1}{rml}{bx}{n}{<-> s * [0.961] tgoth10}{}
\else
  \DeclareFontShape{JY1}{rml}{m}{n}{<-> s * [0.961] Ryumin-Light-J}{}
  \DeclareFontShape{JY1}{rml}{bx}{n}{<-> s * [0.961] GothicBBB-Medium-J}{}
  \DeclareFontShape{JT1}{rml}{m}{n}{<-> s * [0.961] Ryumin-Light-V}{}
  \DeclareFontShape{JT1}{rml}{bx}{n}{<-> s * [0.961] GothicBBB-Medium-V}{}
\fi
%    \end{macrocode}
%
% $BB@L@D+BN$G$9!#(B
%
%    \begin{macrocode}
\DeclareKanjiFamily{JY1}{fma}{}
\DeclareKanjiFamily{JT1}{fma}{}
\if@fake
  \DeclareFontShape{JY1}{fma}{m}{n}{<-> s * [0.961] jis}{}
  \DeclareFontShape{JY1}{fma}{bx}{n}{<-> s * [0.961] jisg}{}
  \DeclareFontShape{JT1}{fma}{m}{n}{<-> s * [0.961] tmin10}{}
  \DeclareFontShape{JT1}{fma}{bx}{n}{<-> s * [0.961] tgoth10}{}
\else
  \DeclareFontShape{JY1}{fma}{m}{n}{<-> s * [0.961] FutoMinA101-Bold-J}{}
  \DeclareFontShape{JY1}{fma}{bx}{n}{<-> s * [0.961] GothicBBB-Medium-J}{}
  \DeclareFontShape{JT1}{fma}{m}{n}{<-> s * [0.961] FutoMinA101-Bold-V}{}
  \DeclareFontShape{JT1}{fma}{bx}{n}{<-> s * [0.961] FutoGoB101-Bold-V}{}
\fi
%    \end{macrocode}
%
% $B%4%7%C%/BN$G$9!#%\!<%k%IBN$K$9$k$HB@%4$K$J$j$^$9!#(B
%
%    \begin{macrocode}
\DeclareKanjiFamily{JY1}{gbm}{}
\DeclareKanjiFamily{JT1}{gbm}{}
\if@fake
  \DeclareFontShape{JY1}{gbm}{m}{n}{<-> s * [0.961] jisg}{}
  \DeclareFontShape{JY1}{gbm}{bx}{n}{<-> s * [0.961] jisg}{}
  \DeclareFontShape{JT1}{gbm}{m}{n}{<-> s * [0.961] tgoth10}{}
  \DeclareFontShape{JT1}{gbm}{bx}{n}{<-> s * [0.961] tgoth10}{}
\else
  \DeclareFontShape{JY1}{gbm}{m}{n}{<-> s * [0.961] GothicBBB-Medium-J}{}
  \DeclareFontShape{JY1}{gbm}{bx}{n}{<-> s * [0.961] FutoGoB101-Bold-J}{}
  \DeclareFontShape{JT1}{gbm}{m}{n}{<-> s * [0.961] GothicBBB-Medium-V}{}
  \DeclareFontShape{JT1}{gbm}{bx}{n}{<-> s * [0.961] FutoGoB101-Bold-V}{}
\fi
%    \end{macrocode}
%
% $B4]%4%7%C%/$N!V$8$e$s(B101$B!W$G$9!#(B
%
%    \begin{macrocode}
\DeclareKanjiFamily{JY1}{jun}{}
\DeclareKanjiFamily{JT1}{jun}{}
\if@fake
  \DeclareFontShape{JY1}{jun}{m}{n}{<-> s * [0.961] jisg}{}
  \DeclareFontShape{JY1}{jun}{bx}{n}{<->ssub*jun/m/n}{}
  \DeclareFontShape{JT1}{jun}{m}{n}{<-> s * [0.961] tgoth10}{}
  \DeclareFontShape{JT1}{jun}{bx}{n}{<->ssub*jun/m/n}{}
\else
  \DeclareFontShape{JY1}{jun}{m}{n}{<-> s * [0.961] Jun101-Light-J}{}
  \DeclareFontShape{JY1}{jun}{bx}{n}{<->ssub*jun/m/n}{}
  \DeclareFontShape{JT1}{jun}{m}{n}{<-> s * [0.961] Jun101-Light-V}{}
  \DeclareFontShape{JT1}{jun}{bx}{n}{<->ssub*jun/m/n}{}
\fi
%    \end{macrocode}
%
% \section{$B%U%)%s%H4XO"%3%^%s%I(B}
%
% $BI8=`$NL@D+$r(B \texttt{rml}$B!$I8=`$N%4%7%C%/$r(B \texttt{gbm} $B$H$7$^$9!#(B
% $B2$J8$K%5%s%;%j%UBN$rA*$V$HOBJ8$O%4%7%C%/BN$K$J$k$h$&$K$7$^$9!#(B
%
%    \begin{macrocode}
\renewcommand{\mcdefault}{rml}
\renewcommand{\gtdefault}{gbm}
% \DeclareRobustCommand\gtfamily{%
%   \not@math@alphabet\gtfamily\textgt
%   \romanfamily\sfdefault
%   \kanjifamily\gtdefault
%   \selectfont}
\DeclareRobustCommand\sffamily{%
  \not@math@alphabet\sffamily\mathsf
  \romanfamily\sfdefault
  \kanjifamily\gtdefault
  \selectfont}
%    \end{macrocode}
%
% \begin{macro}{\mgfamily}
% \begin{macro}{\mgdefault}
% \begin{macro}{\textmg}
%
% $B4]%4%7%C%/4XO"$N%3%^%s%I(B |\mgfamily|$B!$(B|\mgdefault|$B!$(B|\textmg|
% $B$r?7@_$7$^$9!#I8=`$N4]%4%7%C%/$r(B \texttt{jun} $B$H$7$^$9!#(B
%
% $B2$J8$K%?%$%W%i%$%?BN$rA*$V$HOBJ8$O4]%4%7%C%/BN$K$J$k$h$&$K$7$F$$$^$7$?$,!$(B
% $BCf%4%7%C%/BN$N$[$&$,$$$$$H$$$&$40U8+$G!$85$KLa$7$^$7$?!#(B
% $B$$$d!$$=$l$OC1$K(Bmap$B%U%!%$%k$NLdBj$@!$$H$$$&$N$G$^$?4]%4%7%C%/BN$KLa$j$^$7$?!#(B|^^;|
%
%    \begin{macrocode}
\newcommand{\mgdefault}{jun}
\DeclareRobustCommand\mgfamily{%
  \not@math@alphabet\mgfamily\textmg
% \romanfamily\ttdefault
  \kanjifamily\mgdefault
  \selectfont}
\DeclareRobustCommand\ttfamily{%
  \not@math@alphabet\ttfamily\mathtt
  \romanfamily\ttdefault
  \kanjifamily\mgdefault
% \kanjifamily\gtdefault
  \selectfont}
% \DeclareTextFontCommand{\textmg}{\mgfamily}
\def\textmg#1{\relax\ifmmode\hbox\fi{\mgfamily #1}}
%    \end{macrocode}
%
% \end{macro}
% \end{macro}
% \end{macro}
%
% $B4p=`$H$J$kD9$5$r:F@_Dj$r$7$^$9!#(B
% $B$3$l$r$7$F$*$+$J$$$H!$I8=`%I%-%e%a%s%H%/%i%9$HAH$_9g$o$;$k$H(B
% $BCJMn$N;z2<$2$,B7$o$J$/$J$j$^$9!#(B
%
%    \begin{macrocode}
\normalfont\normalsize
\setbox0\hbox{\char\euc"A1A1}%
\setlength\Cht{\ht0}
\setlength\Cdp{\dp0}
\setlength\Cwd{\wd0}
\setlength\Cvs{\baselineskip}
\setlength\Chs{\wd0}
\setlength\parindent{1\Cwd}
%    \end{macrocode}
%
% $B0J>e$G$9!#(B
%
%    \begin{macrocode}
%</morisawa>
\endinput
%    \end{macrocode}
%
% ^^A \endinput $B$N8e$K(B \CharacterTable $B$r=q$$$F$*$1$P!$;R%U%!%$%k$K$O(B
% ^^A $B=PNO$5$l$^$;$s!#%A%'%C%/$O(B *.dtx $B$r=hM}$7$?$H$-$K$7$F$/$l$^$9!#(B
%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%%
% \Finale
