Is there way how to turn off numbering of lines for specific line in algorithm2e
? I need bold :
after keyword. So I tried redefine these macros:
\renewcommand{\KwIn}[1]{\textbf{Input:} #1}
\renewcommand{\KwOut}[1]{\textbf{Output:} #1}
But after try of this:
\begin{algorithm}[h]
\SetAlgoNoLine
\DontPrintSemicolon
\LinesNumbered
\KwIn{$(X_{t-1}, u_t, z_t)$}\\
\KwOut{$X_t$}
...
...
...
\end{algorithm}
So I need turn off line numbering of 2 first lines (keyword lines). Or specify new keyword which will have bold :
after keyword name. This \SetKwInput{Input}{Input}
is generating only normal :
after Input
name (Input: (X…)). I was searching in documentation how adjust style of input/output keywords but nothing about ending :
found. Can anybody help?
Best Answer
Here's one possibility redefining
\SetKwInOut
: