- 429 名前:名無しさん@お腹いっぱい。 mailto:sage [2014/01/31(金) 21:30:25.23 ]
- >>424
うーん、このままでは section タイトル内に書くとエラーが出るね。 SIunits の定義するコマンドが fragile なので、\section 内で \let\minute\jsminute のように退避した定義を元に戻すときに \minute が SIunite のものに展開されてしまう。これを避けるには 次のようにする。jsclasses は関係ないので、namespaceは js ではなく pl とした。(pLaTeX の pl) \documentclass{jsarticle} \usepackage{namespc} \let\plminute\minute \let\minute\relax \namespace{pl}{\let\minute\plminute}{} \let\plhour\hour \let\hour\relax \namespace{pl}{\let\hour\plhour}{} \usepackage{SIunits} \let\siminute\minute \DeclareRobustCommand*\minute{\siminute} \let\sihour\hour \DeclareRobustCommand*\hour{\sihour} \begin{document} \tableofcontents \section{It took 3\hour\space and 3\minute.} It took 3\hour\space and 3\minute. \section{\usingnamespace{pl}% 現在 \protect\the\hour 時 \protect\the\minute 分です。} \begin{pl}現在 \the\hour 時 \the\minute 分です。\end{pl} \end{document} どんどんメンドクサくなっていくw もっと簡単な方法があれば教えてくれー
|

|