Refact: reorganize style and make examples
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6dd8502dec
commit
dbf0621ef2
BIN
tools/examples/presentation.pdf
Normal file
BIN
tools/examples/presentation.pdf
Normal file
Binary file not shown.
49
tools/examples/presentation.tex
Executable file
49
tools/examples/presentation.tex
Executable file
@ -0,0 +1,49 @@
|
||||
\documentclass[14pt]{classPres}
|
||||
|
||||
\author{}
|
||||
\title{}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
\begin{frame}{Questions flashs}
|
||||
\begin{center}
|
||||
\vfill
|
||||
Terminale ES-L
|
||||
\vfill
|
||||
30 secondes par calcul
|
||||
\vfill
|
||||
\tiny \jobname
|
||||
\end{center}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Calcul 1}
|
||||
Un ordinateur coûte 400\euro. On a une remise de 5\%. \\
|
||||
Combien va-t-il nous coûter?
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Calcul 2}
|
||||
Sur une totale de recette de \np{2400}\euro, 40\% ont été réalisée par des paiement en espèce. \\
|
||||
Quelle est le montant des paiements réalisé en espèce?
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Calcul 3}
|
||||
\[
|
||||
4x + 5 = 25
|
||||
\]
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Calcul 4}
|
||||
\[
|
||||
f(x) = 3x^2 + 4x - 10
|
||||
\]
|
||||
Calculer $f(3)$
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Fin}
|
||||
\begin{center}
|
||||
On retourne son papier.
|
||||
\end{center}
|
||||
\end{frame}
|
||||
|
||||
|
||||
\end{document}
|
BIN
tools/examples/shortcuts_settings.pdf
Normal file
BIN
tools/examples/shortcuts_settings.pdf
Normal file
Binary file not shown.
152
tools/examples/shortcuts_settings.tex
Normal file
152
tools/examples/shortcuts_settings.tex
Normal file
@ -0,0 +1,152 @@
|
||||
\documentclass[a4paper,10pt]{article}
|
||||
\usepackage{myXsim}
|
||||
|
||||
\title{TITRE}
|
||||
\tribe{TRIBU}
|
||||
\date{DATE}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
\section{Raccourcis}%
|
||||
|
||||
\begin{itemize}
|
||||
\item \verb+\ds+ $\ds \frac{1}{2}$
|
||||
|
||||
\item \verb+\N+ $\N$
|
||||
\item \verb+\Z+ $\Z$
|
||||
\item \verb+\Q+ $\Q$
|
||||
\item \verb+\R+ $\R$
|
||||
\item \verb+\C+ $\C$
|
||||
|
||||
\item \verb+\intOO+ $\intOO{\#1}{\#2}$
|
||||
\item \verb+\intFO+ $\intOO{\#1}{\#2}$
|
||||
\item \verb+\intOF+ $\intOO{\#1}{\#2}$
|
||||
\item \verb+\intFF+ $\intOO{\#1}{\#2}$
|
||||
|
||||
\item \verb+\vect+ $\vect{\#1}$
|
||||
\item \verb+\norme+ $\norme{\#1}$
|
||||
\item \verb+\scal+ $\scal{\#1}{\#2}$
|
||||
\item \verb+\vectCoord+ $\vectCoord{\#1}{\#2}$
|
||||
|
||||
\item \verb+\e+ $\e$
|
||||
\item \verb+\i+ $\i$
|
||||
|
||||
\item \verb+\coefBino+ $\coefBino{\#1}{\#2}$
|
||||
|
||||
\item \verb+\equiv+ $\equiv$
|
||||
|
||||
\item \verb+\calc+ $\calc{\#1}$
|
||||
\end{itemize}
|
||||
|
||||
\section{Compétences}
|
||||
\begin{itemize}
|
||||
|
||||
\item \verb+\Cher+ \Cher
|
||||
\item \verb+\Mod+ \Mod
|
||||
\item \verb+\Rep+ \Rep
|
||||
\item \verb+\Rai+ \Rai
|
||||
\item \verb+\Cal+ \Cal
|
||||
\item \verb+\Com+ \Com
|
||||
\item \verb+\Con+ \Con
|
||||
|
||||
\item \verb+\RepLevel+ \RepLevel{.}\RepLevel{0}\RepLevel{1}\RepLevel{2}\RepLevel{3}
|
||||
|
||||
\item \verb+\SignalBar+ \SignalBar{2}
|
||||
\item \verb+\Assesment+ \Assesment{3}
|
||||
\item \verb+\competencesStatement+ \competencesStatement
|
||||
\end{itemize}
|
||||
|
||||
\section{tikzpicture}
|
||||
\begin{verbatim}
|
||||
\begin{tikzpicture}[scale=1]
|
||||
...
|
||||
\end{tikzpicture}
|
||||
\end{verbatim}
|
||||
\begin{itemize}
|
||||
\item \verb+\cercleTrigo+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\cercleTrigo
|
||||
\end{tikzpicture}
|
||||
\item \verb+\cercleTrigoNoOIJ+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\cercleTrigoNoOIJ
|
||||
\end{tikzpicture}
|
||||
\item \verb+\repere+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\repere{-2}{2}{-2}{2}
|
||||
\end{tikzpicture}
|
||||
\item \verb+\repereNoGrid+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\repereNoGrid{-2}{2}{-2}{2}
|
||||
\end{tikzpicture}
|
||||
\item \verb+\boxplot+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\boxplot{2}{0}{1}{2}{3}{4}{5}
|
||||
\end{tikzpicture}
|
||||
\item \verb+\boxplotNoNames+
|
||||
\begin{tikzpicture}[scale=1]
|
||||
\boxplotNoNames{2}{0}{1}{2}{3}{4}{5}
|
||||
\end{tikzpicture}
|
||||
\end{itemize}
|
||||
|
||||
\section{Mise en avant}
|
||||
\begin{itemize}
|
||||
\item \verb+\afaire+
|
||||
\afaire{\#1}
|
||||
\item \verb+\envideo+
|
||||
\envideo{\#linktaget}{\#linkname}
|
||||
\item \verb+\enclasse+
|
||||
\enclasse{\#1}
|
||||
\item \verb+\arediger+
|
||||
\arediger{\#1}
|
||||
\end{itemize}
|
||||
|
||||
\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{algorithm}[H]
|
||||
\SetAlgoLined
|
||||
\Entree{n}
|
||||
\Deb{
|
||||
$u \leftarrow 3$ \;
|
||||
\Pour{$i$ de 1 à 3}{
|
||||
$u \leftarrow u+2$ \;
|
||||
}
|
||||
}
|
||||
\Sortie{u}
|
||||
\end{algorithm}
|
||||
|
||||
\section{Programmation}
|
||||
\begin{verbatim}
|
||||
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
|
||||
x = ("Nombre de tirage?")
|
||||
if x < 200:
|
||||
print("Le tarif est ", x*0.11)
|
||||
else:
|
||||
print("Le tarif est ", x*0.8)
|
||||
\end{lstlisting}
|
||||
\end{verbatim}
|
||||
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
|
||||
x = ("Nombre de tirage?")
|
||||
if x < 200:
|
||||
print("Le tarif est ", x*0.11)
|
||||
else:
|
||||
print("Le tarif est ", x*0.8)
|
||||
\end{lstlisting}
|
||||
|
||||
\end{document}
|
||||
|
@ -8,6 +8,7 @@
|
||||
\RequirePackage{amsmath}
|
||||
\RequirePackage{amsfonts}
|
||||
\PassOptionsToPackage{table,usenames,dvipsnames}{xcolor}
|
||||
\RequirePackage{hyperref}
|
||||
%\RequirePackage{subfig}
|
||||
\RequirePackage{graphicx}
|
||||
\graphicspath{{./}{\string~/.Clipart/}}
|
||||
@ -16,16 +17,16 @@
|
||||
\RequirePackage{ifthen, calc}
|
||||
\RequirePackage{tabularx}
|
||||
|
||||
% Marges des pages
|
||||
% Géométrie
|
||||
\RequirePackage{geometry}
|
||||
\geometry{left=10mm,right=10mm, top=10mm}
|
||||
\geometry{left=10mm,right=10mm, top=10mm, bottom=10mm}
|
||||
|
||||
\setlength{\columnsep}{30pt} % default=10pt
|
||||
\setlength{\columnseprule}{1pt} % default=0pt (no line)
|
||||
|
||||
% Symbole euro
|
||||
\RequirePackage{eurosym}
|
||||
|
||||
% Faire des boites
|
||||
\RequirePackage{fancybox}
|
||||
|
||||
% Espaces pour écrire les grands nombres
|
||||
\RequirePackage[np]{numprint}
|
||||
|
||||
@ -34,12 +35,8 @@
|
||||
\RequirePackage{tkz-fct}
|
||||
|
||||
% Pour les block scratch
|
||||
|
||||
\RequirePackage{scratch}
|
||||
|
||||
% Pour gérer les todo
|
||||
% \RequirePackage[french, textsize=small]{todonotes}
|
||||
|
||||
% Plusieurs colonnes
|
||||
\RequirePackage{multicol}
|
||||
|
||||
@ -71,4 +68,6 @@
|
||||
% Write algorithm
|
||||
\usepackage[linesnumbered, boxed, french]{algorithm2e}
|
||||
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
|
22
tools/style/classPres.cls
Executable file
22
tools/style/classPres.cls
Executable file
@ -0,0 +1,22 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
\ProvidesClass{classPres}
|
||||
|
||||
% Classe de base - Beamer
|
||||
%\pdfminorversion=4
|
||||
\LoadClassWithOptions{beamer}
|
||||
|
||||
\usetheme{Singapore}
|
||||
\usepackage[defaultsans]{droidsans}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usefonttheme[onlymath]{serif}
|
||||
|
||||
% extensions
|
||||
|
||||
\RequirePackage{colorscheme}
|
||||
\RequirePackage{base}
|
||||
\geometry{left=10mm,right=10mm, top=0mm}
|
||||
|
||||
|
||||
% Les tableaux
|
||||
\renewcommand{\arraystretch}{1.5}
|
@ -6,70 +6,6 @@
|
||||
\RequirePackage{myhdr}
|
||||
\RequirePackage{hyperref}
|
||||
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
% Pour gérer les todo
|
||||
\RequirePackage[french]{todonotes}
|
||||
\newcounter{afaire}
|
||||
\newcommand{\afaire}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{afaire}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,#1]{%
|
||||
\textbf{À faire au crayon à papier:}~#2}%
|
||||
}}
|
||||
\newcounter{envideo}
|
||||
\newcommand{\envideo}[3][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{envideo}%
|
||||
{%
|
||||
%\setstretczh{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Voir la vidéo}~\href{#2}{#3}}%
|
||||
}}
|
||||
\newcounter{enclasse}
|
||||
\newcommand{\enclasse}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{enclasse}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Sera complété en classe}~#2}%
|
||||
}}
|
||||
\newcounter{arediger}
|
||||
\newcommand{\arediger}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{afaire}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,#1]{%
|
||||
\textbf{À rédiger et m'envoyer par mail:}~#2}%
|
||||
}}
|
||||
|
||||
\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}
|
||||
|
||||
|
||||
%\RequirePackage{xsim}
|
||||
\RequirePackage[no-files]{xsim}
|
||||
|
||||
\DeclareExerciseTagging{step}
|
||||
|
@ -1,8 +0,0 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
% Les listes
|
||||
\RequirePackage{enumerate}
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
%% Vecteurs
|
||||
% représentation d'un vecteur
|
||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
||||
\renewcommand{\vect}[1]{\overrightarrow{#1}}
|
||||
% Norme d'un vecteur
|
||||
\newcommand{\norme}[1]{||\vec{#1}||}
|
||||
% Produit scalaire
|
||||
@ -59,18 +59,6 @@
|
||||
%% 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]{icons/#2.png}%
|
||||
@ -280,7 +268,6 @@
|
||||
\draw (#5, #1) -- (#6, #1);
|
||||
}
|
||||
|
||||
|
||||
\usetikzlibrary{quotes,arrows.meta}
|
||||
|
||||
\tikzset{
|
||||
@ -315,3 +302,41 @@
|
||||
scale=.1,
|
||||
}
|
||||
|
||||
% Pour gérer les todo
|
||||
\RequirePackage[french]{todonotes}
|
||||
\newcounter{afaire}
|
||||
\newcommand{\afaire}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{afaire}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,#1]{%
|
||||
\textbf{À faire au crayon à papier:}~#2}%
|
||||
}}
|
||||
\newcounter{envideo}
|
||||
\newcommand{\envideo}[3][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{envideo}%
|
||||
{%
|
||||
%\setstretczh{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Voir la vidéo}~\href{#2}{#3}}%
|
||||
}}
|
||||
\newcounter{enclasse}
|
||||
\newcommand{\enclasse}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{enclasse}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Sera complété en classe}~#2}%
|
||||
}}
|
||||
\newcounter{arediger}
|
||||
\newcommand{\arediger}[2][]{%
|
||||
% initials of the author (optional) + note in the margin
|
||||
\refstepcounter{afaire}%
|
||||
{%
|
||||
%\setstretch{0.7}% spacing
|
||||
\todo[inline,#1]{%
|
||||
\textbf{À rédiger et m'envoyer par mail:}~#2}%
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user