summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/annee-scolaire
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-11 22:49:42 +0000
committerKarl Berry <karl@freefriends.org>2020-04-11 22:49:42 +0000
commit5d4d5f0ea58c75088209b36c18b659e788ad0e8e (patch)
tree61b15f9db4526bf256e036e71fa74b941c38d309 /Master/texmf-dist/tex/latex/annee-scolaire
parentdd46e77217f10b237782ef34e01bc018cc7a9506 (diff)
annee-scolaire (5apr20)
git-svn-id: svn://tug.org/texlive/trunk@54675 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/annee-scolaire')
-rw-r--r--Master/texmf-dist/tex/latex/annee-scolaire/annee-scolaire.sty72
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/annee-scolaire/annee-scolaire.sty b/Master/texmf-dist/tex/latex/annee-scolaire/annee-scolaire.sty
new file mode 100644
index 00000000000..df4769957e2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/annee-scolaire/annee-scolaire.sty
@@ -0,0 +1,72 @@
+%%
+%% This is file `annee-scolaire.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% annee-scolaire.dtx (with options: `package')
+%%
+%% Do not distribute this file without also distributing the
+%% source files specified above.
+%%
+%% Do not distribute a modified version of this file.
+%%
+%% File: annee-scolaire.dtx
+%% Copyright (C) 2020 Yvon Henel aka Le TeXnicien de surface
+%%
+%% It may be distributed and/or modified under the conditions of the
+%% LaTeX Project Public License (LPPL), either version 1.3c of this
+%% license or (at your option) any later version. The latest version
+%% of this license is in the file
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+\RequirePackage{expl3}[2013/03/12]
+\GetIdInfo$Id: annee-scolaire.dtx 1.5 2020-04-05 TdS $
+ {}
+\ProvidesExplPackage
+ {\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
+\RequirePackage{xparse}
+\RequirePackage{l3keys2e}
+\keys_define:nn {annee-scolaire}
+{
+ premiermois .int_set:N = \c__AnneeScolaire_Premier_Mois_int,
+ premiermois .initial:n = {8},
+ premierjour .int_set:N = \c__AnneeScolaire_Premier_Jour_int,
+ premierjour .initial:n = {1},
+ decalage .int_set:N = \c__AnneeScolaire_Decalage_int,
+ decalage .initial:n = {0},
+ separateur .tl_set:N = \c__AnneeScolaire_Separe_Annees_tl,
+ separateur .initial:n = {-}
+}
+\ProcessKeysOptions { annee-scolaire }
+\int_const:Nn \c__AnneeScolaire_Annee_Deb_int {
+ \int_compare:nNnTF { 100*\the\month + \the\day } <
+ { 100*\c__AnneeScolaire_Premier_Mois_int + \c__AnneeScolaire_Premier_Jour_int}
+ {\year - \c_one + \c__AnneeScolaire_Decalage_int}
+ {\year + \c__AnneeScolaire_Decalage_int}
+}
+\int_const:Nn \c__AnneeScolaire_Annee_Fin_int {
+ \c__AnneeScolaire_Annee_Deb_int + \c_one
+}
+\NewDocumentCommand \AnneeScolairePresentation { o m }
+{
+ \int_to_arabic:n { #2 }
+}
+\NewDocumentCommand \anneescolaire { O{0} }
+{
+ \AnneeScolairePresentation[1] {\c__AnneeScolaire_Annee_Deb_int + #1}
+ \c__AnneeScolaire_Separe_Annees_tl
+ \AnneeScolairePresentation[2] {\c__AnneeScolaire_Annee_Fin_int + #1}
+}
+\NewDocumentCommand \debutanneescolaire { O{0} }
+ {
+ \AnneeScolairePresentation[3] {\c__AnneeScolaire_Annee_Deb_int + #1}
+ }
+\NewDocumentCommand \finanneescolaire { O{0} }
+ {
+ \AnneeScolairePresentation[4] {\c__AnneeScolaire_Annee_Fin_int + #1}
+ }
+\endinput
+%%
+%% End of file `annee-scolaire.sty'.