change way to start a new alogrithmic environment
This commit is contained in:
@@ -20,11 +20,17 @@
|
|||||||
% \RequirePackage{commun}
|
% \RequirePackage{commun}
|
||||||
|
|
||||||
% ALGORITHMIE
|
% ALGORITHMIE
|
||||||
\RequirePackage{algorithmicx}
|
\RequirePackage{algpseudocode,algorithm,algorithmicx}
|
||||||
%-- %
|
%-- %
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% AlgoBox
|
% AlgoBox
|
||||||
\algblock[variables]{VARIABLES}{}
|
\NewDocumentEnvironment{code}{ G{algobox} }{%begin
|
||||||
\algblock[algorithme]{DEBUT_ALGORITHME}{FIN_ALGORITHME}
|
\algnewcommand{\variables}{\State\textbf{VARIABLES}}
|
||||||
|
\algblock[algorithme]{DEBUT_ALGORITHME}{FIN_ALGORITHME}
|
||||||
|
|
||||||
|
\begin{algorithmic}
|
||||||
|
}{%end
|
||||||
|
\end{algorithmic}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user