Feat: graphiques et tableaux
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bertrand Benjamin 2020-08-15 09:30:32 +02:00
parent de353a3d26
commit 8e0121e8a8
2 changed files with 151 additions and 49 deletions

View File

@ -32,7 +32,7 @@
\item \verb+\vectCoord+ $\vectCoord{\#1}{\#2}$ \item \verb+\vectCoord+ $\vectCoord{\#1}{\#2}$
\item \verb+\e+ $\e$ \item \verb+\e+ $\e$
% \item \verb+\i+ $\i$ % \item \verb+\i+ $\i$
\item \verb+\coefBino+ $\coefBino{\#1}{\#2}$ \item \verb+\coefBino+ $\coefBino{\#1}{\#2}$
@ -51,45 +51,45 @@
\item \verb+\Cal+ \Cal \item \verb+\Cal+ \Cal
\item \verb+\Com+ \Com \item \verb+\Com+ \Com
\item \verb+\Con+ \Con \item \verb+\Con+ \Con
\item \verb+\RepLevel+ \RepLevel{.}\RepLevel{0}\RepLevel{1}\RepLevel{2}\RepLevel{3} \item \verb+\RepLevel+ \RepLevel{.}\RepLevel{0}\RepLevel{1}\RepLevel{2}\RepLevel{3}
\item \verb+\SignalBar+ \SignalBar{2} \item \verb+\SignalBar+ \SignalBar{2}
\item \verb+\Assesment+ \Assesment{3} \item \verb+\Assesment+ \Assesment{3}
\item \verb+\competencesStatement+ \competencesStatement \item \verb+\competencesStatement+ \competencesStatement
\end{itemize} \end{itemize}
\section{tikzpicture} \section{tikzpicture}
\begin{verbatim} \begin{verbatim}
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
... ...
\end{tikzpicture} \end{tikzpicture}
\end{verbatim} \end{verbatim}
\begin{itemize} \begin{itemize}
\item \verb+\cercleTrigo+ \item \verb+\cercleTrigo+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\cercleTrigo \cercleTrigo
\end{tikzpicture} \end{tikzpicture}
\item \verb+\cercleTrigoNoOIJ+ \item \verb+\cercleTrigoNoOIJ+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\cercleTrigoNoOIJ \cercleTrigoNoOIJ
\end{tikzpicture} \end{tikzpicture}
\item \verb+\repere+ \item \verb+\repere+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\repere{-2}{2}{-2}{2} \repere{-2}{2}{-2}{2}
\end{tikzpicture} \end{tikzpicture}
\item \verb+\repereNoGrid+ \item \verb+\repereNoGrid+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\repereNoGrid{-2}{2}{-2}{2} \repereNoGrid{-2}{2}{-2}{2}
\end{tikzpicture} \end{tikzpicture}
\item \verb+\boxplot+ \item \verb+\boxplot+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\boxplot{2}{0}{1}{2}{3}{4}{5} \boxplot{2}{0}{1}{2}{3}{4}{5}
\end{tikzpicture} \end{tikzpicture}
\item \verb+\boxplotNoNames+ \item \verb+\boxplotNoNames+
\begin{tikzpicture}[scale=1] \begin{tikzpicture}[scale=1]
\boxplotNoNames{2}{0}{1}{2}{3}{4}{5} \boxplotNoNames{2}{0}{1}{2}{3}{4}{5}
\end{tikzpicture} \end{tikzpicture}
\end{itemize} \end{itemize}
\section{Mise en avant} \section{Mise en avant}
@ -105,20 +105,9 @@
\end{itemize} \end{itemize}
\section{Algo} \section{Algo}
\begin{verbatim}
\begin{algorithm}[H]
\SetAlgoLined
\Entree{n}
\Deb{
$u \leftarrow 3$ \;
\Pour{$i$ de 1 à 3}{
$u \leftarrow u+2$ \;
}
}
\Sortie{u}
\end{algorithm}
\end{verbatim}
\begin{multicols}{2}
\begin{verbatim}
\begin{algorithm}[H] \begin{algorithm}[H]
\SetAlgoLined \SetAlgoLined
\Entree{n} \Entree{n}
@ -130,24 +119,44 @@
} }
\Sortie{u} \Sortie{u}
\end{algorithm} \end{algorithm}
\end{verbatim}
\columnbreak
\begin{algorithm}[H]
\SetAlgoLined
\Entree{n}
\Deb{
$u \leftarrow 3$ \;
\Pour{$i$ de 1 à 3}{
$u \leftarrow u+2$ \;
}
}
\Sortie{u}
\end{algorithm}
\end{multicols}
\section{Programmation} \section{Programmation}
\begin{verbatim} \begin{multicols}{2}
\begin{lstlisting}[language=Python, basicstyle=\small, frame=] \begin{verbatim}
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
x = ("Nombre de tirage?") x = ("Nombre de tirage?")
if x < 200: if x < 200:
print("Le tarif est ", x*0.11) print("Le tarif est ", x*0.11)
else: else:
print("Le tarif est ", x*0.8) print("Le tarif est ", x*0.8)
\end{lstlisting} \end{lstlisting}
\end{verbatim} \end{verbatim}
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
\columnbreak
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
x = ("Nombre de tirage?") x = ("Nombre de tirage?")
if x < 200: if x < 200:
print("Le tarif est ", x*0.11) print("Le tarif est ", x*0.11)
else: else:
print("Le tarif est ", x*0.8) print("Le tarif est ", x*0.8)
\end{lstlisting} \end{lstlisting}
\end{multicols}
\section{QRcode} \section{QRcode}
@ -155,5 +164,98 @@
\qrcode{phrase à coder} \qrcode{phrase à coder}
\section{Graphique et tableaux}
\subsection{Grahique}
\begin{multicols}{2}
\begin{verbatim}
\begin{tikzpicture}[baseline=(a.north),
xscale=1, yscale=0.5]
\tkzInit[xmin=-5,xmax=5,xstep=1,
ymin=-5,ymax=5,ystep=1]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=-5:5,color=red,very thick]%
{ 0.4*x*x - 3 };
\end{tikzpicture}
\end{verbatim}
\columnbreak
\begin{tikzpicture}[baseline=(a.north),
xscale=1, yscale=0.5]
\tkzInit[xmin=-5,xmax=5,xstep=1,
ymin=-5,ymax=5,ystep=1]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=-5:5,color=red,very thick]%
{ 0.4*x*x - 3 };
\end{tikzpicture}
\end{multicols}
Quand on change la valeur de \verb+xstep+, il faut replacer \verb+x+ par \verb+\x+.
\begin{multicols}{2}
\begin{verbatim}
\begin{tikzpicture}[baseline=(a.north),
xscale=0.5, yscale=0.4]
\tkzInit[xmin=-5,xmax=5,xstep=0.5,
ymin=-5,ymax=5,ystep=1]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=-5:5,color=red,very thick]%
{ 0.4*\x*\x - 3 };
\end{tikzpicture}
\end{verbatim}
\columnbreak
\begin{tikzpicture}[baseline=(a.north),
xscale=0.5, yscale=0.4]
\tkzInit[xmin=-5,xmax=5,xstep=0.5,
ymin=-5,ymax=5,ystep=1]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=-5:5,color=red,very thick]%
{ 0.4*\x*\x - 3 };
\end{tikzpicture}
\end{multicols}
\subsection{Tableau de signes et variations}
\begin{multicols}{2}
\begin{verbatim}
\begin{tikzpicture}[baseline=(a.north)]
\tkzTabInit[lgt=2,espcl=2]
{$ x $/1,$ f(x) $/2}{-1, 2, 3, 5}
\tkzTabLine{, +, z, +, z, -, d, + , }
\end{tikzpicture}
\end{verbatim}
\columnbreak
\begin{tikzpicture}[baseline=(a.north)]
\tkzTabInit[lgt=2,espcl=2]
{$ x $/1,$ f(x) $/2}{-1, 2, 3, 5}
\tkzTabLine{, +, z, +, z, -, d, + , }
\end{tikzpicture}
\end{multicols}
\begin{multicols}{2}
\begin{verbatim}
\begin{tikzpicture}[baseline=(a.north)]
\tkzTabInit[lgt=2,espcl=2]
{$ x $/1, $ f(x) $/2}{-2, 0, 1 }
\tkzTabVar{ +/3, -/1, +/5}
\end{tikzpicture}
\end{verbatim}
\columnbreak
\begin{tikzpicture}[baseline=(a.north)]
\tkzTabInit[lgt=2,espcl=2]
{$ x $/1, $ f(x) $/2}{-2, 0, 1 }
\tkzTabVar{ +/3, -/1, +/5}
\end{tikzpicture}
\end{multicols}
\end{document} \end{document}