Import Work from 2012/2013

This commit is contained in:
Benjamin Bertrand
2017-06-16 09:45:50 +03:00
commit 80f8d6b71f
350 changed files with 12673 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,5 @@
\begin{pspicture*}(-.4,-.5)(5.5,2)
\psset{xunit=.1,yunit=.5}
%sinon :
\bam{10}{10}{15}{25}{38}{45}{45}
\end{pspicture*}

Binary file not shown.

View File

@@ -0,0 +1,5 @@
\begin{pspicture*}(-.4,-.5)(5.5,1)
\psset{xunit=.1,yunit=.5}
%sinon :
\bam{11}{11}{19}{31}{37}{54}{54}
\end{pspicture*}

Binary file not shown.

View File

@@ -0,0 +1,5 @@
\begin{pspicture*}(-.4,-.5)(5.5,1)
\psset{xunit=.1,yunit=.5}
%sinon :
\bam{19}{19}{20}{37}{41}{43}{43}
\end{pspicture*}

View File

@@ -0,0 +1,41 @@
\NeedsTeXFormat{LaTeX2e}
% Macro pour faire des boites à moustaches
\RequirePackage{multido}
\RequirePackage{calc}
\RequirePackage{ifthen}
%\bam{min}{d1}{q1}{med}{q2}{d9}{max}
\newlength{\haut}
\newlength{\bas}
\newcounter{bam}\setcounter{bam}{-1}
\newcommand{\bam}[7]{
\ifthenelse{\thebam=-1}{
% C'est la première boite à moustache, il faut mettre en place les premiers éléments
\psset{fillstyle=solid}
\psline(0,0)(100,0)
{\scriptsize
\multido{\n=0+10}{11}{%
\psline(\n,.1)(\n,-.1)
\uput[d](\n,0){\n}}}
}{}
% Dessin de la boite à moustaches
% Décalage vers le haut de la boite à moustaches
\addtocounter{bam}{2}
% On trace la boite
\setlength{\haut}{\thebam\psyunit+.5\psyunit}
\setlength{\bas}{\thebam\psyunit-.5\psyunit}
% On trace du min au max avec des pointillés
\psline[linestyle=dotted](#1,\thebam\psyunit)(#7,\thebam\psyunit)
% On trace de d1 à d9 les moustaches
\psline{|-|}(#2,\thebam\psyunit)(#6,\thebam\psyunit)
% On trace la boite
\psframe(#3,\bas)(#5,\haut)
%\uput[u](#3,\haut){$Q_1$}
%\uput[u](#5,\haut){$Q_3$}
% Puis la médiane
\psline(#4,\bas)(#4,\haut)
%\uput[u](#4,\haut){$Me$}
}

Binary file not shown.

View File

@@ -0,0 +1,26 @@
#!/bin/sh
# on enlève lextension du 1er argument
FILE=${1%.*}
TMPFILE=pstemp
# création dun fichier temporaire psttemp.tex
cat > $TMPFILE.tex <<EOF
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-eps}
\usepackage{boiteAMoustaches}
\thispagestyle{empty}
\begin{document}
\begin{TeXtoEPS}
\input{$FILE}
\end{TeXtoEPS}
\end{document}
EOF
# Création du fichier dvi
latex $TMPFILE
# Création du fichier eps
dvips -E $TMPFILE.dvi -o $TMPFILE.eps
# Création du fichier pdf
epstopdf $TMPFILE.eps --debug --outfile=$FILE.pdf
# effacement des fichiers temporaires
rm -f $TMPFILE.*