1.Latex algorithmicx state语句跨行时对齐,作为一个整体的行,代码如下:
\State \parbox[t]{\dimexpr\linewidth-\algorithmicindent}{Examine a very long line that looks horrible
because the indentation is all messed up.\strut}
2.Latex algorithmicx实现算法排版时,在新的一行上添加注释且不占行号的实现代码:
\Statex\ //nidaye Examine a very long line that looks horrible because the indentation is all messed up.