diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-25 22:04:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-25 22:04:57 +0000 |
commit | d8fee81a14d1b16e6db51db1631b039f1ac9b6dd (patch) | |
tree | dd0270894880e915678924dcc1380b58a95dc709 /Master/texmf-dist/tex/latex/frenchmath | |
parent | ff3f6f5ff220eb5beece128168496ac6063e6562 (diff) |
frenchmath (25feb23)
git-svn-id: svn://tug.org/texlive/trunk@66150 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/frenchmath')
-rw-r--r-- | Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty | 111 |
1 files changed, 56 insertions, 55 deletions
diff --git a/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty b/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty index 97eaa291844..46b718916e2 100644 --- a/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty +++ b/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2019-2023 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,19 +22,17 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{frenchmath} - [2023/01/22 v2.4 .dtx frenchmath file] -\RequirePackage{ifthen} -\newboolean{capsit} -\DeclareOption{capsit}{\setboolean{capsit}{true}} -\newboolean{lgrmath} -\DeclareOption{lgrmath}{\setboolean{lgrmath}{true}} -\newboolean{upgreek} -\DeclareOption{upgreek}{\setboolean{upgreek}{true}} -\newboolean{Upgreek} -\DeclareOption{Upgreek}{\setboolean{Upgreek}{true} - \setboolean{upgreek}{true}} -\newboolean{noibrackets} -\DeclareOption{noibrackets}{\setboolean{noibrackets}{true}} + [2023/02/24 v2.5 .dtx frenchmath file] +\newif\ifcapsit +\DeclareOption{capsit}{\capsittrue} +\newif\iflgrmath +\DeclareOption{lgrmath}{\lgrmathtrue} +\newif\ifupgreek +\DeclareOption{upgreek}{\upgreektrue} +\newif\ifUpgreek +\DeclareOption{Upgreek}{\Upgreektrue\upgreektrue} +\newif\ifnoibrackets +\DeclareOption{noibrackets}{\noibracketstrue} \ProcessOptions \relax \AtBeginDocument{ @@ -48,16 +46,17 @@ } } \RequirePackage{amsopn} % fournit \DeclareMathOperator -\ifthenelse{\boolean{lgrmath}}{ +\@ifpackageloaded{mathptmx}{\RequirePackage{dotlessj}} +\iflgrmath \@ifpackageloaded{lgrmath}{}{ \RequirePackage[font=fcm,style=french]{lgrmath}} -}{} -\ifthenelse{\boolean{upgreek}}{ +\fi +\ifupgreek \@ifpackageloaded{upgreek}{}{\RequirePackage[Euler]{upgreek}} -}{} +\fi \RequirePackage{xspace} % utile pour les commandes \curs, \ssi, \Oij -\ifthenelse{\boolean{noibrackets}}{}{ - \RequirePackage{ibrackets}} % intelligent brackets +\ifnoibrackets\else \RequirePackage{ibrackets} \fi % intelligent brackets + \RequirePackage{ncccomma} % depuis frenchmath 1.6 \@ifpackagewith{babel}{french}{}{ \RequirePackage{iftex} @@ -72,39 +71,41 @@ \addto\extrasfrench{\mathcode`\,="8000\relax} }{} } - -\ifthenelse{\boolean{capsit}}{}{ +\newcommand*\@mathup[1]{ + \DeclareMathSymbol{#1}{\mathalpha}{operators}{`#1} +} +\ifcapsit\else \AtBeginDocument{ - \DeclareMathSymbol{A}\mathalpha{operators}{`A} - \DeclareMathSymbol{B}\mathalpha{operators}{`B} - \DeclareMathSymbol{C}\mathalpha{operators}{`C} - \DeclareMathSymbol{D}\mathalpha{operators}{`D} - \DeclareMathSymbol{E}\mathalpha{operators}{`E} - \DeclareMathSymbol{F}\mathalpha{operators}{`F} - \DeclareMathSymbol{G}\mathalpha{operators}{`G} - \DeclareMathSymbol{H}\mathalpha{operators}{`H} - \DeclareMathSymbol{I}\mathalpha{operators}{`I} - \DeclareMathSymbol{J}\mathalpha{operators}{`J} - \DeclareMathSymbol{K}\mathalpha{operators}{`K} - \DeclareMathSymbol{L}\mathalpha{operators}{`L} - \DeclareMathSymbol{M}\mathalpha{operators}{`M} - \DeclareMathSymbol{N}\mathalpha{operators}{`N} - \DeclareMathSymbol{O}\mathalpha{operators}{`O} - \DeclareMathSymbol{P}\mathalpha{operators}{`P} - \DeclareMathSymbol{Q}\mathalpha{operators}{`Q} - \DeclareMathSymbol{R}\mathalpha{operators}{`R} - \DeclareMathSymbol{S}\mathalpha{operators}{`S} - \DeclareMathSymbol{T}\mathalpha{operators}{`T} - \DeclareMathSymbol{U}\mathalpha{operators}{`U} - \DeclareMathSymbol{V}\mathalpha{operators}{`V} - \DeclareMathSymbol{W}\mathalpha{operators}{`W} - \DeclareMathSymbol{X}\mathalpha{operators}{`X} - \DeclareMathSymbol{Y}\mathalpha{operators}{`Y} - \DeclareMathSymbol{Z}\mathalpha{operators}{`Z} + \@mathup{A} + \@mathup{B} + \@mathup{C} + \@mathup{D} + \@mathup{E} + \@mathup{F} + \@mathup{G} + \@mathup{H} + \@mathup{I} + \@mathup{J} + \@mathup{K} + \@mathup{L} + \@mathup{M} + \@mathup{N} + \@mathup{O} + \@mathup{P} + \@mathup{Q} + \@mathup{R} + \@mathup{S} + \@mathup{T} + \@mathup{U} + \@mathup{V} + \@mathup{W} + \@mathup{X} + \@mathup{Y} + \@mathup{Z} } -} +\fi -\ifthenelse{\boolean{upgreek}}{ +\ifupgreek \@ifundefined{italpha}{\let\italpha\alpha}{ \PackageWarningNoLine{frenchmath}{Command \string\italpha\space already exist \MessageBreak @@ -143,9 +144,9 @@ \@ifundefined{itvarpi}{\let\itvarpi\varpi}{} \@ifundefined{itvarsigma}{\let\itvarsigma\varsigma}{} \@ifundefined{itvarphi}{\let\itvarphi\varphi}{} -}{} +\fi -\ifthenelse{\boolean{upgreek}}{ +\ifupgreek \renewcommand\alpha{\upalpha} \renewcommand\beta{\upbeta} \renewcommand\gamma{\upgamma} @@ -175,9 +176,9 @@ \renewcommand\varrho{\upvarrho} \renewcommand\varsigma{\upvarsigma} \renewcommand\varphi{\upvarphi} -}{} +\fi -\ifthenelse{\boolean{Upgreek}}{ +\ifUpgreek \renewcommand\Gamma{\Upgamma} \renewcommand\Delta{\Updelta} \renewcommand\Theta{\Uptheta} @@ -189,7 +190,7 @@ \renewcommand\Phi{\Upphi} \renewcommand\Psi{\Uppsi} \renewcommand\Omega{\Upomega} -}{} +\fi \AtBeginDocument{\@ifpackageloaded{pstricks-add}{\psset{comma=true}}{}} \DeclareMathSymbol{;}{\mathbin}{operators}{'73} % \mathpunct à l'origine |