diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-06 03:02:06 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-06 03:02:06 +0000 |
commit | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (patch) | |
tree | 4ff41aa9059b698160184e26c89a845c859c8ef7 /macros | |
parent | 7731c3718462625785ef5c34fd2a38d6ea4f60a7 (diff) |
CTAN sync 202008060302
Diffstat (limited to 'macros')
-rw-r--r-- | macros/latex/contrib/frpseudocode/README.md | 28 | ||||
-rw-r--r-- | macros/latex/contrib/frpseudocode/frpseudocode-example.pdf | bin | 0 -> 62553 bytes | |||
-rw-r--r-- | macros/latex/contrib/frpseudocode/frpseudocode-example.tex | 22 | ||||
-rw-r--r-- | macros/latex/contrib/frpseudocode/frpseudocode.sty | 26 | ||||
-rw-r--r-- | macros/xetex/latex/xepersian-hm/INSTALL.txt | 5 | ||||
-rw-r--r-- | macros/xetex/latex/xepersian-hm/xepersian-hm-doc.ltx | 2 | ||||
-rw-r--r-- | macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf | bin | 267978 -> 268014 bytes | |||
-rw-r--r-- | macros/xetex/latex/xepersian-hm/xepersian-hm.dtx | 8 | ||||
-rw-r--r-- | macros/xetex/latex/xepersian-hm/xepersian-hm.pdf | bin | 59544 -> 59704 bytes |
9 files changed, 84 insertions, 7 deletions
diff --git a/macros/latex/contrib/frpseudocode/README.md b/macros/latex/contrib/frpseudocode/README.md new file mode 100644 index 0000000000..1285a0df1a --- /dev/null +++ b/macros/latex/contrib/frpseudocode/README.md @@ -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@pm.me> + + +## License + +Made under The LaTeX Project Public License 1.3c diff --git a/macros/latex/contrib/frpseudocode/frpseudocode-example.pdf b/macros/latex/contrib/frpseudocode/frpseudocode-example.pdf Binary files differnew file mode 100644 index 0000000000..be66949dae --- /dev/null +++ b/macros/latex/contrib/frpseudocode/frpseudocode-example.pdf diff --git a/macros/latex/contrib/frpseudocode/frpseudocode-example.tex b/macros/latex/contrib/frpseudocode/frpseudocode-example.tex new file mode 100644 index 0000000000..de0de6846e --- /dev/null +++ b/macros/latex/contrib/frpseudocode/frpseudocode-example.tex @@ -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 diff --git a/macros/latex/contrib/frpseudocode/frpseudocode.sty b/macros/latex/contrib/frpseudocode/frpseudocode.sty new file mode 100644 index 0000000000..4ad5dd260d --- /dev/null +++ b/macros/latex/contrib/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}} diff --git a/macros/xetex/latex/xepersian-hm/INSTALL.txt b/macros/xetex/latex/xepersian-hm/INSTALL.txt index c1c5b9e4bb..0487956ac2 100644 --- a/macros/xetex/latex/xepersian-hm/INSTALL.txt +++ b/macros/xetex/latex/xepersian-hm/INSTALL.txt @@ -1,7 +1,7 @@ xepersian-hm -- INSTALL ====================== - Source: xepersian-hm.dtx (2020-07-20 v1.0c) + Source: xepersian-hm.dtx (2020-08-05 v1.0d) Author: Hossein Movahhedian Info: filecontents + macro + verbatim License: LPPL 1.3c @@ -34,6 +34,7 @@ The example files kashida-xep-XB-example.tex illustrate some features of the package and are an addendum to the -main documentation xepersian-hm.pdf. +user documentation xepersian-hm-doc.pdf and the source documentation +xepersian-hm.pdf. That's it. diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.ltx b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.ltx index 24a168dfc5..9eaae03396 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.ltx +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.ltx @@ -27,7 +27,7 @@ } } -\date{Released \quad 2020-07-20 \quad v1.0c} +\date{Released \quad 2020-08-05 \quad v1.0d} \let\tmpthepage\thepage \renewcommand{\thepage}{\lr{\Large\textbf\tmpthepage}} diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf Binary files differindex 67ab527464..dba4eee9ae 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm.dtx b/macros/xetex/latex/xepersian-hm/xepersian-hm.dtx index 6a74a05107..b9ff39c87e 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm.dtx +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm.dtx @@ -67,7 +67,7 @@ make time to fix. % }^^A % } % -% \date{Released \quad 2020-07-20 \quad v1.0c} +% \date{Released \quad 2020-08-05 \quad v1.0d} % % \maketitle % @@ -96,7 +96,7 @@ make time to fix. \RequirePackage{zref-savepos}[2020-03-03] \RequirePackage{xepersian} \ExplSyntaxOn -\ProvidesExplPackage {xepersian-hm} {2020-07-20} {1.0c} { Fixes~issues~in~xepersian~package } +\ProvidesExplPackage {xepersian-hm} {2020-08-05} {1.0d} { Fixes~issues~in~xepersian~package } \box_new:N \l_xephm_ksh_box @@ -264,7 +264,7 @@ make time to fix. \tl_set:Nx \l_xephm_main_font_full_tl { \tex_fontname:D \tex_the:D \tex_font:D } \tl_set:Nx \l_xephm_main_font_name_tl { \l_xephm_main_font_full_tl } \regex_replace_once:nnN { ^"([^/]+)/.* } { \1 } \l_xephm_main_font_name_tl - \int_set:Nn \l_xephm_kashida_slot_int { \xetex_charglyph:D \c_xephm_ksh_int } + \int_set:Nn \l_xephm_kashida_slot_int { \XeTeXcharglyph \c_xephm_ksh_int } \int_compare:nT { \l_xephm_kashida_slot_int = \c_zero_int } { \msg_error:nnx { xepersian-hm } { error-kashida-character-is-not-available-in-the-main-font } { \l_xephm_main_font_name_tl } @@ -385,7 +385,7 @@ make time to fix. % \begin{macrocode} %<*kashida-xepersian-hm-def> \ExplSyntaxOn -\ProvidesExplFile {kashida-xepersian-hm.def} {2020-07-20} {1.0c} { Fixes~implementation~of~Kashida~in~xepersian~package } +\ProvidesExplFile {kashida-xepersian-hm.def} {2020-08-05} {1.0d} { Fixes~implementation~of~Kashida~in~xepersian~package } \newXeTeXintercharclass \c_xephm_d_charclass % dual-joiner class \newXeTeXintercharclass \c_xephm_l_charclass % lam diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm.pdf b/macros/xetex/latex/xepersian-hm/xepersian-hm.pdf Binary files differindex 5dc5c070b8..5cace91f22 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm.pdf +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm.pdf |