[Tex/LaTex] Line break inside procedure’s definition with algorithmicx

algorithmicxalgorithmspseudocode

I don't know if this package is the best for my purpose, but I'm using algorithmicx (see here the documentation) to write algorithms (in pseudcode) inside my work.
At now, I've just a problem: input-parameter' names for my procedure are too long, thus text exceeds the box, ruining the layout.

This is the code:

\begin{algorithm}
\caption{Algorithm to fetch overlapped objects from input lists.}
\begin{algorithmic}[1]
\Procedure {CHECK\_OVERLAP}{$List\_Global\_RE\_To\_Ev\_Objs\_A_k$,$List\_Global\_RE\_To\_Ev\_Objs\_B_k$}
\EndProcedure
\Statex
\end{algorithmic}
\end{algorithm}

And related output:

Algorithm's body

What should I do to fix this problem?

Best Answer

The solution is very simple: it's enough add a space between commas.

\begin{algorithm}
\caption{Algorithm to fetch overlapped objects from input lists.}
\begin{algorithmic}[1]
\Procedure {CHECK\_OVERLAP}{$List\_Global\_RE\_To\_Ev\_Objs\_A_k$, $List\_Global\_RE\_To\_Ev\_Objs\_B_k$}
\EndProcedure
\Statex
\end{algorithmic}
\end{algorithm}

I'm sorry for such a (stupid) question. However I hope this answer will save someone else's time.