Clean code.
This commit is contained in:
@@ -17,7 +17,9 @@
|
|||||||
utilisables partout, v2.0]
|
utilisables partout, v2.0]
|
||||||
|
|
||||||
|
|
||||||
%-- extensions
|
|
||||||
|
|
||||||
|
%-- PACKAGES CALLS
|
||||||
% programmation
|
% programmation
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{ifmtarg}
|
\RequirePackage{ifmtarg}
|
||||||
@@ -77,19 +79,18 @@
|
|||||||
% mise en page
|
% mise en page
|
||||||
\RequirePackage{varwidth}
|
\RequirePackage{varwidth}
|
||||||
\RequirePackage{adjustbox}
|
\RequirePackage{adjustbox}
|
||||||
%-- %
|
%-----------------
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
|
|
||||||
%
|
|
||||||
% \newtoggle{cours}
|
|
||||||
% \newtoggle{calculmental}
|
|
||||||
% \newtoggle{cours_beamer}
|
|
||||||
%
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%-- Macros personnelles % dans un tableau : commandes d'alignement du contenu dans la colonne de largeur <largeur>.
|
%-- NEW COMMANDS
|
||||||
|
|
||||||
|
|
||||||
|
%%% TABLEAU %%%
|
||||||
|
% Commandes d'alignement du contenu dans la colonne de largeur <largeur>.
|
||||||
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
||||||
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
||||||
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
||||||
@@ -112,10 +113,14 @@
|
|||||||
%% rb{largeur} : droite - bas
|
%% rb{largeur} : droite - bas
|
||||||
%\newcolumntype{rb}[1]{>{\raggedleft}b{#1}}
|
%\newcolumntype{rb}[1]{>{\raggedleft}b{#1}}
|
||||||
|
|
||||||
% itemization dans tableau
|
% Item dans tableau
|
||||||
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
|
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
|
||||||
|
%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
% barrer du texte
|
|
||||||
|
%%% TEXTE %%%
|
||||||
|
% \hcancel[color][size]{text}
|
||||||
|
% Barrer du texte avec la couleur color et l'épaisseur size.
|
||||||
\newcommand\hcancel[2][black]{
|
\newcommand\hcancel[2][black]{
|
||||||
\setbox0=\hbox{$#2$}%
|
\setbox0=\hbox{$#2$}%
|
||||||
\rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{2pt}}}}#2
|
\rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{2pt}}}}#2
|
||||||
@@ -125,7 +130,17 @@
|
|||||||
% \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{#2}}}} {#3}
|
% \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{#2}}}} {#3}
|
||||||
% }
|
% }
|
||||||
|
|
||||||
% polices
|
% \circled{text}
|
||||||
|
% Texet encerclé
|
||||||
|
\newcommand*\circled[1]{
|
||||||
|
\tikz[baseline=(char.base)]{
|
||||||
|
\node[shape=circle,draw,inner sep=2pt] (char) {#1};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
%%% POLICES %%%
|
||||||
\newfontfamily\Annie[Ligatures=TeX]{Annie Use Your Telescope}
|
\newfontfamily\Annie[Ligatures=TeX]{Annie Use Your Telescope}
|
||||||
\newfontfamily\Architects[Ligatures=TeX]{Architects Daughter}
|
\newfontfamily\Architects[Ligatures=TeX]{Architects Daughter}
|
||||||
\newfontfamily\Bristol[Ligatures=TeX]{Bristol}
|
\newfontfamily\Bristol[Ligatures=TeX]{Bristol}
|
||||||
@@ -146,14 +161,10 @@
|
|||||||
% \fontfamily{#1}%
|
% \fontfamily{#1}%
|
||||||
% \selectfont
|
% \selectfont
|
||||||
% }
|
% }
|
||||||
|
%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
% make circled text
|
|
||||||
\newcommand*\circled[1]{
|
|
||||||
\tikz[baseline=(char.base)]{
|
|
||||||
\node[shape=circle,draw,inner sep=2pt] (char) {#1};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
%%% COULEURS %%%
|
||||||
% \newColorCommand{color}
|
% \newColorCommand{color}
|
||||||
% Create a macro which can be accessed with the name "\color".
|
% Create a macro which can be accessed with the name "\color".
|
||||||
% This macro make the following text to be colored in color.
|
% This macro make the following text to be colored in color.
|
||||||
@@ -163,10 +174,18 @@
|
|||||||
% Create new color commands
|
% Create new color commands
|
||||||
\newColorCommand{red}
|
\newColorCommand{red}
|
||||||
\newColorCommand{white}
|
\newColorCommand{white}
|
||||||
%--%
|
%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
%---------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%-- MODIFIED COMMANDS
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% Macros modifiées
|
|
||||||
% - %
|
|
||||||
|
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|||||||
Reference in New Issue
Block a user