I am typesetting algorithms with the algorithm package, and I would like to add unnumbered lines in them.
Is there a way to create a \State* command, the same way there is an equation* environment?
Here is an example of algorithm. I would like the \State {} line to be unnumbered, and therefore \State Step 3. to be number 3.
\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{A title.}
\begin{algorithmic}[1]
\State Step 1.
\State Step 2.
\State {}
\State Step 3.
\end{algorithmic}
\end{algorithm}
\end{document}
https://tex.stackexchange.com/questions/355937/how-to-add-input-and-output-before-algorithm-procedure
– Vinod Kumar Chauhan Oct 24 '18 at 06:52