Sorry, my english is poor.
I have written a pseudocode in which there are some equations like the figure blow. Now i would like the equations from lines #4-#7 to align at \leftarrow , and the symbols on the left size of \leftarrow are right aligned. The others remain unchanged.
The attachment is my source file.
Thank you for your kind help.
Code: Select all
\documentclass{article}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\usepackage[cmex10]{amsmath}
\begin{document}
\def\NoNumber#1{{\def\alglinenumber##1{}\State #1}\addtocounter{ALG@line}{-1}}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\begin{algorithm}[h]
\caption{******}
\label{algo:stageII}
\begin{algorithmic}[1]
\Require ******
\Ensure ******
\State {******}
\For {******}
\State{
$\begin{aligned}
({R}_{\alpha}, {R}_{\beta})\leftarrow &\text{{\tt{\textbf{FUNC}}}}(******) \\
& \wedge \text{{\tt{\textbf{FUNC}}}}(******)
\end{aligned}$
}
\Comment {******}
\State {${R}_{{S}_{k}}\leftarrow ******$}
\State {${G}_{{S}_{k}}\leftarrow$ {\tt{\textbf{FUNC}}}$(******)$}
\State {$T\leftarrow$ {\tt{\textbf{FUNC}}}$(******)$}
\Comment {******}
\State {${I}_{T}\leftarrow$ {\tt{\textbf{FUNC}}}$(******)$}
\NoNumber {${I}_{{T}^{-}}\leftarrow$ {\tt{\textbf{FUNC}}}$(******)$}
\Comment {******}
\NoNumber {${I}_{{T}^{+}}\leftarrow$ {\tt{\textbf{FUNC}}}$(******)$}
\Comment {******}
\EndFor
\end{algorithmic}
\end{algorithm}
\end{document}