diff --git a/commun/commun.sty b/commun/commun.sty index 13c794e..7a203d0 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -17,7 +17,9 @@ utilisables partout, v2.0] -%-- extensions + + +%-- PACKAGES CALLS % programmation \RequirePackage{xifthen} \RequirePackage{ifmtarg} @@ -77,19 +79,18 @@ % mise en page \RequirePackage{varwidth} \RequirePackage{adjustbox} -%-- % +%----------------- \makeatletter -% -% \newtoggle{cours} -% \newtoggle{calculmental} -% \newtoggle{cours_beamer} -% -%-- Macros personnelles % dans un tableau : commandes d'alignement du contenu dans la colonne de largeur . +%-- NEW COMMANDS + + +%%% TABLEAU %%% +% Commandes d'alignement du contenu dans la colonne de largeur . \newcolumntype{L}[1]{>{\raggedright\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}} @@ -112,10 +113,14 @@ %% rb{largeur} : droite - bas %\newcolumntype{rb}[1]{>{\raggedleft}b{#1}} -% itemization dans tableau +% Item dans tableau \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]{ \setbox0=\hbox{$#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} % } -% 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\Architects[Ligatures=TeX]{Architects Daughter} \newfontfamily\Bristol[Ligatures=TeX]{Bristol} @@ -146,14 +161,10 @@ % \fontfamily{#1}% % \selectfont % } +%%%%%%%%%%%%%%% -% make circled text -\newcommand*\circled[1]{ - \tikz[baseline=(char.base)]{ - \node[shape=circle,draw,inner sep=2pt] (char) {#1}; - } -} +%%% COULEURS %%% % \newColorCommand{color} % Create a macro which can be accessed with the name "\color". % This macro make the following text to be colored in color. @@ -163,10 +174,18 @@ % Create new color commands \newColorCommand{red} \newColorCommand{white} -%--% +%%%%%%%%%%%%%%%% + +%--------------- + + + + +%-- MODIFIED COMMANDS + +%-------------------- + -% Macros modifiées -% - % \makeatother