From e1eb06571d7726b4d29e73375ece82bce42ebe4f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 5 Aug 2020 21:15:07 +0000 Subject: frpseudocode (5aug20) git-svn-id: svn://tug.org/texlive/trunk@56051 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/frpseudocode/frpseudocode.sty | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty (limited to 'Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty') 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}} -- cgit v1.2.3