diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/profcollege/ProfCollege.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/profcollege/ProfCollege.sty | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/profcollege/ProfCollege.sty b/Master/texmf-dist/tex/latex/profcollege/ProfCollege.sty index d09cfda9889..3963e71e7d6 100644 --- a/Master/texmf-dist/tex/latex/profcollege/ProfCollege.sty +++ b/Master/texmf-dist/tex/latex/profcollege/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{2024/03/24}% +\def\filedate{2024/04/20}% \let\PfCfiledate\filedate% -\def\fileversion{0.99-A-b}% +\def\fileversion{0.99-A-c}% \let\PfCfileversion\fileversion% \ProvidesPackage{ProfCollege}[\filedate\space v\fileversion\space Aide pour utiliser LaTeX au college]% @@ -39,7 +39,7 @@ % mathématiques \RequirePackage{siunitx}% \sisetup{% - locale=FR,%mode = match, + locale=FR,mode = match, propagate-math-font = true,% reset-math-version = false, reset-text-family = false,% reset-text-series = false, reset-text-shape = false,% @@ -326,12 +326,40 @@ \IfNoValueTF{#1}{\Dotfill}{\makebox[#1]{\Dotfill}}% }% +%\NewDocumentCommand\Lignespointilles{m}{% +% \xintifboolexpr{\fpeval{#1}>1}{% +% \xintFor* ##1 in {\xintSeq {1}{\fpeval{#1}}}\do{% +% \pointilles\par% +% }% +% }{}% +%}% + +\NewDocumentCommand\PfCNbLignesRestantes{}{% + \edef\measurepage{\dimexpr\pagegoal-\pagetotal\relax}% + \xintifboolexpr{\fpeval{\the\measurepage}>\fpeval{\the\textheight}}{ +% Toto + \edef\measurepage{\dimexpr\textheight\relax} + }{} + \xdef\PfCResteLignes{\fpeval{trunc((\the\measurepage)/(\baselineskip),0)}}% +}% + +\NewDocumentCommand\PfCLignesFinales{}{% + \PfCNbLignesRestantes% + \xintFor* ##1 in {\xintSeq {1}{\PfCResteLignes}}\do{% + \pointilles\par% + }% +}% + \NewDocumentCommand\Lignespointilles{m}{% - \xintifboolexpr{\fpeval{#1}>1}{% - \xintFor* ##1 in {\xintSeq {1}{\fpeval{#1}}}\do{% - \pointilles\par% - }% - }{}% + \ifx\bla#1\bla% + \par\PfCLignesFinales% + \else% + \xintifboolexpr{\fpeval{#1}>1}{% + \xintFor* ##1 in {\xintSeq {1}{#1}}\do{% + \pointilles\par% + }% + }{}% + \fi }% %https://tex.stackexchange.com/questions/128991/frac-or-inference-rule-with-dotted-line @@ -759,6 +787,7 @@ \def\PfCSymbolTimes{\times}% \def\PfCSymbolDiv{\div}% +\input{PfCAssemblagesSolides} \input{PfCTicketCaisse} \input{PfCRecyclage} \input{PfCDontCountDots} |