diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-05 21:15:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-05 21:15:07 +0000 |
commit | e1eb06571d7726b4d29e73375ece82bce42ebe4f (patch) | |
tree | e4d12a72891ec3f631e69c26ba4d1b7c1c0a39c3 /Master/texmf-dist/tex/latex | |
parent | c6b37f35ffc2203abe12dd516a39f887880d483d (diff) |
frpseudocode (5aug20)
git-svn-id: svn://tug.org/texlive/trunk@56051 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty b/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty new file mode 100644 index 00000000000..4ad5dd260d2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty @@ -0,0 +1,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}} |