1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
\documentclass[a4paper,10pt,french,twocolumn]{article}
\usepackage[includeheadfoot,top=2.5mm,headheight=17.5mm,bottom=8mm,footskip=5mm,left=15mm,right=15mm,columnsep=15mm, landscape]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{xcolor}
\usepackage[french,linesnumbered,ruled]{algorithm2e}
\SetKwProg{Fct}{\textbf{Fonction : }}{}{}
\SetKw{In}{\textcolor{red}{Entrées :}\\}
\SetKw{Out}{\textcolor{red}{Sorties :}\\}
\SetKw{Return}{\textcolor{blue}{Renvoyer }}
\SetKw{Begin}{\textcolor{red}{Début}\\}
\SetKw{End}{\textcolor{red}{Fin}\\}
\usepackage{moreverb}
\begin{document}
\begin{minipage}{0.475\textwidth}
\begin{algorithm}[H]
\caption{ALGORITHME}
\Fct{nom(arg1,arg2)}{
\tcc{La fonction reçoit ... et renvoie ...}
\In
\Out
\vdots
\Return{résultat}
}
\Begin
\vdots
\End
\end{algorithm}
\end{minipage}%
\begin{minipage}{0.475\textwidth}
\begin{verbatimtab}
\begin{algorithm}[H]
\caption{ALGORITHME}
\Fct{nom(arg1,arg2)}{
\tcc{La fonction reçoit ... et renvoie ...}
\In
\Out
\vdots
\Return{résultat}
}
\Begin
\vdots
\End
\end{algorithm}
\end{verbatimtab}
\end{minipage}
\end{document} |
Partager