![Algorithm2e 在算法内部没有正确缩进](https://linux22.com/image/458678/Algorithm2e%20%E5%9C%A8%E7%AE%97%E6%B3%95%E5%86%85%E9%83%A8%E6%B2%A1%E6%9C%89%E6%AD%A3%E7%A1%AE%E7%BC%A9%E8%BF%9B.png)
我有以下 MWE。所需的输出是一行一个制表符的缩进。你看到哪里错了吗?
\documentclass{article}
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{geometry,nccmath}
\usepackage{booktabs,caption}
\usepackage{algpseudocode}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\algorithmic}
{\ALG@tlm\z@}{\leftmargin\z@\ALG@tlm\z@}
{}{}
\makeatother
\begin{document}
\begin{algorithm}[H]
\SetArgSty{textnormal}
\SetAlgoLined
\begin{algorithmic}
\Function{Initialization}{$A$,$B$,$C$}
\State{\For{$i \gets 1$ \KwTo $N$,}{\For{$i \gets 1$ \KwTo $nPop$,}{ $A \gets B$\;} \For{$j \gets{} 1$ \KwTo $M$,}{$C\gets 5$\;}}}
\EndFunction
\end{algorithmic}
\caption{Initialization}
\end{algorithm}
\end{document}