I want to know how can I have the nice ▷
$\triangleright$
comment symbol of algorithmicx
in algorithm2e
?
[Tex/LaTex] How to have the algorithmicx comment symbol in algorithm2e
algorithm2ealgorithmicx
algorithm2ealgorithmicx
I want to know how can I have the nice ▷
$\triangleright$
comment symbol of algorithmicx
in algorithm2e
?
Best Answer
From the
algorithm2e
documentation (section 11.4 to define comments, p 35):Here's an example of the above:
If you wish to reformat the comment font, you can adjust
\CommentSty
. Inalgorithm2e
this is done via (for example)\SetCommentSty{itshape}
to obtain an\itshape
or italics comment.Here is a corresponding example showing the default comment style in
algorithmicx
, taken directly from thealgorithmicx
documentation: