blob: 06be0cca1fc95ef42897d8dd2c284149740c9c7c (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
%% @author Oliver Irwin
%% DATE
\ProvidesPackage{frpseudocode}[DATE French Pseudocode VERSION]
\RequirePackage{algpseudocode}
%% Global mod
\floatname{algorithm}{Algorithme}
%% Functions %%
\algrenewcommand\algorithmicprocedure{\textbf{PROCÉDURE}}
\algrenewcommand\algorithmicfunction{\textbf{FONCTION}}
\algrenewcommand\algorithmicreturn{\textbf{RENVOYER}}
\algrenewtext{Procedure}[2]%
{\algorithmicprocedure\ \textproc{#1}\ifthenelse{\equal{#2}{}}{}{(#2)}\ :}
\algrenewtext{Function}[2]%
{\algorithmicfunction\ \textproc{#1}\ifthenelse{\equal{#2}{}}{}{(#2)}\ :}
%% Inputs
\algrenewcommand\algorithmicrequire{\textbf{REQUIERT : }}
\algrenewcommand\algorithmicensure{\textbf{VÉRIFIER : }}
%% Control Instructions %%
\algrenewcommand\algorithmicwhile{\textbf{TANT QUE}}
\algnewcommand\algorithmicwhilem{\textbf{TANT QUE}}
\algrenewcommand\algorithmicdo{\textbf{FAIRE}}
\algnewcommand\algorithmicdom{\textbf{FAIRE}}
\algrenewcommand\algorithmicend{\textbf{FIN}}
\algrenewcommand\algorithmicfor{\textbf{POUR}}
\algrenewcommand\algorithmicforall{\textbf{POUR TOUT}}
\algnewcommand\algorithmicfrom{\textbf{DE }}
\algnewcommand\algorithmicto{\textbf{À}}
\algnewcommand\algorithmicform{\textbf{POUR}}
\algrenewcommand\algorithmicrepeat{\textbf{RÉPÉTER}}
\algrenewcommand\algorithmicuntil{\textbf{JUSQU'À}}
\algdef{SE}[FORFT]{ForFT}{EndFor}[3]{}%
%% Change commands
\algrenewtext{ForFT}[3]%
{\algorithmicfor\ #1 \algorithmicfrom #2 \algorithmicto\ #3,\ \algorithmicdom\ :}
\algrenewtext{For}[1]%
{\algorithmicfor\ #1,\ \algorithmicdom\ :}
\algrenewtext{EndFor}[0]%
{\algorithmicend\ \algorithmicform}
\algrenewtext{While}[1]%
{\algorithmicwhile\ #1,\ \algorithmicdom\ :}
\algrenewtext{EndWhile}[0]%
{\algorithmicend\ \algorithmicwhilem}
%% Conditionnals %%
\algrenewcommand\algorithmicif{\textbf{SI}}
\algnewcommand\algorithmicifm{\textbf{SI}}
\algrenewcommand\algorithmicelse{\textbf{SINON}}
\algrenewcommand\algorithmicthen{\textbf{ALORS}}
\newcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\algrenewtext{SINON SI}[1]%
{\algorithmicelse ,\ \algorithmicifm\ #1}
\algrenewtext{ENDIF}[0]%
{\algorithmicend\ \algorithmicifm}
%% Logical
%\algrenewcommand{\algorithmicnot}{\textbf{non}}
%\algrenewcommand{\algorithmicand}{\textbf{et}}
%\algrenewcommand{\algorithmicor}{\textbf{ou}}
|