summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/profcollege/latex/ProfCollege.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-14 03:01:05 +0000
committerNorbert Preining <norbert@preining.info>2023-11-14 03:01:05 +0000
commite20928a0f9f4a7faa8bb21915e761e11e34f04ff (patch)
tree32b28652fc038d4e06485fe1eb5a25517d15ef87 /macros/latex/contrib/profcollege/latex/ProfCollege.sty
parent88ed039ed13674ce7440cc57dba288cf166796fe (diff)
CTAN sync 202311140301
Diffstat (limited to 'macros/latex/contrib/profcollege/latex/ProfCollege.sty')
-rw-r--r--macros/latex/contrib/profcollege/latex/ProfCollege.sty68
1 files changed, 65 insertions, 3 deletions
diff --git a/macros/latex/contrib/profcollege/latex/ProfCollege.sty b/macros/latex/contrib/profcollege/latex/ProfCollege.sty
index 9cf41f3817..18b287fba4 100644
--- a/macros/latex/contrib/profcollege/latex/ProfCollege.sty
+++ b/macros/latex/contrib/profcollege/latex/ProfCollege.sty
@@ -2,9 +2,9 @@
% licence : Released under the LaTeX Project Public License v1.3c
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}%
-\def\filedate{2023/10/15}%
+\def\filedate{2023/11/14}%
\let\PfCfiledate\filedate%
-\def\fileversion{0.99-z-v}%
+\def\fileversion{0.99-z-w}%
\let\PfCfileversion\fileversion%
\ProvidesPackage{ProfCollege}[\filedate\space v\fileversion\space Aide pour utiliser LaTeX au college]%
@@ -49,8 +49,8 @@
\DeclareSIUnit{\Dollar}{\$}%
\DeclareSIUnit{\LivreSterling}{£}%
-
\RequirePackage[table,svgnames]{xcolor}%Gestion des couleurs
+%\PassOptionsToPackage{table,svgnames}{xcolor}
\RequirePackage{xstring}%Gestion de chaines de caractères
\RequirePackage{simplekv}%Gestion de paramètres sous forme de clés
\RequirePackage{ifthen}%
@@ -168,6 +168,62 @@
%%%
% Commandes "utiles"
%%%
+\NewDocumentCommand\NumMA{m}{%
+ \xintifboolexpr{#1<0}{%
+ (\num{#1})%
+ }{%
+ \num{#1}%
+ }%
+}%
+
+\newcounter{Marque}
+
+\NewDocumentCommand\AffichageTab{O{x}mmm}{%
+ \ifnum#2=0\relax%
+ \ifnum#3=0\relax%
+ \ifnum#4=0\relax%
+ \else%
+ #4%
+ \fi%
+ \else%
+ #3*#1%
+ \ifnum#4=0\relax%
+ \else%
+ \ifnum#4<0\relax%
+ #4%
+ \else%
+ +#4%
+ \fi%
+ \fi%
+ \fi%
+ \else%
+ #2*#1*#1%
+ \ifnum#3=0\relax%
+ \ifnum#4=0\relax%
+ \else%
+ \ifnum#4<0%
+ #4%
+ \else%
+ +#4%
+ \fi%
+ \fi%
+ \else%
+ \ifnum#3<0%
+ #3*#1%
+ \else%
+ +#3*#1%
+ \fi%
+ \ifnum#4=0\relax%
+ \else%
+ \ifnum#4<0%
+ #4%
+ \else%
+ +#4%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
%encadrer avec des "sommets arrondis"
\newsavebox{\logobox}%
@@ -599,6 +655,12 @@
}%\emoticon
}%\raisebox
}%
+
+\setsepchar[*]{,*/}\ignoreemptyitems
+\readlist*\ListeMateriaux{aluminium/'/2.7,chêne/e~/0.69,bouleau/e~/0.65,sapin/e~/0.45,polystyrène/e~/1.04,porcelaine/la/2.5,acier/'/7.85,cuivre/e~/8.92,fer/e~/7.86,or/'/19.3,argent/'/10.5,bronze/e~/8.4,plomb/e~/11.35,marbre/e~/2.75,laiton/e~/7.3,titane/e~/4.5,PVC/e~/1.38}
+\setsepchar{,}
+
+\input{PfCCritere}
\input{PfCLego}
\input{PfCJeton}
\input{PfCDessinAlgo}