notebook/packages/macros.sty
2024-08-17 16:15:32 +02:00

57 lines
2.7 KiB
TeX

\ProvidesPackage{packages/macros}
\RequirePackage{amsfonts} % Include missing symbols s.a "Natural Numbers"
\usepackage{amsthm} % for 'proof' environment
% Snippet to add dots to TOC
% Thanks to "user11232" at https://tex.stackexchange.com/questions/53898/how-to-get-lines-with-dots-in-the-table-of-contents-for-sections
%\usepackage{tocloft}
%\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % for parts
%\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % for sections
\newcommand{\N}{\mathbb{N}} % Natural numbers symbol
\newcommand{\Z}{\mathbb{Z}} % Integer symbol
\newcommand{\Q}{\mathbb{Q}} % Rational numbers symbol
\newcommand{\R}{\mathbb{R}} % Real numbers symbol
\newcommand{\C}{\mathbb{C}} % Complex numbers symbol
\newcommand{\Cat}{\mathcal{C}} % Category
\newcommand{\K}{\mathbb{K}} % Corps
\newcommand{\Hq}{\mathbb{H}} % Quaternions numbers symbol
\newcommand{\Ot}{\mathbb{O}} % Octonions numbers symbol
\newcommand{\Se}{\mathbb{S}} % Sedenions numbers symbol
\newcommand{\Pn}{\mathbb{P}} % Sets of all the prime numbers
\newcommand{\false}{{\color{th_colour_red}F}} % New symbol for false value
\newcommand{\true}{{\color{th_colour_green}V}} % New symbol for true value
%\newcommand{\false}{F} % New symbol for false value
%\newcommand{\true}{V} % New symbol for true value
\DeclareMathOperator{\Rel}{\mathcal{R}} % New symbol for binary relations
\DeclarePairedDelimiter{\abs}{|}{|}
\DeclarePairedDelimiter{\card}{|}{|}
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
\DeclarePairedDelimiter{\fractional}{\{}{\}}
\newtheorem{definition}{\lang{Définition}{Definition}}
\newtheorem{theorem}{\lang{Théorème}{Theoreme}}
\newtheorem{lemme}{Lemme}
\newcommandx{\suite}[3][1=n,2=n]{$(#3_{#1})_{#2 \in \N}$}
\newenvironment{definition_sq}{\begin{mdframed}\begin{definition}}{\end{definition}\end{mdframed}}
\newenvironment{theorem_sq}{\begin{mdframed}\begin{theorem}}{\end{theorem}\end{mdframed}}
\newenvironment{lemme_sq}{\begin{mdframed}\begin{lemme}}{\end{lemme}\end{mdframed}}
\newcommand{\norm}[1]{\|#1\|}
\newcommand{\equivalence}{\Leftrightarrow}
\renewcommand{\implies}{\Longrightarrow}
\newcommand{\Limplies}{\Longleftarrow}
\newcommand{\impliespart}{\fbox{$\implies$}}
\newcommand{\Limpliespart}{\fbox{$\Limplies$}}
\DeclareMathOperator{\divides}{\mid}
\DeclareMathOperator{\suchas}{\text{\lang{tel que}{such as}}}
\renewcommand{\function}[3]{#1 : #2 \longrightarrow #3}
\newcommand{\functiondef}[2]{\hspace{15pt}#1 \longmapsto #2}
\newcommand{\otherwise}{\text{\lang{Sinon}{Otherwise}}}
\DeclareMathOperator{\union}{\cup}
\renewcommand{\smallskip}{\vspace{3pt}}
\renewcommand{\medskip}{\vspace{6pt}}
\renewcommand{\bigskip}{\vspace{12pt}}