Re: [問題] algorithmic package
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章