I have the following preamble for algorithm2e
:
\usepackage[ruled,vlined,linesnumbered,resetcount,algochapter]{algorithm2e}
I have many algorithms, in on of the algorithm as follows:
\begin{algorithm}[t!]
\centering
nonumbering
\caption{CAmple}\label{algoCPOR}
\end{algorithm}
I do not want the line nonumbering (only that line) to be numbered, how should I achieve this?
Best Answer
Depending on your use-case, you can either use
\LinesNotNumbered
or\LinesNumberedHidden
to temporarily remove lines numbers in analgorithm
. Under the latter,\ShowLn
prints the line number for that specific line (if you wish to intermix showing/not):