I used \SetKwProg{myproc}{Procedure}{}{} for starting my pseudo-code with Procedure keyword. But its end statement (the last end in pseudo-code) is not appear in the result pdf. So how can i bring it?



    \Input{A Process $M$}
    \Output{A Process $EM$}
    \ForEach{FlowElement $e$ in $M$}{
        \ForEach{Converter $c$ in $Converters$}{
            \If{$c$ accepts $e$}{
                \ce $\leftarrow$ $c$ converts $e$\;
\caption{my procedure}


The result pdf without last end statement:

result pdf


1 Answer 1


According to the documentation on CTAN, the last argument of the \SetKwProg command sets the end text. So get that 'end', the builder for the \myproc command should be


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .