summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/frenchmath/frenchmath.sty
blob: 25b250c1b299a35f9a155308eb79182ecf5286e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
%%
%% This is file `frenchmath.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% frenchmath.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2019-2020 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
%% or (at your option) any later version. The latest version of this
%% license is in:
%% 
%%    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}
    [2020/11/02 v1.5 .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
\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}
\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}
}}
\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\vide{\varnothing}
\newcommand\paral{\mathrel{/\!\!/}} % \parallel existe déjà : ||
\newcommand\ssi{si, et seulement si,\xspace}
\newcommand*\cmod[1]{\quad[#1]}

\DeclareMathOperator{\pgcd}{pgcd}
\DeclareMathOperator{\ppcm}{ppcm}
\DeclareMathOperator{\card}{card}
\DeclareMathOperator{\Card}{Card}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\rg}{rg}
\DeclareMathOperator{\Vect}{\Vect}
\DeclareMathOperator{\ch}{ch}
\DeclareMathOperator{\sh}{sh}
\DeclareMathOperator{\tgh}{th} %\th existe déjà

\newcommand\@Oij{\ensuremath{
    \left(O, \vec{\imath}, \vec{\jmath}\,\right)
    }\xspace
}
\newcommand\@@Oij{\ensuremath{
    \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)
    }\xspace
}
\newcommand\@@Oijk{\ensuremath{
    \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
}
\newcommand\@@Ouv{\ensuremath{
    \left(O ; \vec{u}, \vec{v}\,\right)}\xspace
}
\newcommand\Ouv{\@ifstar{\@@Ouv}{\@Ouv}}

\AtBeginDocument{\renewcommand\ij{\ensuremath{
    \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)
    }\xspace
}


\endinput
%%
%% End of file `frenchmath.sty'.