make a new environment for Algobox language.
This commit is contained in:
parent
6cc6f5c439
commit
0089c8b3ad
@ -23,12 +23,21 @@
|
|||||||
\RequirePackage{algpseudocode,algorithm,algorithmicx}
|
\RequirePackage{algpseudocode,algorithm,algorithmicx}
|
||||||
%-- %
|
%-- %
|
||||||
|
|
||||||
|
\newfontfamily\UbuntuMono[Ligatures=TeX]{ubuntumono}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% AlgoBox
|
% AlgoBox
|
||||||
\NewDocumentEnvironment{code}{ G{algobox} }{%begin
|
\algnewcommand{\prend}[2]{\State #1 \textbf{PREND\_LA\_VALEUR} #2}
|
||||||
\algnewcommand{\variables}{\State\textbf{VARIABLES}}
|
\algnewcommand{\vars}[2]{\State \textbf{VARIABLES}}
|
||||||
\algblock[algorithme]{DEBUT_ALGORITHME}{FIN_ALGORITHME}
|
|
||||||
|
\NewDocumentEnvironment{algobox}{ }{%begin
|
||||||
|
\UbuntuMono
|
||||||
|
% \algsetblockx[variables]{bVARS}{eVARS}{}{1cm}{\textbf{VARIABLES}}{}
|
||||||
|
% \algblockx[traitement]{debut}{fin}{\textbf{\UbuntuMono DEBUT\_ALGORITHME}}{\textbf{\UbuntuMono FIN\_ALGORITHME}}
|
||||||
|
\algsetblockx[traitement]{debut}{fin}{}{1cm}{\textbf{DEBUT\_ALGORITHME}}{\textbf{FIN\_ALGORITHME}}
|
||||||
|
|
||||||
|
% \algnewcommand{\PREND}[2]{\State #1 \textbf{PREND\_LA\_VALEUR} #2}
|
||||||
|
|
||||||
\begin{algorithmic}
|
\begin{algorithmic}
|
||||||
}{%end
|
}{%end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user