Re: newenvironment によるスペース

名前: 藤田
日時: 2010-01-08 21:30:25
IPアドレス: 61.210.125.*

>>54320 藤田@湘南情報数理化学研究所です. latex2htmlには詳しくないのですが,もともとの\newenvironment による定義のときに,\ignorespacesが終わり命令で外にでるように して置けばよいのではないでしょうか. このためには,次の3つの方法があります.名称をEqn,EQN, EQnと してありますが,どれかをeqn環境の定義とすればよいとおもいます. \documentclass{jarticle} \setlength{\parindent}{0zw} %%%%%%%%%% 本文 %%%%%%%%%% \begin{document} どれかをeqnの定義として採用する. (第1法) \expandafter\def\expandafter\Eqn\expandafter{\csname eqnarray*\endcsname} \expandafter\def\expandafter\endEqn\expandafter{\csname endeqnarray*\endcsname} \begin{Eqn} f(x) &=& x^2-x-6\\ &=& (x-3)(x+2) \end{Eqn} これはテストテストテストテストテストテストテストテストテストテスト テストテストテストテストテストテストテストテストテストテストテスト テストテストテストテスト (第2法) \expandafter\let\expandafter\EQN\expandafter=\csname eqnarray*\endcsname \expandafter\let\expandafter\endEQN\expandafter=\csname endeqnarray*\endcsname \begin{EQN} f(x) &=& x^2-x-6\\ &=& (x-3)(x+2) \end{EQN} これはテストテストテストテストテストテストテストテストテストテスト テストテストテストテストテストテストテストテストテストテストテスト テストテストテストテスト (第3法) \newenvironment{EQn}{\csname eqnarray*\endcsname}{\csname endeqnarray*\endcsname} \begin{EQn} f(x) &=& x^2-x-6\\ &=& (x-3)(x+2) \end{EQn} これはテストテストテストテストテストテストテストテストテストテスト テストテストテストテストテストテストテストテストテストテストテスト テストテストテストテスト \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)