algorithm2e.sty を日本語環境で使いたい

名前: vega
日時: 2004-07-07 08:19:50
IPアドレス: 163.221.38.*

はじめまして,vega と申します. Algorithm というパッケージを日本語環境で使おうと思い, % platex jtest.tex とコンパイルしたら,以下のようなエラーを出力しました. Runaway argument? {\renewcommand {\a@block }[2]{\a@group {####1}} \algocf@defaults@common \ETC. ! File ended while scanning use of \@argdef. jarticleでなく,articleにし, % latex test.tex とした場合は,問題なく通るのですが,日本語環境ではむずかしいのでしょうか? よろしく願いいたします. jtest.tex を以下に示します. \documentclass[a4j]{jarticle} \usepackage{algorithm2e} \begin{document} \begin{algorithm}[H] \SetLine \AlgData{this text} \AlgResult{how to write algorithm with \LaTeX2e } initialization\; \While{not at end of this document}{ read current\; \eIf{understand}{ go to next section\; current section becomes this one\; }{ go back to the beginning of current section\; } } \caption{How to write algorithms} \end{algorithm} \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)