\makeatletter
\def\@default{default}
\def\jsbook{jsbook}
\ifx\class\@undefined
 \def\class{jsarticle}
\fi
\ifx\option\@undefined
 \def\option{default}
\fi
\ifx\option\@default
 \documentclass{\class}
\else
 \documentclass[\option]{\class}
\fi
\makeatother

\DeclareFontFamily{JY1}{min}{}
\DeclareFontFamily{JY1}{jis}{}
\DeclareFontShape{JY1}{min}{m}{n}{<->s*[0.961]min10}{}
\DeclareFontShape{JY1}{jis}{m}{n}{<->s*[0.961]jis}{}
\DeclareRobustCommand\minten{\kanjifamily{min}\selectfont}
\DeclareRobustCommand\jis{\kanjifamily{jis}\selectfont}

\begin{document}
option: \option
\ifx\class\jsbook
\chapter{$B?7%I%-%e%a%s%H%/%i%9(B}
\fi
\section{$BY92;!"6gFIE@$J$I(B}
\xdef\testtext{%
$B%+%`%A%c%C%+!%(B
$B$A$g$C$H!"BT$C$F!#$-$C$H!$%7%g%C%/!%(B~~
$B!F2s!G(B $B!H2s!I(B }%
\begin{tabular}{rl}\hline
default & \testtext\\\hline

min10.tfm &
{\minten \testtext}\\\hline

jis.tfm &
{\jis \testtext}\\\hline

\end{tabular}

\section{$BJ8;z$N%5%$%:$J$I(B}
\xdef\testtext{%
\frame{$B!'(B}~~\frame{$B!H(B}\frame{$B2s(B}\frame{$B!'(B}\frame{$B2s(B}\frame{$B!I(B}~~$B!H2s!'2s!I(B}%

{\huge
\begin{tabular}{rl}
default & \testtext\\

min10.tfm &
{\minten \testtext}\\

jis.tfm &
{\jis \testtext}\\

\end{tabular}
}

\section{$B3g8LN`(B}
\subsection{JIS X 0208$B$K$"$k$b$N(B}
$B!F2s!G(B $B!H2s!I(B $B!J2s!K(B $B!L2s!M(B $B!N2s!O(B $B!P2s!Q(B $B!R2s!S(B $B!T2s!U(B $B!V2s!W(B $B!X2s!Y(B $B!Z2s![(B

{\gt
$B!F2s!G(B $B!H2s!I(B $B!J2s!K(B $B!L2s!M(B $B!N2s!O(B $B!P2s!Q(B $B!R2s!S(B $B!T2s!U(B $B!V2s!W(B $B!X2s!Y(B $B!Z2s![(B
}
\end{document}
