Récupération de tout ce qui avait été fait!

This commit is contained in:
2017-08-24 19:48:38 +03:00
parent b65d65510f
commit 5ee7090576
40 changed files with 3657 additions and 0 deletions

79
tools/style/base.sty Executable file
View File

@@ -0,0 +1,79 @@
\NeedsTeXFormat{LaTeX2e}
\newcommand{\op@annee}{2017-2018}
% extensions
\RequirePackage[utf8x]{inputenc}
\RequirePackage[francais]{babel}
\RequirePackage[T1]{fontenc}
\RequirePackage{amssymb}
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{subfig}
\RequirePackage{graphicx}
\RequirePackage{color}
\RequirePackage{gensymb}
\RequirePackage{ifthen, calc}
\RequirePackage{tabularx}
% Symbole euro
\RequirePackage{eurosym}
% Faire des boites
\RequirePackage{fancybox}
% Espaces pour écrire les grands nombres
\RequirePackage[np]{numprint}
% Outils pour les tableaux et les fonctions
\RequirePackage{tkz-tab}
\RequirePackage{tkz-fct}
% Pour gérer les todo
\RequirePackage[french, textsize=small]{todonotes}
% Plusieurs colonnes
\RequirePackage{multicol}
% inteligent import (see https://codeyarns.com/2010/05/27/latex-import-subimport-for-document-organization/)
\RequirePackage{import}
% Lecture des fichiers csv et affichage des csv en table
\RequirePackage{csvsimple}
% Mes racourcis
\RequirePackage{shortcuts}
%Polices
%% l'option nomath fait que la police du mode mathématique n'est pas affectée
\RequirePackage[nomath]{kpfonts}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
% Les tableaux
\renewcommand{\arraystretch}{2}
%%%%%%%%%%%%%%%%%%%%%%
% Environment Exo %
%%%%%%%%%%%%%%%%%%%%%%
% Doit disparaitre pour laisser place à exsheet
\newcounter{exo}[section]
\setcounter{exo}{0}
\newenvironment{Exo}[1][0]{%
\addtocounter{exo}{1}
\medskip
\noindent%
\textbf{\color{exercice}{Exercice \theexo}} \hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm} \color{exercice}
\ifthenelse{\equal{#1}{0}}%
{}%
{#1}
% \ifthenelse{\lengthtest{#1 pt = 1pt}}{#1 point}{#1 points}}%
\par
\medskip
\color{text}
}{\par%
}
\newcommand{\exo}[1]{{\centering \textbf{#1} \par}}

66
tools/style/classConn.cls Normal file
View File

@@ -0,0 +1,66 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classConn}
% classe de base
\LoadClass[a5paper, 12pt]{article}
% extensions
\RequirePackage{base}
\RequirePackage{none_beamer}
\RequirePackage{colorscheme}
% pour redéfinir \section
\RequirePackage[explicit]{titlesec}
% géométrie
\RequirePackage{geometry}
\geometry{left=10mm,right=10mm, top=10mm}
% commandes personnelles
% Les en-tête et les pieds de pages
\RequirePackage{fancyhdr}
\pagestyle{empty}
%\renewcommand\headrulewidth{0pt}
%\fancyhead[R]{}
%\fancyfoot[C]{}
% Description du devoir
\newcommand{\op@entete}{}
\newcommand{\op@soustitre}{}
\newcommand{\op@classe}{}
\newcommand{\op@titre}{Connaissance}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{}}%
\renewcommand{\op@entete}{\@date}
% Redéfinition de maketitle pour ne plus avoir la date
\newcounter{sujet}
\setcounter{sujet}{0}
\newcommand{\sujet}{%
\clearpage
\setcounter{exo}{0}
\addtocounter{sujet}{1}
\noindent
\begin{minipage}{0.8\textwidth}
\noindent{\huge \color{title}\bfseries \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre}\par
\end{minipage}
\begin{minipage}{0.2\textwidth}
\begin{center}
\Huge\thesujet
\end{center}
\end{minipage}
\\[0.2cm]
Nom - Prénom:
\\[0.2cm]
\normalsize
}

View File

@@ -0,0 +1,79 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classCours}
% classe de base
\LoadClassWithOptions{article}
% extensions
\RequirePackage{base}
\RequirePackage{none_beamer}
\RequirePackage{colorscheme}
% géométrie
\RequirePackage{geometry}
\geometry{left=20mm,right=20mm, top=15mm, bottom=20mm}
%\RequirePackage{arev}
\RequirePackage{kpfonts}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
% commandes personnelles
% Les en-tête et les pieds de pages
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
%\setlength{\headheight}{15.2pt}
\setlength{\headsep}{5pt}
\newcommand{\op@boiteentete}{\makebox[0pt][l]{\hspace*{-3ex}%
\color{bgentete}\rule[-0.8ex]{\linewidth+6ex}{3ex}%
}}
\fancyhead[L]{%
\op@boiteentete%
\small\op@typedoc \op@titre%
}
\fancyhead[R]{\small\scshape\op@entete}
\fancyfoot[R]{\color{footer}\thepage}
\fancyfoot[L]{\color{footer}\scriptsize\op@classe{} -- \op@annee}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[R]{\color{footer}\thepage}
\fancyfoot[L]{\color{footer}\scriptsize\op@classe{} -- \op@annee}
% \fancyfoot[R]{\thepage}
% \fancyfoot[L]{\scriptsize\op@classe{} -- \op@annee}
}
% Description du Cours
\newcommand{\op@entete}{}
\newcommand{\op@soustitre}{}
\newcommand{\op@classe}{}
\newcommand{\op@typedoc}{}
\newcommand{\op@typedoctmp}{}
\newcommand{\op@titre}{}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\renewcommand{\op@typedoc}{Cours: }
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{}}%
\renewcommand{\op@entete}{\@date}
% Redéfinition de maketitle pour ne plus avoir la date
\renewcommand{\maketitle}{%
\thispagestyle{plain}
\noindent{\huge \color{title}\bfseries \op@typedoc \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre}\par
\vspace{2.5\baselineskip}
}

10
tools/style/classDS.cls Normal file
View File

@@ -0,0 +1,10 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classDS}
% classe de base
\LoadClassWithOptions{remixExam}

View File

@@ -0,0 +1,10 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classExamen}
% classe de base
\LoadClassWithOptions{remixExam}
\renewcommand{\baselinestretch}{1.5} % interligne

34
tools/style/classExo.cls Normal file
View File

@@ -0,0 +1,34 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classExo}
% classe de base
\LoadClassWithOptions{remixExam}
% extensions
\RequirePackage{base}
\RequirePackage{colorscheme}
\RequirePackage{geometry}
%\geometry{landscape}
\geometry{left=15mm,right=15mm, bottom= 15mm, top=15mm}
\firstpageheader{\op@boiteentete\small\scshape\op@entete}{}{\small\op@typedoc \op@titre} % Header de la première page
%\setlength{\oddsidemargin}{0in} % default=0in
%\setlength{\textwidth}{9in} % default=9in
\setlength{\columnsep}{30pt} % default=10pt
\setlength{\columnseprule}{1pt} % default=0pt (no line)
%\setlength{\textheight}{5.85in} % default=5.15in
%\setlength{\topmargin}{-0.40in} % default=0.20in
%\setlength{\headsep}{0.35in} % default=0.35in
\renewcommand{\op@entete}{\op@classe}

20
tools/style/classPres.cls Executable file
View File

@@ -0,0 +1,20 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classPres}
% Classe de base - Beamer
\pdfminorversion=4
\LoadClassWithOptions{beamer}
\usetheme{Singapore}
\usepackage[defaultsans]{droidsans}
\usepackage[T1]{fontenc}
% extensions
\RequirePackage{base}
\RequirePackage{colorscheme}
% Les tableaux
\renewcommand{\arraystretch}{1.5}

View File

@@ -0,0 +1,55 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classReport}
% classe de base
%\LoadClass[a4paper,12pt, landscape, twocolumn]{article}
\LoadClass[a5paper,12pt]{article}
% extensions
\RequirePackage{base}
\RequirePackage{colorscheme}
\RequirePackage{xcolor,colortbl}
\pagestyle{empty}
\RequirePackage{geometry}
%\geometry{landscape}
\geometry{left=5mm,right=5mm,top=10mm, bottom= 10mm}
% Séparation au milieu
\setlength{\columnsep}{5pt} % default=10pt
\setlength{\columnseprule}{0pt} % default=0pt (no line)
% Décorations
\newcommand{\op@classe}{}
\newcommand{\op@titre}{}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\newcommand{\op@soustitre}{\op@classe{} \hfill \@date{}}%
\renewcommand{\maketitle}{%
\noindent{\huge \color{title}\bfseries Bilan \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre}\par
\vspace{1.5\baselineskip}
}
% Les couleurs de la réussite
% \newcommand{\NoRep}{/}
% \newcommand{\RepZ}{\cellcolor{black!05}}
% \newcommand{\RepU}{\cellcolor{black!30}}
% \newcommand{\RepD}{\cellcolor{black!60}}
% \newcommand{\RepT}{\cellcolor{black}}
\usepackage{tikzsymbols}
%\newcommand{\RepT}{\color{black!10}\Changey[2][black!70]{0.8}\color{text}}
\newcommand{\RepT}{\Smiley[2][black!70]}
\newcommand{\RepD}{\Sey[2][black!40]}
\newcommand{\RepU}{\Neutrey[2][black!10]}
\newcommand{\RepZ}{\Sadey[2]}
\newcommand{\NoRep}{(??)}

50
tools/style/colorscheme.sty Executable file
View File

@@ -0,0 +1,50 @@
\NeedsTeXFormat{LaTeX2e}
% Couleurs
\RequirePackage{xcolor}
% Couleurs éléments
% \definecolor{coulpied}{couleur3}
% \definecolor{coulnumexos}{couleur5}
% \definecolor{coulrule}{couleur5}
% \definecolor{coulsection}{couleur1}
% \definecolor{coultable1}{couleur4}
% \definecolor{coultable2}{couleur3}
% \definecolor{coultheo}{couleur4}
% \definecolor{couldef}{couleur3}
% Solarized theme
\definecolor{base03}{HTML}{002b36}
\definecolor{base02}{HTML}{073642}
\definecolor{base01}{HTML}{586e75}
\definecolor{base00}{HTML}{657b83}
\definecolor{base0}{HTML}{839496}
\definecolor{base1}{HTML}{93a1a1}
\definecolor{base2}{HTML}{eee8d5}
\definecolor{base3}{HTML}{FDF6E3}
\definecolor{yellow}{HTML}{B58900}
\definecolor{orange}{HTML}{cb4b16}
\definecolor{red}{HTML}{DC322F}
\definecolor{magenta}{HTML}{d33682}
\definecolor{violet}{HTML}{6c71c4}
\definecolor{blue}{HTML}{268bd2}
\definecolor{cyan}{HTML}{2aa198}
\definecolor{green}{HTML}{859900}
% My theme
\colorlet{text}{base03}
\colorlet{footer}{base02}
\colorlet{bgentete}{base2}
\colorlet{title}{blue}
\colorlet{subtitle}{base02}
\colorlet{line}{base1}
\colorlet{comments}{base01}
\colorlet{exercice}{blue}
\colorlet{note}{red}
\colorlet{highlightbg}{base2}
\colorlet{tabular}{base3}

8
tools/style/none_beamer.sty Executable file
View File

@@ -0,0 +1,8 @@
\NeedsTeXFormat{LaTeX2e}
% Les listes
\RequirePackage{enumerate}
\RequirePackage{enumitem}
\setlist[itemize,1]{label=$\bullet$}

185
tools/style/remixExam.cls Normal file
View File

@@ -0,0 +1,185 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{remixExam}
% classe de base
\LoadClassWithOptions{exam}
% extensions
\RequirePackage{base}
\RequirePackage{none_beamer}
\RequirePackage{colorscheme}
\RequirePackage{xifthen}
%\RequirePackage{etoolbox}
\RequirePackage{pdftexcmds}
% Generalites
% géométrie
\RequirePackage{geometry}
\geometry{left=20mm,right=20mm, top=15mm, bottom=20mm}
% Calculatrice
\newcommand{\noCalc}{{\centering \textbf{Calculatrice interdite} \par}}
\newcommand{\Calc}{{\centering \textbf{Calculatrice autorisée} \par}}
% Custumisation de la class Exam
%% Document informations
\newcommand{\op@entete}{}
\newcommand{\op@soustitre}{\op@classe{} -- \@date{}}
\newcommand{\op@typedoctmp}{}
\newcommand{\op@classe}{}
\newcommand{\op@titre}{}
\newcommand{\op@duree}{}
\newcommand{\op@sujet}{}
\newcommand{\op@ptpres}{0}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\newcommand{\duree}[1]{\renewcommand{\op@duree}{#1}}
\newcommand{\sujet}[1]{\renewcommand{\op@sujet}{Sujet #1}}
\newcommand{\ptpres}[1]{\renewcommand{\op@ptpres}{#1}}
\newcommand{\typedoc}[1]{\renewcommand{\op@typedoctmp}{#1}
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{}}%
\renewcommand{\op@entete}{\@date}
}
%% Redéfinition de maketitle
\renewcommand{\maketitle}{%
\noindent{\huge \color{title}\bfseries \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre \hfill \large\op@sujet}\par
\vspace{2.5\baselineskip}
}
% Page de garde
\renewcommand{\titlepage}{%
\begin{center}
%~\\[1cm]
\Huge \op@titre \\
\Huge \op@classe\\[1cm]
\LARGE \@date \\[1cm]
\fbox{
\parbox{0.7\textwidth}{~\\[1cm] \large Épreuve de : \\ \Huge MATHÉMATIQUES \\ \Large Durée de l'épreuve: \op@duree %
\ifprintanswers \Huge\center \textbf{Correction} \fi \\[1cm]}
}
~\\[1cm]
\normalsize
Ce sujet comporte \numpages\, pages, numérotées de 1 / \numpages \; à \numpages / \numpages \\
Dès qu'il vous est remis, assurez-vous qu'il est complet.
\\[0.5cm]
L'utilisation de la calculatrice est autorisée.\\
L'échange de calculatrice entre les élèves est strictement interdit.\\
L'usage du dictionnaire n'est pas autorisé. \\[1cm]
\pointtable[h][questions]
~\\[0.5cm]
\ifthenelse{\equal{\op@ptpres}{0}}%
{}%
{\textbf{\op@ptpres\, points} sont réservés à la présentation et à la rédaction.}
\end{center}
\clearpage
}
%% Les en-tête et les pieds de pages
\newcommand{\op@boiteentete}{\makebox[0pt][l]{\hspace*{-3ex}%
\color{bgentete}\rule[-0.8ex]{\linewidth+6ex}{3ex}%
}}
\pagestyle{headandfoot}
\header{\op@boiteentete\small\scshape\op@entete}{}{\small \op@titre}
\footer{\scriptsize\op@classe{} -- \op@annee}{}{\scriptsize\thepage / \numpages}
%% En tête de la première page
% Header de la première page
\firstpageheader{}{}{}
% header des autres pages
\runningheader{\op@boiteentete\small\scshape\op@entete}{}{\small \op@titre}
% Footer de la première page
\firstpagefooter{\scriptsize\op@classe{} -- \op@annee}{}{\scriptsize\thepage / \numpages}
% footer des autres pages
\runningfooter{\scriptsize\op@classe{} -- \op@annee}{}{\scriptsize\thepage / \numpages}
%% Questions and parts
%%% Numbering
% numérotation de part
\renewcommand{\thepartno}{\arabic{partno}}
% numérotation de choice
\renewcommand{\thechoice}{\alph{choice}}
% numérotation de subpart
\renewcommand{\thesubpart}{\alph{subpart}}
% numérotation de subsubpart
\renewcommand{\thesubsubpart}{\greeknum{subsubpart}}
%%% Display numbering
\renewcommand{\partlabel}{\colorbox{exercice}{\color{highlightbg}\thepartno}}
%\renewcommand{\choicelabel}{\color{exercice}\thechoice.}}
%\newcommand{\partlabel}{\thepartno.}
\renewcommand{\subpartlabel}{\color{exercice}\thesubpart.\color{text}}
\renewcommand{\subsubpartlabel}{\color{exercice}\thesubsubpart)}
%%% Reformat questions
\qformat{\Large \textbf{\color{exercice}{Exercice \thequestion}} \hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm} \color{exercice} \thepoints}
%%% Points table
\addpoints
\vqword{Éxercice}
%% Saved solutions environment
\newbox\allsolutions
\setbox\allsolutions=\vbox{}
\edef\iniq{}
\edef\inip{}
\edef\inisp{}
\newenvironment{savedSolution}
{%
\ifprintanswers
% s'il y a printanswers on veut que les solutions soient au milieu des questions.
\begin{solution}
\else
\global\setbox\allsolutions=\vbox\bgroup
\unvbox\allsolutions
% à partir de là, on enregistre des truc dans la boite. Je suis pas convaincu que le truc avec minipage va bien marcher mais bon...
\begin{minipage}{0.45\textheight}
\ifnum\pdf@strcmp{\iniq}{\thequestion}=0
\else
\Large \textbf{\color{exercice}{Exercice \thequestion}} \hspace{0.5cm} {\color{line}\hrulefill} \hspace{0.5cm} {\color{exercice} Solution} \normalsize
\global\edef\iniq{\thequestion}%
\fi
\ifnum\pdf@strcmp{\inip}{\thepartno}=0
\else
\partlabel \;
\global\edef\inip{\thepartno}%
\fi
\ifnum\pdf@strcmp{\inisp}{\thesubpart}=0
\else
\subpartlabel \;
\global\edef\inisp{\thesubpart}%
\fi%
\fi%
}%
{%
\ifprintanswers
\end{solution}
\else
\end{minipage}
\bigbreak
\egroup
\fi
}
\newcommand{\showallsolutions}{\par\unvbox\allsolutions}

162
tools/style/shortcuts.sty Executable file
View File

@@ -0,0 +1,162 @@
\NeedsTeXFormat{LaTeX2e}
%%%%%%%%%%%%%%%%%
% Raccourcis %
%%%%%%%%%%%%%%%%%
% Ensembles
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
%\newcommand{\D}{\mathbb{D}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
% intervalles ouvert ouvert
\newcommand{\intOO}[2]{\left]{#1}\,{;}\,{#2}\right[}
% intervalles ouvert fermé
\newcommand{\intOF}[2]{\left]{#1}\,{;}\,{#2}\right]}
% intervalles fermé ouvert
\newcommand{\intFO}[2]{\left[{#1}\,{;}\,{#2}\right[}
% intervalles fermé fermé
\newcommand{\intFF}[2]{\left[{#1}\,{;}\,{#2}\right]}
%% Vecteurs
% représentation d'un vecteur
\renewcommand{\vec}[1]{\overrightarrow{#1}}
% Norme d'un vecteur
\newcommand{\norme}[1]{||\vec{#1}||}
% Produit scalaire
\newcommand{\scal}[2]{\vec{#1} \cdot \vec{#2}}
\newcommand{\vectCoord}[2]{%
{\renewcommand{\arraystretch}{1}%
\left(\begin{array}{c} #1 \\ #2 \end{array} \right)%
}%
}
%% Proba
\newcommand{\coefBino}[2]{\vectCoord{#1}{#2}}
%% Logique
\renewcommand{\equiv}{\Leftrightarrow}
%% Calculatrice
\usepackage{listings}
\newcommand{\calc}[1]{\Ovalbox{\lstinline|#1|}}
%\newcommand{\calc}[1]{\verb!#1!}
%% Autres
\newcommand{\TODO}[1]{\textcolor{red}{note(#1)}}
%% Poser des opérations
\RequirePackage[letterspace=500]{microtype}
\newcommand{\poseOP}[3]{%
\textls{
$\begin{array}{cr}
& #1 \\[-0.3cm]
#2 & #3 \\
\hline
&
\end{array}$}
}
% Icones
\newcommand{\icon}[2][scale=0.4]{%
\includegraphics[#1]{/media/documents/Cours/Prof/Enseignements/Clipart/icons/#2.png}%
}
% Icones des compétences
\newcommand{\Cher}[1][scale=0.4]{%
\icon[#1]{card-pick}
}
\newcommand{\Mod}[1][scale=0.4]{%
\icon[#1]{processor}
}
\newcommand{\Rep}[1][scale=0.4]{%
\icon[#1]{chart}
}
\newcommand{\Rai}[1][scale=0.4]{%
\icon[#1]{brain}
%\icon[#1]{gears}
}
\newcommand{\Cal}[1][scale=0.4]{%
\icon[#1]{computing}
}
\newcommand{\Com}[1][scale=0.4]{%
\icon[#1]{conversation}
}
\newcommand{\Con}[1][scale=0.4]{%
\icon[#1]{book-cover}
}
% ##########################
% Tikz shortcuts
% ##########################
% Les dessins
\RequirePackage{tikz}
%% le cercle trigo
\newcommand{\cercleTrigo}%
{%
\draw[->, very thick] (-1.2,0) -- (1.3, 0);
\draw[->, very thick] (0,-1.2) -- (0,1.3);
\draw[very thick] (0,0) circle (1);
\draw (0,0) node[below left] {$O$};
\draw (1,0) node[below right] {$I$};
\draw (0,1) node[above left] {$J$};
}
%% Le repère orthonormé avec la grille
%%% \repere{xmin}{xmax}{ymin}{ymax}
\newcommand{\repere}[4]%
{%
\draw[very thin, gray] (#1,#3) grid (#2,#4);
\draw[->, very thick] (#1,0) -- (#2,0);
\draw[->, very thick] (0,#3) -- (0,#4);
\draw (0,0) node[below right, scale=0.7 ] {$O$};
\draw (0,1) node {-} node[left] {$J$};
\draw (1,0) node[rotate=90] {-} node[below] {$I$};
}
\newcommand{\repereNoGrid}[4]%
{%
\draw[->, very thick] (#1,0) -- (#2,0);
\draw[->, very thick] (0,#3) -- (0,#4);
}
%% Diagramme boite
%%% \boxplot{Vertical Center}{min}{Q1}{Me}{Q3}{Max}
\newcommand{\boxplot}[6]%
{%
\filldraw[color=highlightbg, draw=text] (#3, {#1 - 0.5}) rectangle (#5, {#1 + 0.5});
\draw (#2, {#1 - 0.5}) -- (#2, {#1 + 0.5}) node[above] {$Min$};
\draw (#3, {#1 - 0.5}) -- (#3, {#1 + 0.5}) node[above] {$Q_1$};
\draw (#4, {#1 - 0.5}) -- (#4, {#1 + 0.5}) node[above] {$Me$};
\draw (#5, {#1 - 0.5}) -- (#5, {#1 + 0.5}) node[above] {$Q_3$};
\draw (#6, {#1 - 0.5}) -- (#6, {#1 + 0.5}) node[above] {$Max$};
\draw (#2, #1) -- (#3, #1);
\draw (#5, #1) -- (#6, #1);
%\draw ({(#2 +#3)/2}, #1) node[above] {25\%};
%\draw ({(#3 +#4)/2}, #1) node[above] {25\%};
%\draw ({(#4 +#5)/2}, #1) node[above] {25\%};
%\draw ({(#5 +#6)/2}, #1) node[above] {25\%};
}
\newcommand{\boxplotNoNames}[6]%
{%
\filldraw[color=highlightbg, draw=text] (#3, {#1 - 0.5}) rectangle (#5, {#1 + 0.5});
\draw (#2, {#1 - 0.5}) -- (#2, {#1 + 0.5});
\draw (#3, {#1 - 0.5}) -- (#3, {#1 + 0.5});
\draw (#4, {#1 - 0.5}) -- (#4, {#1 + 0.5});
\draw (#5, {#1 - 0.5}) -- (#5, {#1 + 0.5});
\draw (#6, {#1 - 0.5}) -- (#6, {#1 + 0.5});
\draw (#2, #1) -- (#3, #1);
\draw (#5, #1) -- (#6, #1);
}