Moved user packages and references to subdirectories
This commit is contained in:
30
packages/language_selector.sty
Normal file
30
packages/language_selector.sty
Normal file
@ -0,0 +1,30 @@
|
||||
\ProvidesPackage{language_selector}
|
||||
|
||||
\DeclareOption{french}{
|
||||
\def\langoption{french}
|
||||
\newcommand{\lang}[2]{#1}
|
||||
\newcommand{\langtitle}[2]{\title{#1}}
|
||||
\newcommand{\langchapter}[2]{\chapter{#1}}
|
||||
\newcommand{\langsection}[2]{\section{#1}}
|
||||
\newcommand{\langsubsection}[2]{\subsection{#1}}
|
||||
\newcommand{\langsubsubsection}[2]{\subsubsection{#1}}
|
||||
\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#1}}
|
||||
\newcommand{\langnewcites}[3]{\newcites{#1}{#2}}
|
||||
}
|
||||
|
||||
\DeclareOption{english}{
|
||||
\def\langoption{english}
|
||||
\newcommand{\lang}[2]{#2}
|
||||
\newcommand{\langtitle}[2]{\title{#2}}
|
||||
\newcommand{\langchapter}[2]{\chapter{#2}}
|
||||
\newcommand{\langsection}[2]{\section{#2}}
|
||||
\newcommand{\langsubsection}[2]{\subsection{#2}}
|
||||
\newcommand{\langsubsubsection}[2]{\subsubsection{#2}}
|
||||
\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#2}}
|
||||
\newcommand{\langnewcites}[3]{\newcites{#1}{#3}}
|
||||
}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
% Format
|
||||
\RequirePackage[\langoption]{babel}
|
48
packages/macros.sty
Normal file
48
packages/macros.sty
Normal file
@ -0,0 +1,48 @@
|
||||
\ProvidesPackage{macros}
|
||||
|
||||
\RequirePackage{amsfonts} % Include missing symbols s.a "Natural Numbers"
|
||||
|
||||
% 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{\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
|
||||
\newtheorem{definition}{Définition}
|
||||
%\newtheorem{definition}{Definition}
|
||||
\newtheorem{theorem}{Théorème}
|
||||
%\newtheorem{theorem}{Theoreme}
|
||||
\newtheorem{lemme}{Lemme}
|
||||
%\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{\equivalance}{\Leftrightarrow}
|
||||
\renewcommand{\implies}{\Rightarrow}
|
||||
\DeclareMathOperator{\suchas}{\text{tel que}}
|
||||
%\DeclareMathOperator{\suchas}{\text{such as}}
|
||||
\renewcommand{\function}[3]{#1 : #2 \longrightarrow #3}
|
||||
\newcommand{\functiondef}[2]{\hspace{15pt}#1 \longmapsto #2}
|
||||
\newcommand{\otherwise}{\text{Sinon}}
|
||||
%\newcommand{\otherwise}{\text{Otherwise}}
|
||||
|
||||
\renewcommand{\smallskip}{\vspace{3pt}}
|
||||
\renewcommand{\medskip}{\vspace{6pt}}
|
||||
\renewcommand{\bigskip}{\vspace{12pt}}
|
47
packages/themes.sty
Normal file
47
packages/themes.sty
Normal file
@ -0,0 +1,47 @@
|
||||
\ProvidesPackage{themes}
|
||||
|
||||
% Add many functions for colour themes
|
||||
\RequirePackage{xcolor}
|
||||
|
||||
\DeclareOption{default}{\OptionNotUsed}
|
||||
\definecolor{th_colour_bg} {RGB} {255, 255, 255}
|
||||
\definecolor{th_colour_fg} {RGB} {0, 0, 0 }
|
||||
\definecolor{th_colour_cl} {RGB} {68, 71, 90 }
|
||||
\definecolor{th_colour_comment} {RGB} {98, 114, 164}
|
||||
\definecolor{th_colour_cyan} {RGB} {139, 233, 253}
|
||||
\definecolor{th_colour_green} {RGB} {0, 255, 0 }
|
||||
\definecolor{th_colour_orange} {RGB} {255, 184, 108}
|
||||
\definecolor{th_colour_pink} {RGB} {255, 121, 198}
|
||||
\definecolor{th_colour_purple} {RGB} {189, 147, 249}
|
||||
\definecolor{th_colour_red} {RGB} {255, 0, 0 }
|
||||
\definecolor{th_colour_yellow} {RGB} {255, 255, 0 }
|
||||
|
||||
\DeclareOption{codedark}{
|
||||
\definecolor{th_colour_bg} {HTML} {222324}
|
||||
\definecolor{th_colour_fg} {HTML} {FFFFFF}
|
||||
\definecolor{th_colour_cl} {RGB} {68, 71, 90 }
|
||||
\definecolor{th_colour_comment} {RGB} {98, 114, 164}
|
||||
\definecolor{th_colour_cyan} {RGB} {139, 233, 253}
|
||||
\definecolor{th_colour_green} {RGB} {80, 250, 123}
|
||||
\definecolor{th_colour_orange} {RGB} {255, 184, 108}
|
||||
\definecolor{th_colour_pink} {RGB} {255, 121, 198}
|
||||
\definecolor{th_colour_purple} {RGB} {189, 147, 249}
|
||||
\definecolor{th_colour_red} {RGB} {255, 85, 85 }
|
||||
\definecolor{th_colour_yellow} {RGB} {241, 250, 140}
|
||||
}
|
||||
|
||||
\DeclareOption{dracula}{
|
||||
\definecolor{th_colour_bg} {RGB} {40, 42, 54 }
|
||||
\definecolor{th_colour_fg} {RGB} {248, 248, 242}
|
||||
\definecolor{th_colour_cl} {RGB} {68, 71, 90 }
|
||||
\definecolor{th_colour_comment} {RGB} {98, 114, 164}
|
||||
\definecolor{th_colour_cyan} {RGB} {139, 233, 253}
|
||||
\definecolor{th_colour_green} {RGB} {80, 250, 123}
|
||||
\definecolor{th_colour_orange} {RGB} {255, 184, 108}
|
||||
\definecolor{th_colour_pink} {RGB} {255, 121, 198}
|
||||
\definecolor{th_colour_purple} {RGB} {189, 147, 249}
|
||||
\definecolor{th_colour_red} {RGB} {255, 85, 85 }
|
||||
\definecolor{th_colour_yellow} {RGB} {241, 250, 140}
|
||||
}
|
||||
|
||||
\ProcessOptions\relax
|
Reference in New Issue
Block a user