summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/frenchmath
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-26 20:38:23 +0000
committerKarl Berry <karl@freefriends.org>2022-12-26 20:38:23 +0000
commit3e30ee9dc8bcc3b69646c254b6da834767f866f6 (patch)
tree22ff93d89065f88978d0fbc841310b8ee80bb89d /Master/texmf-dist/tex/latex/frenchmath
parentebf911eca7fd5774313ec4494015f4dd17cd8597 (diff)
frenchmath (26dec22)
git-svn-id: svn://tug.org/texlive/trunk@65363 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/frenchmath')
-rw-r--r--Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty34
1 files changed, 19 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty b/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty
index 6d7b1d00a49..494ea5f5672 100644
--- a/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty
+++ b/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty
@@ -15,17 +15,19 @@
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
-%% http://www.latex-project.org/lppl.txt
+%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{frenchmath}
- [2022/11/15 v2.2 .dtx frenchmath file]
+ [2022/12/26 v2.3 .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}
@@ -44,10 +46,15 @@
}
}
\RequirePackage{amsopn} % fournit \DeclareMathOperator
+\ifthenelse{\boolean{lgrmath}}{
+ \@ifpackageloaded{lgrmath}{}{
+ \RequirePackage[font=fcm,style=french]{lgrmath}}
+}{}
\ifthenelse{\boolean{upgreek}}{
\@ifpackageloaded{upgreek}{}{\RequirePackage[Euler]{upgreek}}
}{}
\RequirePackage{xspace} % utile pour les commandes \curs, \ssi, \Oij
+\RequirePackage{ibrackets} % intelligent brackets
\RequirePackage{ncccomma} % depuis frenchmath 1.6
\AtBeginDocument{\mathcode`\,="8000\relax
\@ifpackageloaded{babel}{
@@ -88,10 +95,11 @@
\ifthenelse{\boolean{upgreek}}{
\@ifundefined{italpha}{\let\italpha\alpha}{
- \PackageWarningNoLine{frenchmath}{Italicized Greek
- \bslash italpha already exist \MessageBreak
+ \PackageWarningNoLine{frenchmath}{Command
+ \string\italpha\space already exist \MessageBreak
and will not be redefined, \MessageBreak
- no more warning for the other letters, except pi}
+ no more warning for the other Greek letters, \MessageBreak
+ except pi}
}
\@ifundefined{itbeta}{\let\itbeta\beta}{}
\@ifundefined{itgamma}{\let\itgamma\gamma}{}
@@ -107,8 +115,8 @@
\@ifundefined{itnu}{\let\itnu\nu}{}
\@ifundefined{itxi}{\let\itxi\xi}{}
\@ifundefined{itpi}{\let\itpi\pi}{
- \PackageWarningNoLine{frenchmath}{Italicized Greek
- \bslash itpi already exist \MessageBreak
+ \PackageWarningNoLine{frenchmath}{Command
+ \string\itpi\space already exist \MessageBreak
and will not be redefined}
}
\@ifundefined{itrho}{\let\itrho\rho}{}
@@ -173,9 +181,7 @@
}{}
\AtBeginDocument{\@ifpackageloaded{pstricks-add}{\psset{comma=true}}{}}
-\DeclareMathSymbol{;}\mathbin{operators}{'73} % \mathpunct à l'origine
-\DeclareMathSymbol{]}\mathord{operators}{093} % \mathclose à l'origine
-\DeclareMathSymbol{[}\mathord{operators}{091} % \mathopen à l'origine
+\DeclareMathSymbol{;}{\mathbin}{operators}{'73} % \mathpunct à l'origine
\newcommand*\curs[1]{\ensuremath{\mathscr{#1}}\xspace}
\newcommand\infeg{\leqslant}
@@ -194,15 +200,13 @@
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\rg}{rg}
-\DeclareMathOperator{\Vect}{\Vect}
+\DeclareMathOperator{\Vect}{Vect}
\DeclareMathOperator{\ch}{ch}
\DeclareMathOperator{\sh}{sh}
\AtBeginDocument{\let\oldth\th %\th existe déjà (mode texte)
\renewcommand\th{\TextOrMath{\oldth}{\operatorname{th}}}}
-{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % commande \bslash
-\PackageWarningNoLine{frenchmath}{Command \bslash tgh in now obsolete,
- \MessageBreak
- use \bslash th instead}
+\DeclareMathOperator{\cosec}{cosec}
+\DeclareMathOperator{\cosech}{cosech}
\newcommand\@Oij{%
\ensuremath{\left(O, \vec{\imath}, \vec{\jmath}\,\right)}\xspace}