texlive[56051] Master: frpseudocode (5aug20)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 5 23:15:07 CEST 2020


Revision: 56051
          http://tug.org/svn/texlive?view=revision&revision=56051
Author:   karl
Date:     2020-08-05 23:15:07 +0200 (Wed, 05 Aug 2020)
Log Message:
-----------
frpseudocode (5aug20)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-langfrench.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/frpseudocode/
    trunk/Master/texmf-dist/doc/latex/frpseudocode/README.md
    trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
    trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
    trunk/Master/texmf-dist/tex/latex/frpseudocode/
    trunk/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty
    trunk/Master/tlpkg/tlpsrc/frpseudocode.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/frpseudocode/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/frpseudocode/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/frpseudocode/README.md	2020-08-05 21:15:07 UTC (rev 56051)
@@ -0,0 +1,28 @@
+# French Translation for algorithmics pseudocode
+
+Small package to help with french translation for pseudocode.
+
+## Context
+
+This package is intended for use alongside Szász János' [algorithmicx](https://www.ctan.org/pkg/algorithmicx "algorithm writing package") package.
+
+The aim of this package is to provide a french translation of terms and words used in algorithms to make it integrate seamlessly in a french written document.
+
+## Use
+
+To use this package, simply import it as usual then use the same commands you would use with algorithmicx.
+
+The packahe will then translate at compilation time the terms of the algorithm to french language.
+
+An example of use is included in file `frpseudocode-example.tex`, along a PDF output of that file.
+
+
+## Warning
+
+This is a WIP, there might be some unknown issues. You can report these issues by email at :
+<oliver.irwin at pm.me>
+
+
+## License
+
+Made under The LaTeX Project Public License 1.3c


Property changes on: trunk/Master/texmf-dist/doc/latex/frpseudocode/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf	2020-08-05 21:14:31 UTC (rev 56050)
+++ trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf	2020-08-05 21:15:07 UTC (rev 56051)

Property changes on: trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex	2020-08-05 21:15:07 UTC (rev 56051)
@@ -0,0 +1,22 @@
+\documentclass[a4paper]{article}
+\usepackage{algorithm}
+\usepackage{algpseudocode}
+\usepackage{frpseudocode}
+\begin{document}
+\begin{algorithm}
+\caption{Algorithme d'Euclide}
+\begin{algorithmic}[1]
+\Procedure{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}
+\State $a\gets b$
+\State $b\gets r$
+\State $r\gets a\bmod b$
+\EndWhile
+\State \Return $b$\Comment{Le PGCD est b}
+\EndProcedure
+\end{algorithmic}
+\end{algorithm}
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty	2020-08-05 21:15:07 UTC (rev 56051)
@@ -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}}


Property changes on: trunk/Master/texmf-dist/tex/latex/frpseudocode/frpseudocode.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2020-08-05 21:14:31 UTC (rev 56050)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2020-08-05 21:15:07 UTC (rev 56051)
@@ -323,7 +323,7 @@
     fouridx fourier fouriernc
     fp fpl
     fragmaster fragments frame framed francais-bst frankenstein frcursive
-    frederika2016 frege frenchmath frletter frontespizio
+    frederika2016 frege frenchmath frletter frontespizio frpseudocode
     ftc-notebook ftcap ftnxtra
     fullblck fullminipage fullwidth
     functan fundus-calligra fundus-cyr fundus-sueterlin fvextra fwlw

Modified: trunk/Master/tlpkg/tlpsrc/collection-langfrench.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langfrench.tlpsrc	2020-08-05 21:14:31 UTC (rev 56050)
+++ trunk/Master/tlpkg/tlpsrc/collection-langfrench.tlpsrc	2020-08-05 21:15:07 UTC (rev 56051)
@@ -23,6 +23,7 @@
 depend formation-latex-ul
 depend frenchmath
 depend frletter
+depend frpseudocode
 depend hyphen-basque
 depend hyphen-french
 depend impatient-fr

Added: trunk/Master/tlpkg/tlpsrc/frpseudocode.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.