初めて質問させていただきます。sclmath.sty を用いて、共通テスト(センター試験)のような解答欄を作成したいのですが、作成できずに困っております。
\documentclass[a4, 11pt]{jarticle}
\usepackage{amsmath,amssymb,ascmac,schlmath,emathPp,epic,eepic}
\usepackage[margin=10mm]{geometry}
\usepackage{layout}
\newcounter{kadainum}
\setcounter{kadainum}{0}
\newcommand{\kadai}{%
\refstepcounter{kadainum}%
\thekadainum
}
\newcounter{toi} \newcounter{subtoi}[toi]
\newcounter{subsubtoi}[subtoi]
\newcounter{test}
\setcounter{test}{0}
\newcommand{\test}[1][]{\refstepcounter{test}}
\def\toi{\refstepcounter{toi}
\makebox[2zw][r]{\fbox{\Large\arabic{toi}}\hspace{1zw}}\hangindent=1zw}
\def\subtoi{\refstepcounter{subtoi}
\def\subsubtoi{\refstepcounter{subsubtoi}}
%\def\test{\refstepcounter{test}}
\pagestyle{empty}
\def\LabelNo{\KANA\theLocalNumber}
\makebox[3.4zw][r]{(\arabic{subtoi})\hspace{1zw}}\hangindent=2.4zw}
\def\arraystretch{2.05}
\pagestyle{empty}
\textwidth=18cm
\textheight=25cm
\oddsidemargin=-1.2cm
\topmargin=-1.2cm
\everymath{\displaystyle}
\begin{document}
\lineskiplimit=2.0ex
\normallineskiplimit=\lineskiplimit
\lineskip=\lineskiplimit
\normallineskip=\lineskiplimit
{\LARGE 日々の演習 No.\thepage}
\hskip2zw\\
\hfill
\underline{\hskip1zw 3年 \hskip2zw 6組 \hskip4zw 番 \hskip1zw 氏名 \hskip30ex}
\ResetNo
\Toi $a = \frac{1 + \sqrt{3}}{1 + \sqrt{2}}$, $b = \frac{1 - \sqrt{3}}{1 - \sqrt{2}}$ とおく。
\SubToi $ab=\NO$
\end{document}
コンパイル結果
This is ptex2pdf[.lua] version 20200520.0.
Processing rnsyu.tex
This is e-upTeX, Version 3.141592653-p4.1.1-u1.30-230214-2.6 (utf8.sjis) (TeX Live 2024) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./rnsyu.tex
pLaTeX2e <2023-02-14>+1, based on
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-03-14>
(c:/texlive/2024/texmf-dist/tex/platex/base/jarticle.cls
Document Class: jarticle 2020/09/30 v1.8f Standard pLaTeX class
(c:/texlive/2024/texmf-dist/tex/platex/base/jsize11.clo))
(c:/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2024/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2024/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2024/texmf-dist/tex/latex/ascmac/ascmac.sty
(c:/texlive/2024/texmf-dist/tex/latex/ascmac/tascmac.sty))
(c:/texlive/2024/texmf-dist/tex/latex/schlmath/Schlmath.sty
UTF-8/高等学校数学用 pLaTeX2e 用マクロ集 Ver4.09.05 2018.01.13 金沢光則
) (c:/texlive/texmf-local/tex/platex/misc/emath/emathPp.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/emathPh.sty
(c:/texlive/2024/texmf-dist/tex/latex/eepic/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
) (c:/texlive/2024/texmf-dist/tex/latex/eepic/eepic.sty
Extension to Epic and LaTeX. Version 1.1e - Released Dec 21, 1999
) (c:/texlive/2024/texmf-dist/tex/latex/eclarith/eclarith.sty
eclarith.sty 1.1 --- July 1, 1992
) (c:/texlive/texmf-local/tex/platex/misc/emath/emath.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/emath2e.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/emathE.sty
(c:/texlive/2024/texmf-dist/tex/latex/tools/enumerate.sty)
(c:/texlive/texmf-local/tex/platex/misc/emath/emathEc.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/emathC.sty
(c:/texlive/2024/texmf-dist/tex/latex/tools/calc.sty)
(c:/texlive/2024/texmf-dist/tex/latex/base/ifthen.sty))
(c:/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty))
(c:/texlive/texmf-local/tex/platex/misc/emath/jquote.sty)
(c:/texlive/texmf-local/tex/platex/misc/emath/emathK.sty))))
(c:/texlive/2024/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2024/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2024/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2024/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2024/texmf-dist/tex/latex/graphics-def/dvips.def)))
(c:/texlive/2024/texmf-dist/tex/latex/graphics/color.sty
(c:/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(c:/texlive/2024/texmf-dist/tex/latex/graphics/dvipsnam.def)
(c:/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx))))
(c:/texlive/2024/texmf-dist/tex/latex/geometry/geometry.sty
(c:/texlive/2024/texmf-dist/tex/generic/iftex/ifvtex.sty
(c:/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty)))
(c:/texlive/2024/texmf-dist/tex/latex/tools/layout.sty)
(c:/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
LaTeX Warning: Unused global option(s):
[a4].
(./rnsyu.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(c:/texlive/2024/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2024/texmf-dist/tex/latex/amsfonts/umsb.fd)
! Missing number, treated as zero.
<to be read again>
=
l.49 \SubToi $ab=\NO$
?
様々なページを当たってみましたが、解決策がわかりません。どなたかご教示願えないでしょうか。