change way to start a new alogrithmic environment

This commit is contained in:
Jeff Lance 2017-01-28 22:03:56 +01:00
parent 857e0d9ffa
commit 6cc6f5c439

@ -20,11 +20,17 @@
% \RequirePackage{commun}
% ALGORITHMIE
\RequirePackage{algorithmicx}
\RequirePackage{algpseudocode,algorithm,algorithmicx}
%-- %
% AlgoBox
\algblock[variables]{VARIABLES}{}
\algblock[algorithme]{DEBUT_ALGORITHME}{FIN_ALGORITHME}
\NewDocumentEnvironment{code}{ G{algobox} }{%begin
\algnewcommand{\variables}{\State\textbf{VARIABLES}}
\algblock[algorithme]{DEBUT_ALGORITHME}{FIN_ALGORITHME}
\begin{algorithmic}
}{%end
\end{algorithmic}
}