summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty
blob: 4ad5dd260d274706667c78e6ac992a850a79499c (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
%% @author Oliver Irwin
%% 2020-08-03
\ProvidesPackage{frpseudocode}[2020/08/03 French Pseudocode 0.1.1]

%% Functions %%
\algrenewcommand\algorithmicprocedure{\textbf{procédure}}
\algrenewcommand\algorithmicfunction{\textbf{fonction}}
\algrenewcommand\algorithmicreturn{\textbf{renvoyer}}

%% Control Instructions %%
\algrenewcommand\algorithmicwhile{\textbf{Tant que}}
\algrenewcommand\algorithmicdo{\textbf{Faire}}
\algrenewcommand\algorithmicend{\textbf{Fin}}
\algrenewcommand\algorithmicfor{\textbf{Pour}}
\algrenewcommand\algorithmicforall{\textbf{Pour tout}}
\algnewcommand\algorithmicfrom{\textbf{de}}
\algnewcommand\algorithmicto{\textbf{à}}

\algrenewtext{For}[3]%
{\algorithmicfor\ #1 \algorithmicfrom #2 \algorithmicto\ #3 \algorithmicdo}

%% Conditionnals %%

\algrenewcommand\algorithmicif{\textbf{Si}}
\algrenewcommand\algorithmicelse{\textbf{Sinon}}
\algrenewcommand\algorithmicthen{\textbf{Alors}}