作者eieio (好多目标)
看板LaTeX
标题Re: [问题] algorithmic package
时间Sun Feb 10 17:53:05 2008
※ 引述《scan33scan33 (亨利喵)》之铭言:
: ※ 引述《eieio (好多目标)》之铭言:
: 文件上有说唷!
: Because the mechanisms used to build the various algorithmic structures make
: it difficult to use the above mechanism for placing comments at the end of
: the first line of a construct, the commands \IF, \ELSIF, \ELSE, \WHILE, \FOR,
: \FORALL, \REPEAT and \LOOP all take an optional argument which will be treated
: as a comment to be placed at the end of the line on which they appear.
: 他说应该要变成这样 \IF{OOO} [XXX]
: []里面的是注解!
: 希望有帮上忙^^
问题解决了,非常感谢^^ 正确的用法是
\IF[yyy]{xxx}
\STATE zzz
\ENDIF
其中 yyy 是注解,出来会变
if xxx then // yyy
zzz
--
If I don't know I don't know, I think I know
If I don't know I know, I think I don't know
── R. D. Laing
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 75.142.222.87