summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-08-10 21:03:54 +0000
committerKarl Berry <karl@freefriends.org>2020-08-10 21:03:54 +0000
commit9677ca1d39adeaddf111e115ac33eab370a56678 (patch)
tree3e8b4a15f3e45c32183ab60f995904ab034da67a /Master/texmf-dist/doc
parentdc7cba3d7b221b82725446f2bd826b6f7a2bebbe (diff)
frpseudocode (10aug20)
git-svn-id: svn://tug.org/texlive/trunk@56088 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/frpseudocode/README.md5
-rw-r--r--Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdfbin62553 -> 67360 bytes
-rw-r--r--Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex28
3 files changed, 32 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/frpseudocode/README.md b/Master/texmf-dist/doc/latex/frpseudocode/README.md
index 1285a0df1ac..0fcdb8ab0a9 100644
--- a/Master/texmf-dist/doc/latex/frpseudocode/README.md
+++ b/Master/texmf-dist/doc/latex/frpseudocode/README.md
@@ -26,3 +26,8 @@ This is a WIP, there might be some unknown issues. You can report these issues b
## License
Made under The LaTeX Project Public License 1.3c
+
+## Changelog
+
+2020-08-03 : Initial release
+2020-08-09 : Changed algorithm title to french
diff --git a/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
index be66949dae1..5e5d7995fa1 100644
--- a/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
+++ b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
index de0de6846e5..09e8a8c9fbd 100644
--- a/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
+++ b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
@@ -6,7 +6,7 @@
\begin{algorithm}
\caption{Algorithme d'Euclide}
\begin{algorithmic}[1]
-\Procedure{Euclide}{$a,b$}
+\Function{Euclide}{$a, b$}
\Comment{PGCD de a et b}
\State $r\gets a\bmod b$
\While{$r\not=0$}\Comment{Si r = 0, on a la réponse}
@@ -15,6 +15,32 @@
\State $r\gets a\bmod b$
\EndWhile
\State \Return $b$\Comment{Le PGCD est b}
+\EndFunction
+\end{algorithmic}
+\end{algorithm}
+
+\begin{algorithm}
+\caption{Démonstration boucle pour}
+\begin{algorithmic}[1]
+\Procedure{AfficheurMultiple}{$str$}
+\Comment{Démo boucle pour}
+\State $r\gets a\bmod b$
+\For{$i < 15$}
+\State Afficher $str$ \Comment{On affiche la chaîne}
+\EndFor
+\EndProcedure
+\end{algorithmic}
+\end{algorithm}
+
+\begin{algorithm}
+\caption{Démonstration boucle pour - 2}
+\begin{algorithmic}[1]
+\Procedure{AfficheurMultiple}{$str$}
+\Comment{Démo boucle pour}
+\State $r\gets a\bmod b$
+\ForFT{$i$}{$0$}{$15$}
+\State Afficher $str$ \Comment{On affiche la chaîne}
+\EndFor
\EndProcedure
\end{algorithmic}
\end{algorithm}