From 56b90a23e336848ea0fed49d1dc41e847dd4a976 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 7 Apr 2016 22:21:19 +0200 Subject: [PATCH] =?UTF-8?q?-=20ajout=20de=20raccourcis=20pour=20enumerate?= =?UTF-8?q?=20et=20itemize=20-=20nouvelle=20commande=20\hcancel=20de=20bas?= =?UTF-8?q?e=20-=20idee=20d'am=C3=A9lioration=20de=20\hcancel=20utilisant?= =?UTF-8?q?=20xparse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commun/commun.sty | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/commun/commun.sty b/commun/commun.sty index e33680e..22ddeb6 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -19,6 +19,7 @@ \RequirePackage{libertine} \RequirePackage{eurosym} \RequirePackage{bbding} +\RequirePackage{xcolor} % maths \RequirePackage{amsmath} @@ -28,9 +29,10 @@ \RequirePackage{pgfplots} \RequirePackage[amssymb, squaren, pstricks]{SIunits} \RequirePackage{asymptote} +% \RequirePackage{cancel} % programmation -\RequirePackage{ifthen} +\RequirePackage{xifthen} \RequirePackage{ifmtarg} \RequirePackage{ifpdf} \RequirePackage{xstring} @@ -125,6 +127,19 @@ % enumerate \newcommand{\be}{\begin{enumerate}} \newcommand{\ee}{\end{enumerate}} + +% itemize +\newcommand{\bi}{\begin{itemize}} +\newcommand{\ei}{\end{itemize}} + +\newcommand\hcancel[2][black]{ + \setbox0=\hbox{$#2$}% + \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{2pt}}}}#2 +} +% \NewDocumentCommand \hcancel { O{black} O{1pt} } { +% \setbox0=\hbox{$#3$}% +% \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{#2}}}} {#3} +% } %--%