diff --git a/commun/commun.sty b/commun/commun.sty index 1505c8d..7a73670 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -43,14 +43,15 @@ \RequirePackage{luatextra} % charge fontspec => fontenc % \defaultfontfeatures{Ligatures=TeX} \else - \RequirePackage[french]{babel} % => polyglossia + \RequirePackage[french]{babel} % => polyglossia \RequirePackage[utf8]{inputenc} % => fontspec \RequirePackage[T1]{fontenc} % => fontspec % \RequirePackage[babel=true,kerning=true]{microtype} \fi % fonts -\RequirePackage{libertine} +\RequirePackage{inconsolata} +% \RequirePackage{libertine} \RequirePackage{pifont} \RequirePackage{fontawesome} \RequirePackage[right]{eurosym} @@ -72,9 +73,8 @@ % maths \RequirePackage{amsmath, amsthm, amsfonts, amssymb} -% \RequirePackage{amsmath, amsthm, amssymb} \RequirePackage{tkz-euclide} -\usetikzlibrary{arrows, calc, positioning, shapes.geometric, shadows, snakes, tikzmark} +\usetikzlibrary{arrows, calc, patterns, positioning, shapes.geometric, shadows, snakes, tikzmark} \RequirePackage{calc} \RequirePackage{fourier} \RequirePackage{pgfplots} @@ -83,6 +83,9 @@ \RequirePackage{asymptote} \RequirePackage{mathrsfs} \RequirePackage{xlop} +% \RequirePackage{pst-plot,pst-tree,pstricks,pst-node} +% \RequirePackage{pst-eucl} +% \RequirePackage{pstricks-add} % tableaux de signe %\RequirePackage{tabvar} % replaced by pdftabvar from pdfadd @@ -99,7 +102,6 @@ \RequirePackage{array} \RequirePackage{tabularx} \RequirePackage{makecell} -\RequirePackage{multicol} \RequirePackage{multirow} \RequirePackage{boldline} \RequirePackage{colortbl} @@ -116,13 +118,13 @@ \RequirePackage{comment} \RequirePackage{caption} \RequirePackage[outputdir=./build]{minted} -\RequirePackage{inconsolata} \RequirePackage{tasks} \RequirePackage{dashrule} \RequirePackage{qrcode} \RequirePackage{verse} \RequirePackage{nicefrac} \RequirePackage{blindtext} +\RequirePackage{wasysym} %-- @@ -168,9 +170,9 @@ % % -% +% % Tikz -% +% \tikzstyle{arrow} = [thick,->,>=stealth] % Tableau @@ -295,6 +297,10 @@ \kern\dimexpr-\fboxsep-\fboxrule\relax }\par\kern#2 } + +\NewDocumentCommand \colsep{ G{1} }{ + \setlength{\columnseprule}{#1} +} %-- @@ -429,7 +435,7 @@ \else \newcommand\newFontCommand[2]{% \expandafter\newcommand\csname #1\endcsname{\usefont{T1}{#2}{m}{n}}} - + \newFontCommand{Jd}{j.d.} \fi @@ -471,6 +477,7 @@ % Create some color commands \newColorCommand{red} \newColorCommand{black} +\newColorCommand{blue} \newColorCommand{gray} \newColorCommand{green} \newColorCommand{lapislazuli} diff --git a/jl-cours/jl-cours.cls b/jl-cours/jl-cours.cls index 4f57ead..94e1ce7 100644 --- a/jl-cours/jl-cours.cls +++ b/jl-cours/jl-cours.cls @@ -74,7 +74,7 @@ % % -\DeclareOptionX{type}[crs]{% +\DeclareOptionX{type}[c]{% \def\type{#1}% } @@ -141,13 +141,15 @@ % \rohead[Exercices]{Exercices} \IfNoValueTF{ \subtitle }{ % \cohead[]{\@title} + \rehead*[]{Exercices} \rohead*[]{Exercices} }{ % \cohead[]{\@title} + \rehead*[]{Exercices - \@subtitle} \rohead*[]{Exercices - \@subtitle} } }{ - \ifthenelse{ \equal{\type}{q} }{ + \ifthenelse{ \equal{\type}{r} }{ % \cohead[\@title]{\@title} % \rohead[Rappels]{Rappels - \@subtitle} % \cohead*[]{\@title} @@ -171,8 +173,7 @@ % \clearpairofpagestyles % set my own numbering form for the footer -\cofoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}} -\cefoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}} +\cfoot*{\thepage\ /\ \pageref{LastPage}} \pagestyle{scrheadings} \setkomafont{pagehead}{\normalfont\bfseries} @@ -357,8 +358,7 @@ %% deactivate page numbering in footer %% \NewDocumentCommand \nonumbering{ }{ - \cefoot*{} - \cofoot*{} + \cfoot*{} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/jl-devoir/jl-devoir.cls b/jl-devoir/jl-devoir.cls index 48028f1..78abd53 100644 --- a/jl-devoir/jl-devoir.cls +++ b/jl-devoir/jl-devoir.cls @@ -69,7 +69,7 @@ % % -\DeclareOptionX{type}[ds]{% +\DeclareOptionX{type}[e]{% \def\type{#1}% } @@ -146,7 +146,7 @@ }{ \ifthenelse{ \equal{\type}{d} }{ \cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}] - {\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}} + {\textbf{MATHÉMATIQUES}\\\textbf{\Jd Devoir maison}} \lohead[NOM :\\Prénom :]{NOM :\\Prénom :} \rohead[\@date\\]{\@date\\} \cehead[]{} diff --git a/shortcuts/shortcuts.sty b/shortcuts/shortcuts.sty index 57efa03..2710192 100644 --- a/shortcuts/shortcuts.sty +++ b/shortcuts/shortcuts.sty @@ -143,6 +143,11 @@ \NewDocumentCommand \n { g } { \num{#1} } + +% use € to print \euro symbol +%% +\catcode `\€=\active +\def €{\euro } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -202,16 +207,22 @@ \ensuremath{ \left(O\: ;\: x\: ;\: y\right) } } -%% vector arrow redefinition +%% frame (O;u;v) %% -\renewcommand{\Vec}[1]{ - \ensuremath{ \overrightarrow{#1\vphantom(} } +\NewDocumentCommand \ouv { } { + \ensuremath{ \left(O\: ;\: \vec{u}\: ;\: \vec{v}\right) } } +%% vector arrow redefinition +%% \renewcommand{\vec}[1]{ - \ensuremath{ \overrightarrow{#1\vphantom(} } + \ensuremath{ \overrightarrow{\, \mathstrut#1 \,} } } +% \renewcommand{\vec}[1]{ +% \ensuremath{ \overrightarrow{#1\vphantom(} } +% } + %% coordinates %% \NewDocumentCommand \coord { s m }{ @@ -381,7 +392,7 @@ %% \nicefrac shortcut %% \NewDocumentCommand \sfrac{ G{1} G{2} } { - \nicefrac{#1}{#2} + \nicefrac{#1}{#2} } %% limits @@ -402,9 +413,24 @@ % \ensuremath{\ell} %} -% %% renewed \bar command -% %% -% \renewcommand{\bar}[1]{\overline{#1}} +%% renewed \bar command +%% +\NewDocumentCommand \barre { g } { + {\overline{\,\mathstrut#1\,}} +} +\RenewDocumentCommand \bar { g } { + {\overline{\,\mathstrut#1\,}} +} + +%% Complex numbers +%% +\NewDocumentCommand \re { G{z} } { + \ensuremath{\operatorname{Re}(#1)} +} + +\NewDocumentCommand \im { G{z} } { + \ensuremath{\operatorname{Im}(#1)} +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%