発言者: munepi
発言日: 2006 06/02 22:32
発言元: 218.110.212.68
tDBさん,みなさん,こんにちは.munepiです.
暇つぶしに実験してみました.
ptex-3.1.10-w32.tar.gzだけは,角藤さんの近畿大のftpからをとってきました.
(6/2では,まだ他のftpサイトには出回っていないので.明日以降なら,出回るようです.)
吉永さん(しっぽ愛好家さん)のレス
http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/42774.html
を片手に,tDBさんがNo.4618でうまくいかないと言われているソースでやってみました.
以下のソースだとうまくいきました.
-----
\makeatletter
\def\reDeclareMathAlphabet#1#2#3{%
\AtBeginDocument{%
\edef#1{\noexpand\protect\expandafter\noexpand
\csname\expandafter\@gobble\string#1\space\space\endcsname}%
\long\expandafter\def
\csname\expandafter\@gobble\string#1\space\space\endcsname##1{%
\ifmmode
\ifx\math@bgroup\@empty % 2.09 compatibility
#2\relax#3\relax##1\relax
\else % native mode
\ifx\math@bgroup\relax % oldstyle
#2\relax\@fontswitch\relax{#3}##1\relax
\else
#2{#3{##1}}%
\fi
\fi
\else
#2{##1}%
\fi}}}
\makeatother
\documentclass{jarticle}
\makeatletter
\begingroup
\let\protect\noexpand
\edef\@tempa{%
\noexpand\reDeclareMathAlphabet\noexpand\mathrm\mathrm\mathmc
\noexpand\reDeclareMathAlphabet\noexpand\mathbf\mathbf\mathgt}
\expandafter\endgroup\@tempa
\makeatother
\begin{document}
$\mathrm{AB}$
\end{document}
-----
どうやら,robustなコマンドに変わっているみたいですね.
jarticle.clsを改変すれば,こんなごちゃごちゃしたこと書かなくてもすみそうです.
あとでやってみます.
▼関連発言
│
└◆4618:LaTeX2e <2005/12/01> [tDB] 05/01 17:42
├◆4620:Re:LaTeX2e <2005/12/01> [tDB] 05/02 10:48
│└◆4631:Re[2]:LaTeX2e <2005/12/01> 独白 [tDB] 05/03 20:14
│ └◆4634:--- [---] 05/04 00:17
│ └◆4642:--- [---] 05/05 12:27
├◆4657:Re:LaTeX2e <2005/12/01> [tDB] 05/08 22:46
└◆4740:Re:LaTeX2e <2005/12/01> [tDB] 06/02 17:48
├◆4747:Re[2]:LaTeX2e <2005/12/01> [munepi] 06/02 22:32
│├◆4748:Re[3]:LaTeX2e <2005/12/01> [tDB] 06/02 22:48
││└◆4750:Re[4]:LaTeX2e <2005/12/01> [munepi] 06/02 23:31
││ └◆4753:Re[5]:LaTeX2e <2005/12/01> [munepi] 06/03 10:58
││ └◆4755:Re[6]:LaTeX2e <2005/12/01> [tDB] 06/03 11:05<-last
│└◆4749:--- [---] 06/02 22:54
└◆4752:Re[2]:LaTeX2e <2005/12/01>(解決か?) [tDB] 06/03 10:55