This commit is contained in:
Jeff Lance 2023-05-07 13:22:45 +02:00
parent d775186b6d
commit ed64145a8a
4 changed files with 58 additions and 25 deletions

View File

@ -50,7 +50,8 @@
\fi \fi
% fonts % fonts
\RequirePackage{libertine} \RequirePackage{inconsolata}
% \RequirePackage{libertine}
\RequirePackage{pifont} \RequirePackage{pifont}
\RequirePackage{fontawesome} \RequirePackage{fontawesome}
\RequirePackage[right]{eurosym} \RequirePackage[right]{eurosym}
@ -72,9 +73,8 @@
% maths % maths
\RequirePackage{amsmath, amsthm, amsfonts, amssymb} \RequirePackage{amsmath, amsthm, amsfonts, amssymb}
% \RequirePackage{amsmath, amsthm, amssymb}
\RequirePackage{tkz-euclide} \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{calc}
\RequirePackage{fourier} \RequirePackage{fourier}
\RequirePackage{pgfplots} \RequirePackage{pgfplots}
@ -83,6 +83,9 @@
\RequirePackage{asymptote} \RequirePackage{asymptote}
\RequirePackage{mathrsfs} \RequirePackage{mathrsfs}
\RequirePackage{xlop} \RequirePackage{xlop}
% \RequirePackage{pst-plot,pst-tree,pstricks,pst-node}
% \RequirePackage{pst-eucl}
% \RequirePackage{pstricks-add}
% tableaux de signe % tableaux de signe
%\RequirePackage{tabvar} % replaced by pdftabvar from pdfadd %\RequirePackage{tabvar} % replaced by pdftabvar from pdfadd
@ -99,7 +102,6 @@
\RequirePackage{array} \RequirePackage{array}
\RequirePackage{tabularx} \RequirePackage{tabularx}
\RequirePackage{makecell} \RequirePackage{makecell}
\RequirePackage{multicol}
\RequirePackage{multirow} \RequirePackage{multirow}
\RequirePackage{boldline} \RequirePackage{boldline}
\RequirePackage{colortbl} \RequirePackage{colortbl}
@ -116,13 +118,13 @@
\RequirePackage{comment} \RequirePackage{comment}
\RequirePackage{caption} \RequirePackage{caption}
\RequirePackage[outputdir=./build]{minted} \RequirePackage[outputdir=./build]{minted}
\RequirePackage{inconsolata}
\RequirePackage{tasks} \RequirePackage{tasks}
\RequirePackage{dashrule} \RequirePackage{dashrule}
\RequirePackage{qrcode} \RequirePackage{qrcode}
\RequirePackage{verse} \RequirePackage{verse}
\RequirePackage{nicefrac} \RequirePackage{nicefrac}
\RequirePackage{blindtext} \RequirePackage{blindtext}
\RequirePackage{wasysym}
%-- %--
@ -295,6 +297,10 @@
\kern\dimexpr-\fboxsep-\fboxrule\relax \kern\dimexpr-\fboxsep-\fboxrule\relax
}\par\kern#2 }\par\kern#2
} }
\NewDocumentCommand \colsep{ G{1} }{
\setlength{\columnseprule}{#1}
}
%-- %--
@ -471,6 +477,7 @@
% Create some color commands % Create some color commands
\newColorCommand{red} \newColorCommand{red}
\newColorCommand{black} \newColorCommand{black}
\newColorCommand{blue}
\newColorCommand{gray} \newColorCommand{gray}
\newColorCommand{green} \newColorCommand{green}
\newColorCommand{lapislazuli} \newColorCommand{lapislazuli}

View File

@ -74,7 +74,7 @@
% %
% %
\DeclareOptionX{type}[crs]{% \DeclareOptionX{type}[c]{%
\def\type{#1}% \def\type{#1}%
} }
@ -141,13 +141,15 @@
% \rohead[Exercices]{Exercices} % \rohead[Exercices]{Exercices}
\IfNoValueTF{ \subtitle }{ \IfNoValueTF{ \subtitle }{
% \cohead[]{\@title} % \cohead[]{\@title}
\rehead*[]{Exercices}
\rohead*[]{Exercices} \rohead*[]{Exercices}
}{ }{
% \cohead[]{\@title} % \cohead[]{\@title}
\rehead*[]{Exercices - \@subtitle}
\rohead*[]{Exercices - \@subtitle} \rohead*[]{Exercices - \@subtitle}
} }
}{ }{
\ifthenelse{ \equal{\type}{q} }{ \ifthenelse{ \equal{\type}{r} }{
% \cohead[\@title]{\@title} % \cohead[\@title]{\@title}
% \rohead[Rappels]{Rappels - \@subtitle} % \rohead[Rappels]{Rappels - \@subtitle}
% \cohead*[]{\@title} % \cohead*[]{\@title}
@ -171,8 +173,7 @@
% \clearpairofpagestyles % \clearpairofpagestyles
% set my own numbering form for the footer % set my own numbering form for the footer
\cofoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}} \cfoot*{\thepage\ /\ \pageref{LastPage}}
\cefoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
\pagestyle{scrheadings} \pagestyle{scrheadings}
\setkomafont{pagehead}{\normalfont\bfseries} \setkomafont{pagehead}{\normalfont\bfseries}
@ -357,8 +358,7 @@
%% deactivate page numbering in footer %% deactivate page numbering in footer
%% %%
\NewDocumentCommand \nonumbering{ }{ \NewDocumentCommand \nonumbering{ }{
\cefoot*{} \cfoot*{}
\cofoot*{}
} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -69,7 +69,7 @@
% %
% %
\DeclareOptionX{type}[ds]{% \DeclareOptionX{type}[e]{%
\def\type{#1}% \def\type{#1}%
} }
@ -146,7 +146,7 @@
}{ }{
\ifthenelse{ \equal{\type}{d} }{ \ifthenelse{ \equal{\type}{d} }{
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}] \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 :} \lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
\rohead[\@date\\]{\@date\\} \rohead[\@date\\]{\@date\\}
\cehead[]{} \cehead[]{}

View File

@ -143,6 +143,11 @@
\NewDocumentCommand \n { g } { \NewDocumentCommand \n { g } {
\num{#1} \num{#1}
} }
% use € to print \euro symbol
%%
\catcode `\€=\active
\def €{\euro }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -202,16 +207,22 @@
\ensuremath{ \left(O\: ;\: x\: ;\: y\right) } \ensuremath{ \left(O\: ;\: x\: ;\: y\right) }
} }
%% vector arrow redefinition %% frame (O;u;v)
%% %%
\renewcommand{\Vec}[1]{ \NewDocumentCommand \ouv { } {
\ensuremath{ \overrightarrow{#1\vphantom(} } \ensuremath{ \left(O\: ;\: \vec{u}\: ;\: \vec{v}\right) }
} }
%% vector arrow redefinition
%%
\renewcommand{\vec}[1]{ \renewcommand{\vec}[1]{
\ensuremath{ \overrightarrow{#1\vphantom(} } \ensuremath{ \overrightarrow{\, \mathstrut#1 \,} }
} }
% \renewcommand{\vec}[1]{
% \ensuremath{ \overrightarrow{#1\vphantom(} }
% }
%% coordinates %% coordinates
%% %%
\NewDocumentCommand \coord { s m }{ \NewDocumentCommand \coord { s m }{
@ -402,9 +413,24 @@
% \ensuremath{\ell} % \ensuremath{\ell}
%} %}
% %% renewed \bar command %% renewed \bar command
% %% %%
% \renewcommand{\bar}[1]{\overline{#1}} \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)}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%