texlive[64728] Master/texmf-dist: frenchmath (17oct22)

commits+karl at tug.org commits+karl at tug.org
Mon Oct 17 22:17:45 CEST 2022


Revision: 64728
          http://tug.org/svn/texlive?view=revision&revision=64728
Author:   karl
Date:     2022-10-17 22:17:44 +0200 (Mon, 17 Oct 2022)
Log Message:
-----------
frenchmath (17oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/frenchmath/frenchmath.pdf
    trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.dtx
    trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.ins
    trunk/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty

Modified: trunk/Master/texmf-dist/doc/latex/frenchmath/frenchmath.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.dtx	2022-10-17 20:17:33 UTC (rev 64727)
+++ trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.dtx	2022-10-17 20:17:44 UTC (rev 64728)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier at ac-toulouse.fr>
+% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier at 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
@@ -19,8 +19,8 @@
 %</driver>
 %<*package> 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{frenchmath}   
-    [2020/11/02 v1.5 .dtx frenchmath file]
+\ProvidesPackage{frenchmath}
+[2022/10/16 v1.6 .dtx frenchmath file]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -29,29 +29,30 @@
 \usepackage[french]{babel}
 \usepackage{lmodern}
 \usepackage{frenchmath}
+\usepackage{upgreek}
 % pour l'exemple de la doc on utilise \PV pour simuler le ; d'origine
-\DeclareMathSymbol{\PV}\mathpunct{UpSh}{059} % 059 = code du ;
-\DisableCrossrefs         
+\DeclareMathSymbol{\PV}\mathpunct{operators}{'73} % '73 = code octal du ;
+\DisableCrossrefs
 %\CodelineIndex
 %\RecordChanges
 \usepackage{hyperref}
 \hypersetup{%
     colorlinks,
-    linkcolor=blue, 
+    linkcolor=blue,
     citecolor=blue,
-    pdftitle={frenchmath}, 
-    pdfsubject={LaTeX package}, 
+    pdftitle={frenchmath},
+    pdfsubject={LaTeX package},
     pdfauthor={Antoine Missier}
 }
 \begin{document}
-  \DocInput{frenchmath.dtx}
-  %\PrintChanges
-  %\PrintIndex
+\DocInput{frenchmath.dtx}
+%\PrintChanges
+%\PrintIndex
 \end{document}
 %</driver>
 % \fi
 %
-% \CheckSum{249}
+% \CheckSum{266}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -80,17 +81,20 @@
 % \changes{v1.2}{27/04/2019}{capsrm -> capsup}
 % \changes{v1.3}{15/05/2019}{Intégration de icomma et psset{comma=true}, 
 % changements dans la documentation}
-% \changes{v1.4}{2019/05/22}{Changement de la définition de fonte up -> UpSh, 
+% \changes{v1.4}{2019/05/22}{Changement de la définition de fonte up -> operators, 
 % car incompatibilité avec l'extension unicode-math}
 % \changes{v1.5}{2020/11/02}{Ajout des macros étoilées pour les repères du plan et de l'espace
 % et la base (i,j,k)}
+% \changes{v1.6}{2022/10/16}{Remplacement de icomma par ncccomma, grâce à une proposition
+% de Jean-François Burnol, amélioration du code redéfinissant les majuscules mathématiques,
+% remplacement de \backslash tgh par \th pour la tangente hyperbolique.}
 %
 % \GetFileInfo{frenchmath.sty}
 %
 % \title{L'extension \textsf{frenchmath}\thanks{Ce document
-%     correspond à \textsf{frenchmath}~\fileversion, dernière modification le 02/11/2020.}}
+%     correspond à \textsf{frenchmath}~\fileversion, dernière modification le 16/10/2022.}}
 % \author{Antoine Missier \\ \texttt{antoine.missier at ac-toulouse.fr}}
-% \date{2 novembre 2020}
+% \date{16 octobre 2022}
 % \maketitle
 %
 % \section{Introduction}
@@ -100,7 +104,8 @@
 % les majuscules en romain (lettres droites) plutôt qu'en italique 
 % (voir~\cite{RTIN} et~\cite{IGEN})
 % ainsi que des espacements corrects
-% pour les virgules et point-virgules.
+% pour les virgules et point-virgules
+%\footnote{Merci à Jean-François Burnol pour différentes améliorations proposées au code.}.
 %
 % D'autres solutions pour composer les majuscules mathématiques en romain
 % sont proposées dans les extensions \textsf{fourier}~\cite{FOUR} 
@@ -107,11 +112,10 @@
 % (avec la famille des polices Adobe Utopia)
 % ou encore \textsf{mathdesign}~\cite{DESIGN} (avec les polices Adobe Utopia, 
 % URW Garamond ou Bitstream Charter). Mais \textsf{frenchmath}
-% fournit une méthode générique s'adaptant à n'importe quelle police, en particulier 
-% Latin Modern (extension \textsf{lmodern}) avec laquelle ce document a été composé.
+% fournit une solution générique s'adaptant à n'importe quelle police.
 %
 % D'autres préconisations, telles que composer en lettre droite
-% et non en italique le symbole différentiel, les nombres i et e~\cite{IGEN}, 
+% et non en italique le symbole différentiel, les constantes mathématiques i et e~\cite{IGEN}, 
 % sont des règles internationales~\cite{TYPMA}~\cite{ICTNS}~\cite{LSHORT}.
 % Elles ne sont donc pas implémentées dans \textsf{frenchmath}
 % \footnote{Nous proposons pour cela l'extension \textsf{mismath}~\cite{MIS}
@@ -121,7 +125,7 @@
 % Quelques différences sont à signaler avec \textsf{mafr} : 
 % \begin{itemize}
 % \item nous avons choisi de ne pas substituer les symboles français aux symboles anglo-saxons 
-% avec le même nom de commande mais de créer de nouvelles commandes ;
+% avec le même nom de commande ;
 % \item les macros présentées dans la section 2 qui correspondent à des macros de \textsf{mafr}
 % sont signalées par un astérisque en fin d'item, les autres sont nouvelles ;
 % \item enfin quelques commandes de  \textsf{mafr} ne sont pas spécifiques 
@@ -135,6 +139,7 @@
 %
 % Mentionnons aussi l'extension \textsf{tdsfrmath}~\cite{FRM} de Yvon Henel
 % qui fournit beaucoup de commandes francisées.
+% 
 %
 % \section{Utilisation}
 %
@@ -147,25 +152,24 @@
 % et peu d'auteurs la respectent.
 % La mise en œuvre automatique de cette recommandation est le principal bénéfice 
 % de \textsf{frenchmath} (comme de  \textsf{mafr}).
+% Par défaut |\[ P(X)=\sum_{i=0}^{n}a_i X^i \]| donne avec \textsf{frenchmath}
+% \[ P(X)=\sum_{i=0}^{n}a_i X^i \]
 %
-% \medskip
-% \DescribeEnv{capsup, capsit}
-% L'extension \textsf{frenchmath} possède deux options : |capsup| (par défaut) et |capsit|.
-% Avec |capsit|, les majuscules du mode mathématique sont composées automatiquement
-% en italique et avec |capsup|
-% en forme droite (dans la famille de fonte par défaut, généralement romain).
-% Quelque soit l'option choisie, il est toujours possible de changer l'aspect 
+% \DescribeEnv{capsit}
+% L'extension \textsf{frenchmath} possède une option : |capsit|,
+% qui permet de conserver la composition des majuscules du mode mathématique
+% en italique (dans la famille de fonte par défaut).
+% Que l'option soit activée ou pas, il est toujours possible de changer l'aspect 
 % d'une lettre particulière, avec les macros \LaTeX\ |\mathrm| et |\mathit|.
-% Par défaut |\[ P(X)=\sum_{i=0}^{n}a_i X^i \]| donne
-% \[ P(X)=\sum_{i=0}^{n}a_i X^i \]
 %
 % \subsection{Virgules et point-virgule}
 % \StandardMathComma
 % Dans le mode mathématique de \LaTeX, la virgule est toujours, par défaut, 
-% un symbole de ponctuation qui sera donc suivi d'une espace.
+% un symbole de ponctuation et sera donc suivi d'une espace.
 % Ceci est légitime dans un intervalle :
 % |$[a,b]$| donne $[a,b]$, mais pas pour un nombre en français : |$12,5$| donne $12,5$
-% au lieu de \DecimalMathComma $12,5$.
+% \DecimalMathComma
+% au lieu de $12,5$.
 % L'extension \textsf{babel}, avec l'option |french|~\cite{BABEL}, fournit deux bascules :
 % |\DecimalMathComma| et |\StandardMathComma|, qui permettent d'adapter
 % le comportement de la virgule du mode mathématique.
@@ -182,21 +186,22 @@
 % (sans espace), sinon c'est un caractère de ponctuation.
 % \end{itemize}
 % Cette deuxième approche parait meilleure, néanmoins \textsf{ncccomma}
-% ne fonctionne pas avec l'extension \textsf{numprint} 
-% lorsque celle-ci est chargée avec l'option \texttt{autolanguage}
-% \footnote{L'option \texttt{autolanguage} de \textsf{numprint} utilisé 
+% ne fonctionne pas avec avec l'option \texttt{autolanguage}
+% \footnote{L'option \texttt{autolanguage} de \textsf{numprint} utilisée 
 % conjointement avec l'option \texttt{french} de \textsf{babel} garantit un espacement
 % correct entre les groupes de trois chiffres dans les grands nombres,
 % qui doit être une espace insécable et non dilatable~\cite{RTIN},
-% légèrement plus grand que l'espace que l'on obtient sans cette option.}.
-% Par contre \textsf{icomma} fonctionne mais à condition d'être chargé postérieurement.
-% Vu son intérêt cette extension est automatiquement chargée par \textsf{frenchmath}.
-% Il faudra donc prendre garde à appeler, dans le préambule, |\usepackage{frenchmath}|
-% \emph{après} un éventuel |\usepackage[autolanguage]{numprint}|.
+% légèrement plus grande que l'espace que l'on obtient sans cette option.}
+% de l'extension \textsf{numprint}.
+% Par contre \textsf{icomma} fonctionne et était utilisé 
+% jusqu'à la version 1.5 de \textsf{frenchmath}.
+% Un code proposé par Jean-François Burnol permet, depuis la version 1.6, d'utiliser
+% \textsf{ncccomma} qui sera donc chargée par \textsf{frenchmath}
+% à la place de \textsf{icomma}.
 %
 % Mentionnons enfin l'article \emph{Intelligent commas} de Claudio Beccari~\cite{BECC}
-% qui propose une solution simplifiée par rapport à \textsf{ncccomma} mais qui
-% ne fonctionne pas mieux.
+% qui propose une solution simplifiée par rapport à \textsf{ncccomma} mais dont
+% l'avantage est discutable. 
 %
 % \medskip
 % Lorsque l'on utilise l'extension \textsf{pstricks-add} de \textsf{PSTricks}
@@ -211,11 +216,11 @@
 % $x\in [0,25 \PV 3,75 ]$ sans \textsf{frenchmath} et $x\in [0,25; 3,75]$ 
 % avec \textsf{frenchmath} ;
 % le comportement de \og ;\fg devient identique à celui de \og:\fg
+% \StandardMathComma
 % \footnote{Un autre problème d'espacement, non spécifique au français,
 % se pose avec les délimiteurs $[$ et $]$,
-% par exemple  $x \in ]0, \pi[$. Une solution est proposée
-% dans l'extension \textsf{mismath}.}. 
-% \StandardMathComma
+% par exemple  $x \in ]0, \uppi[$. L'extension \textsf{mismath}
+% fournit une solution à ce problème.}. 
 %
 % \subsection{Quelques macros et alias utiles}
 %
@@ -240,9 +245,6 @@
 % \medskip
 % \DescribeMacro{\vide}
 % Le symbole $\vide$ 
-% \footnote{\LaTeX\ fournit la commande \texttt{\bslash o} qui compose
-% également un O barré, mais trop décalé vers le bas (pour l'ensemble vide) : $S=\o$,
-% alors qu'avec \texttt{\bslash vide} on obtient $S=\vide$.}
 % s'obtient avec |\vide| (alias de |\varnothing| de l'extension \textsf{amssymb}) ;
 % il diffère de la version anglaise 
 % obtenue avec |\emptyset| : $\emptyset$.*
@@ -263,7 +265,7 @@
 % \medskip
 % \DescribeMacro{\cmod}
 % Bien que \LaTeX\ propose par défaut le modulo entre parenthèses, avec |\pmod|, 
-% qui est d'usage en français, on peut vouloir composer  un modulo entre crochets,
+% qui est standard aussi en français, on peut vouloir composer  un modulo entre crochets,
 % ce que permet la commande |\cmod| en respectant le bon espacement
 % propre au modulo : $ 5 \equiv 53 \cmod{12}$.
 %
@@ -275,7 +277,7 @@
 % \footnote{Cette dernière n'est pas implémentée en standard dans \LaTeX\ 
 % (mais dans \textsf{mismath}).}.
 %
-% \newpage
+% \pagebreak
 % \DescribeMacro{\card} \DescribeMacro{\Card}
 % Pour le cardinal d'un ensemble, nous proposons |\card|, cité dans~\cite{RTIN} et \cite{AA}, 
 % ou |\Card|, d'usage courant (cf. Wikipedia).
@@ -297,13 +299,16 @@
 % et l'espace vectoriel engendré par une famille de vecteurs avec |\Vect|.
 %
 % \medskip
-% \DescribeMacro{\ch} \DescribeMacro{\sh} \DescribeMacro{\tgh}
-% En principe, les fonctions hyperboliques s'écrivent en français avec les macros \LaTeX\ standard
-% |\cosh, \sinh, \tanh| ; les écritures $\ch x$, $\sh x$ et $\tgh x$ ne sont la norme
+% \DescribeMacro{\ch} \DescribeMacro{\sh} \DescribeMacro{\th}
+% En principe, les fonctions hyperboliques s'écrivent en français 
+% avec les macros \LaTeX\ standard |\cosh|, |\sinh|, |\tanh| ; 
+% les écritures $\ch x$, $\sh x$ et $\th x$ ne sont la norme
 % qu'avec les langues d'Europe de l'Est~\cite{COMP}, néanmoins ces écritures
 % sont aussi utilisées en France~\cite{RTIN}. 
-% On les obtient avec les commandes |\ch|, |\sh| et |\tgh|
-% \footnote{La commande \texttt{\bslash th} existe déjà et produit $\th$.}.
+% On les obtient avec les commandes |\ch|, |\sh| et |\th|
+% \footnote{La commande \texttt{\bslash th} existe déjà (pour le mode texte uniquement) ;
+% elle a été redéfinie, uniquement pour le mode mathématique, à la place
+% de l'ancienne commande \texttt{\bslash tgh}, désormais obsolète.}.
 %
 % \subsection{Bases et repères}
 %
@@ -333,7 +338,6 @@
 \RequirePackage{ifthen}
 \newboolean{capsit}
 \DeclareOption{capsit}{\setboolean{capsit}{true}}
-\DeclareOption{capsup}{\setboolean{capsit}{false}} % valeur par défaut
 \ProcessOptions \relax
 
 \RequirePackage{mathrsfs} % fournit les majuscules cursives
@@ -340,49 +344,56 @@
 \RequirePackage{amssymb} % fournit \leqslant, \geqslant et \varnothing
 \RequirePackage{amsopn} % fournit \DeclareMathOperator
 \RequirePackage{xspace} % utile pour les commandes \curs, \ssi, \Oij
-\RequirePackage{icomma} % virgule intelligente
-
-\DeclareSymbolFont{UpSh}{\encodingdefault}{\familydefault}{m}{n} 
+% \RequirePackage{icomma} 
+\RequirePackage{ncccomma} % virgule intelligente
+\AtBeginDocument{\mathcode`\,="8000\relax
+    \@ifpackageloaded{babel}{\addto\extrasfrench{\mathcode`\,="8000\relax}}{}}
 %    \end{macrocode}
-% L'option \texttt{capsup} redéfinit toutes les lettres majuscules
+% Merci à J.F. Burnol pour ce patch permettant d'utiliser \textsf{ncccomma}
+% à la place de \textsf{icomma}, ainsi que pour l'amélioration du code ci-après,
+% redéfinissant les majuscules mathématiques.
+%
+% Sauf avec l'option \texttt{capsit}, on redéfinit toutes les lettres majuscules
 % du mode mathématique ; |\AtBeginDocument| est nécessaire pour que 
-% ces définitions soient prises en compte avec l'extension \textsf{beamer}.
+% ces définitions soient prises en compte avec la classe \textsf{beamer}
+% par exemple.
 % \smallskip
 %    \begin{macrocode}
+
 \ifthenelse{\boolean{capsit}}{}{\AtBeginDocument{
-    \DeclareMathSymbol{A}\mathalpha{UpSh}{`A} %'A codage octal du A
-    \DeclareMathSymbol{B}\mathalpha{UpSh}{`B}
-    \DeclareMathSymbol{C}\mathalpha{UpSh}{`C}
-    \DeclareMathSymbol{D}\mathalpha{UpSh}{`D}
-    \DeclareMathSymbol{E}\mathalpha{UpSh}{`E}
-    \DeclareMathSymbol{F}\mathalpha{UpSh}{`F}
-    \DeclareMathSymbol{G}\mathalpha{UpSh}{`G}
-    \DeclareMathSymbol{H}\mathalpha{UpSh}{`H}
-    \DeclareMathSymbol{I}\mathalpha{UpSh}{`I}
-    \DeclareMathSymbol{J}\mathalpha{UpSh}{`J}
-    \DeclareMathSymbol{K}\mathalpha{UpSh}{`K}
-    \DeclareMathSymbol{L}\mathalpha{UpSh}{`L}
-    \DeclareMathSymbol{M}\mathalpha{UpSh}{`M}
-    \DeclareMathSymbol{N}\mathalpha{UpSh}{`N}
-    \DeclareMathSymbol{O}\mathalpha{UpSh}{`O}
-    \DeclareMathSymbol{P}\mathalpha{UpSh}{`P}
-    \DeclareMathSymbol{Q}\mathalpha{UpSh}{`Q}
-    \DeclareMathSymbol{R}\mathalpha{UpSh}{`R}
-    \DeclareMathSymbol{S}\mathalpha{UpSh}{`S}
-    \DeclareMathSymbol{T}\mathalpha{UpSh}{`T}
-    \DeclareMathSymbol{U}\mathalpha{UpSh}{`U}
-    \DeclareMathSymbol{V}\mathalpha{UpSh}{`V}
-    \DeclareMathSymbol{W}\mathalpha{UpSh}{`W}
-    \DeclareMathSymbol{X}\mathalpha{UpSh}{`X}
-    \DeclareMathSymbol{Y}\mathalpha{UpSh}{`Y}
-    \DeclareMathSymbol{Z}\mathalpha{UpSh}{`Z}
-}}
+        \DeclareMathSymbol{A}\mathalpha{operators}{`A} %'A codage octal du 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}
+    }}
+\DeclareMathSymbol{;}\mathbin{operators}{'73} % \mathpunct à l'origine
 \AtBeginDocument{\@ifpackageloaded{pstricks-add}{\psset{comma=true}}{}}
-\DeclareMathSymbol{;}\mathbin{UpSh}{059} % \mathpunct à l'origine
 
 \newcommand*\curs[1]{\ensuremath{\mathscr{#1}}\xspace}
-\newcommand\infeg{\leqslant} 
-\newcommand\supeg{\geqslant} 
+\newcommand\infeg{\leqslant}
+\newcommand\supeg{\geqslant}
 \newcommand\vide{\varnothing}
 \newcommand\paral{\mathrel{/\!\!/}} % \parallel existe déjà : ||
 \newcommand\ssi{si, et seulement si,\xspace}
@@ -398,48 +409,49 @@
 \DeclareMathOperator{\Vect}{\Vect}
 \DeclareMathOperator{\ch}{ch}
 \DeclareMathOperator{\sh}{sh}
-\DeclareMathOperator{\tgh}{th} %\th existe déjà
+\AtBeginDocument{\let\oldth\th %\th existe déjà (mode texte uniquement)
+    \renewcommand{\th}{\TextOrMath{\oldth}{\mathop{\operatorfont th}}}
+}
+\PackageWarningNoLine{frenchmath}{
+    command \bslash tgh in now obsolete, use \bslash th instead
+}
 
 \newcommand\@Oij{\ensuremath{
-    \left(O, \vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
+        \left(O, \vec{\imath}, \vec{\jmath}\,\right)}\xspace
 }
 \newcommand\@@Oij{\ensuremath{
-    \left(O ; \vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
+        \left(O ; \vec{\imath}, \vec{\jmath}\,\right)}\xspace
 }
 \newcommand\Oij{\@ifstar{\@@Oij}{\@Oij}}
 
 \newcommand\@Oijk{\ensuremath{
-    \left(O, \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath}, 
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(O, \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
 \newcommand\@@Oijk{\ensuremath{
-    \left(O ; \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath}, 
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(O ; \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
 \newcommand\Oijk{\@ifstar{\@@Oijk}{\@Oijk}}
 
 \newcommand\@Ouv{\ensuremath{
-    \left(O, \vec{u}, \vec{v}\,\right)}\xspace
+        \left(O, \vec{u}, \vec{v}\,\right)}\xspace
 }
 \newcommand\@@Ouv{\ensuremath{
-    \left(O ; \vec{u}, \vec{v}\,\right)}\xspace
+        \left(O ; \vec{u}, \vec{v}\,\right)}\xspace
 }
 \newcommand\Ouv{\@ifstar{\@@Ouv}{\@Ouv}}
 
 \AtBeginDocument{\renewcommand\ij{\ensuremath{
-    \left(\vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
-}}
+            \left(\vec{\imath}, \vec{\jmath}\,\right)}\xspace
+    }}
 \newcommand\ijk{\ensuremath{
-    \left(\vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath}, 
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(\vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
-
 %    \end{macrocode}
 %
 % \begin{thebibliography}{19}
@@ -447,7 +459,8 @@
 % Édition du 26/08/2002.
 % \bibitem{IGEN} \emph{Composition des textes scientifiques}.
 % Inspection générale de mathématiques (IGEN-DESCO), 06/12/2001.
-% \bibitem{AA} \emph{Règles françaises de typographie mathématique}. Alexandre André, 02/09/2015.
+% \bibitem{AA} \emph{Règles françaises de typographie mathématique}. 
+% Alexandre André, 02/09/2015.
 % \bibitem{ES} \emph{Le petit typographe rationnel}. Eddie Saudrais, 20/03/2000.
 % \bibitem{ISO} \emph{Norme ISO 31-11: 1992 et sa révision ISO 80000-2: 2009 (extraits)}.
 % http://aalem.free.fr/maths/mathematiques.pdf.

Modified: trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.ins	2022-10-17 20:17:33 UTC (rev 64727)
+++ trunk/Master/texmf-dist/source/latex/frenchmath/frenchmath.ins	2022-10-17 20:17:44 UTC (rev 64728)
@@ -1,5 +1,5 @@
 %%
-%% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier at ac-toulouse.fr>
+%% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier at 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
@@ -21,7 +21,7 @@
 
 This is a generated file.
 
-Copyright (C) 2019-2020 by Antoine Missier <antoine.missier at ac-toulouse.fr>
+Copyright (C) 2019-2022 by Antoine Missier <antoine.missier at 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

Modified: trunk/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty	2022-10-17 20:17:33 UTC (rev 64727)
+++ trunk/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty	2022-10-17 20:17:44 UTC (rev 64728)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier at ac-toulouse.fr>
+%% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier at 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,11 +22,10 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{frenchmath}
-    [2020/11/02 v1.5 .dtx frenchmath file]
+[2022/10/16 v1.6 .dtx frenchmath file]
 \RequirePackage{ifthen}
 \newboolean{capsit}
 \DeclareOption{capsit}{\setboolean{capsit}{true}}
-\DeclareOption{capsup}{\setboolean{capsit}{false}} % valeur par défaut
 \ProcessOptions \relax
 
 \RequirePackage{mathrsfs} % fournit les majuscules cursives
@@ -33,39 +32,40 @@
 \RequirePackage{amssymb} % fournit \leqslant, \geqslant et \varnothing
 \RequirePackage{amsopn} % fournit \DeclareMathOperator
 \RequirePackage{xspace} % utile pour les commandes \curs, \ssi, \Oij
-\RequirePackage{icomma} % virgule intelligente
+\RequirePackage{ncccomma} % virgule intelligente
+\AtBeginDocument{\mathcode`\,="8000\relax
+    \@ifpackageloaded{babel}{\addto\extrasfrench{\mathcode`\,="8000\relax}}{}}
 
-\DeclareSymbolFont{UpSh}{\encodingdefault}{\familydefault}{m}{n}
 \ifthenelse{\boolean{capsit}}{}{\AtBeginDocument{
-    \DeclareMathSymbol{A}\mathalpha{UpSh}{`A} %'A codage octal du A
-    \DeclareMathSymbol{B}\mathalpha{UpSh}{`B}
-    \DeclareMathSymbol{C}\mathalpha{UpSh}{`C}
-    \DeclareMathSymbol{D}\mathalpha{UpSh}{`D}
-    \DeclareMathSymbol{E}\mathalpha{UpSh}{`E}
-    \DeclareMathSymbol{F}\mathalpha{UpSh}{`F}
-    \DeclareMathSymbol{G}\mathalpha{UpSh}{`G}
-    \DeclareMathSymbol{H}\mathalpha{UpSh}{`H}
-    \DeclareMathSymbol{I}\mathalpha{UpSh}{`I}
-    \DeclareMathSymbol{J}\mathalpha{UpSh}{`J}
-    \DeclareMathSymbol{K}\mathalpha{UpSh}{`K}
-    \DeclareMathSymbol{L}\mathalpha{UpSh}{`L}
-    \DeclareMathSymbol{M}\mathalpha{UpSh}{`M}
-    \DeclareMathSymbol{N}\mathalpha{UpSh}{`N}
-    \DeclareMathSymbol{O}\mathalpha{UpSh}{`O}
-    \DeclareMathSymbol{P}\mathalpha{UpSh}{`P}
-    \DeclareMathSymbol{Q}\mathalpha{UpSh}{`Q}
-    \DeclareMathSymbol{R}\mathalpha{UpSh}{`R}
-    \DeclareMathSymbol{S}\mathalpha{UpSh}{`S}
-    \DeclareMathSymbol{T}\mathalpha{UpSh}{`T}
-    \DeclareMathSymbol{U}\mathalpha{UpSh}{`U}
-    \DeclareMathSymbol{V}\mathalpha{UpSh}{`V}
-    \DeclareMathSymbol{W}\mathalpha{UpSh}{`W}
-    \DeclareMathSymbol{X}\mathalpha{UpSh}{`X}
-    \DeclareMathSymbol{Y}\mathalpha{UpSh}{`Y}
-    \DeclareMathSymbol{Z}\mathalpha{UpSh}{`Z}
-}}
+        \DeclareMathSymbol{A}\mathalpha{operators}{`A} %'A codage octal du 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}
+    }}
+\DeclareMathSymbol{;}\mathbin{operators}{'73} % \mathpunct à l'origine
 \AtBeginDocument{\@ifpackageloaded{pstricks-add}{\psset{comma=true}}{}}
-\DeclareMathSymbol{;}\mathbin{UpSh}{059} % \mathpunct à l'origine
 
 \newcommand*\curs[1]{\ensuremath{\mathscr{#1}}\xspace}
 \newcommand\infeg{\leqslant}
@@ -85,49 +85,50 @@
 \DeclareMathOperator{\Vect}{\Vect}
 \DeclareMathOperator{\ch}{ch}
 \DeclareMathOperator{\sh}{sh}
-\DeclareMathOperator{\tgh}{th} %\th existe déjà
+\AtBeginDocument{\let\oldth\th %\th existe déjà (mode texte uniquement)
+    \renewcommand{\th}{\TextOrMath{\oldth}{\mathop{\operatorfont th}}}
+}
+\PackageWarningNoLine{frenchmath}{
+    command \bslash tgh in now obsolete, use \bslash th instead
+}
 
 \newcommand\@Oij{\ensuremath{
-    \left(O, \vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
+        \left(O, \vec{\imath}, \vec{\jmath}\,\right)}\xspace
 }
 \newcommand\@@Oij{\ensuremath{
-    \left(O ; \vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
+        \left(O ; \vec{\imath}, \vec{\jmath}\,\right)}\xspace
 }
 \newcommand\Oij{\@ifstar{\@@Oij}{\@Oij}}
 
 \newcommand\@Oijk{\ensuremath{
-    \left(O, \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(O, \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
 \newcommand\@@Oijk{\ensuremath{
-    \left(O ; \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(O ; \vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
 \newcommand\Oijk{\@ifstar{\@@Oijk}{\@Oijk}}
 
 \newcommand\@Ouv{\ensuremath{
-    \left(O, \vec{u}, \vec{v}\,\right)}\xspace
+        \left(O, \vec{u}, \vec{v}\,\right)}\xspace
 }
 \newcommand\@@Ouv{\ensuremath{
-    \left(O ; \vec{u}, \vec{v}\,\right)}\xspace
+        \left(O ; \vec{u}, \vec{v}\,\right)}\xspace
 }
 \newcommand\Ouv{\@ifstar{\@@Ouv}{\@Ouv}}
 
 \AtBeginDocument{\renewcommand\ij{\ensuremath{
-    \left(\vec{\imath}, \vec{\jmath}\,\right)
-    }\xspace
-}}
+            \left(\vec{\imath}, \vec{\jmath}\,\right)}\xspace
+    }}
 \newcommand\ijk{\ensuremath{
-    \left(\vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
-    \vec{\vphantom{t}\smash{k}}\,\right)
+        \left(\vec{\vphantom{t}\imath}, \vec{\vphantom{t}\jmath},
+        \vec{\vphantom{t}\smash{k}}\,\right)
     }\xspace
 }
 
-
 \endinput
 %%
 %% End of file `frenchmath.sty'.



More information about the tex-live-commits mailing list.