import work from year 2016-2017

This commit is contained in:
Benjamin Bertrand
2017-06-16 09:49:23 +03:00
commit 7da91996d2
5354 changed files with 505520 additions and 0 deletions

31
tools/Other/archivage.sh Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# The next line tells bash to exit if a command return a non-true value
set -e
ROOT=`pwd`
LIEU_ARCHIVES="$ROOT/Archive/2012-2013"
fichier_tex=`find $LIEU_ARCHIVES -iname "*.tex"`
for f in $fichier_tex; do
dir=`dirname $f`
if [ `basename $dir` != "fig" ]
# On élimine les .tex qui sont dans fig/ pour ne pas compiler les images qui sont compilé autrement
then
echo "--------------------------------------------------"
echo "On s'attaque à $f";
echo "--------------------------------------------------"
echo "On entre dans $dir"
cd $dir
ls
echo "--------------------------------------------------"
echo "On remplace le le lieu du fichier style"
sed -i -e "s/lycee\/tools/lycee\/Archive\/2012-2013\/tools/g" $f;
pdflatex $f;
cd $ROOT
echo "Fin du boulot sur $f"
echo "--------------------------------------------------"
fi
done

View File

@@ -0,0 +1,33 @@
#!/bin/bash
# The next line tells bash to exit if a command return a non-true value
set -e
ROOT=`pwd`
OLD_ROOT="/media/documents/Cours/Prof/Enseignements"
fichier_tex=`find . -iname "*.tex" -o -iname "*.sty" -o -iname "*.cls"`
for f in $fichier_tex; do
dir=`dirname $f`
if [ `basename $dir` != "fig" ]
# On élimine les .tex qui sont dans fig/ pour ne pas compiler les images qui sont compilé autrement
then
echo "--------------------------------------------------"
echo "On s'attaque à $f";
#echo "--------------------------------------------------"
#echo "On entre dans $dir"
#cd $dir
#ls
#echo "--------------------------------------------------"
echo "On remplace le le lieu du fichier style"
echo "On remplace $OLD_ROOT par $ROOT"
sed -i -e "s|${OLD_ROOT}|${ROOT}|g" $f;
#pdflatex $f;
cd $ROOT
echo "Fin du boulot sur $f"
echo "--------------------------------------------------"
fi
done

26
tools/Other/doublea5.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
IFS=$'\n'
pdfs=`find $1 -iname "*.pdf"`
for i in $pdfs; do
# On va chercher le format du pdf
info=`pdfinfo "$i"`
#echo "$info"
size=`echo "$info" | grep "Page size" | cut -d':' -f2`;
# On enlève les espaces
size=${size//[[:blank:]]/};
#echo "Size" $size
# On va chercher le format du pdf
page=`echo "$info" | grep "Pages" | cut -d':' -f2`;
# On enlève les espaces
page=${page//[[:blank:]]/};
#echo $size
if [ $size = "419.528x595.276pts" ] && [ $page = "1" ]; then
outfile=${i%.pdf}_a4.pdf
if ! [ -f $outfile ]; then
echo "On double $i vers $outfile"
pdfnup --suffix a4 $i $i --outfile $outfile
fi
fi
done

95
tools/Other/fill_notes.py Normal file
View File

@@ -0,0 +1,95 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 lafrite <lafrite@Poivre>
#
"""
Parcours tous les dossiers et ajoute un fichier notes_***.rst quand il n'existe pas
"""
#import optparse
import argparse
from path import path
import jinja2
import copy
parser = argparse.ArgumentParser()
parser.add_argument("directory", help="Directory")
option = parser.parse_args()
templateLoader = jinja2.FileSystemLoader( searchpath="." )
templateEnv = jinja2.Environment( loader=templateLoader )
tpl_file = "./tools/Other/tpl_notes.rst"
tpl = templateEnv.get_template(tpl_file)
cwd = path("./").abspath()
directory = path(option.directory)
info = {"date" : "2013-07-01",
"modified" : "2013-07-01",
"summary": "Pas de résumé, note créée automatiquement parce que je ne l'avais pas bien fait...",
"authors" : "Benjamin Bertrand",
"tags": set(),
"category": set(),
"title" : "",
"telechargeable" : [],
}
ext_telechargeable = [".ipynb", ".ps", ".tex", ".pdf", ".csv", ".jpg", ".xlsx", ".xls", ".odt", ".ods", ".png", ".py", ".cls", ".sty", ".ggb", ".odc"]
non_exam_type = ["Cours", "Exo", "TD"]
exam_type = ["DS", "DM"]
def underline(string, cara = "#"):
return string + "\n" + cara * len(string)
for i in directory.walkdirs():
#if i.files("notes_*.rst"):
if not i.files("index.rst"):
cara = i.split('/')
try:
cara.remove('Archive')
except ValueError:
pass
if cara[-1] not in ["fig", "Bilan", "Conn"]:
folder_info = copy.deepcopy(info)
folder_info["title"] = underline("Notes sur " + cara[-1].replace('_', ' '))
print(folder_info['title'])
folder_info["category"].add(cara[1])
try:
tag = cara[2].replace('_', ' ')
folder_info["tags"].add(tag)
except IndexError:
pass
folder_info['tags'] = folder_info['tags'].union(set([i for i in exam_type if i in cara]))
folder_info['tags'] = folder_info['tags'].union(set([i for i in non_exam_type if i.lower() in [c.lower() for c in cara]]))
for f in i.files():
if f.ext in ext_telechargeable:
print("\t ",f.basename())
folder_info["telechargeable"] += [f.basename()]
if (i/'fig').exists():
for f in (i/'fig').files():
if f.ext in ext_telechargeable:
print("\t ",f.basename())
folder_info["telechargeable"] += ['fig/'+f.basename()]
if folder_info["telechargeable"]:
cible = i / "index.rst"
with open(cible,'w') as f:
f.write(tpl.render(folder_info))
# -----------------------------
# Reglages pour 'vim'
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
# cursor: 16 del

View File

@@ -0,0 +1,10 @@
src=$1
dest=$2
img=`find $src -iname "*.svg"`
for i in $img; do
echo $i to $dest`basename ${i%.svg}.png`;
#convert -negate $i -transparent white -resize 75 $dest`basename ${i%.svg}.png`;
convert $i -transparent white -resize 75 $dest`basename ${i%.svg}.png`;
done

13
tools/Other/tpl_notes.rst Normal file
View File

@@ -0,0 +1,13 @@
{{ title }}
:date: {{ date }}
:modified: {{ modified }}
:tags: {{ tags | join(",") }}
:category: {{ category | join(",") }}
:authors: {{ authors }}
:summary: {{ summary }}
{% for tel in telechargeable %}
`Lien vers {{tel}} <{{tel}}>`_
{% endfor %}

44
tools/README.rst Normal file
View File

@@ -0,0 +1,44 @@
Logique et organisation des styles Latex
########################################
:date: 2015-08-10
:modified: 2015-08-10
:tags: Outils
:category: Autres
:authors: Bertrand Benjamin
:summary: Explications autour des classes latex utilisées.
Les propriétés globables et les racourcis sont définis dans `base.sty <style/base.sty>`_.
Les couleurs sont définies dans `theme.sty <style/theme.sty>`_.
Classes latex
-------------
* Cours (dérivée de la classe de base Article): Classe adapté pour les cours
* Conn: Classe pour les petits contrôles de connaissances de début de cours.
* DS: (classe dérivée de `Exam <http://www.ctan.org/tex-archive/macros/latex/contrib/exam/>`_ )Classe adapté pour tout ce qui comporte des exercices et des questions.
* Exam (classe dérivée de `Exam <http://www.ctan.org/tex-archive/macros/latex/contrib/exam/>`_ ):
* Exo
* Bilan
DS, DM, examen, etc
^^^^^^^^^^^^^^^^^^^
Toutes ces classes dérivent de la classe `Exam <http://www.ctan.org/tex-archive/macros/latex/contrib/exam/>`_. Ce qui permet de bénéficier de la gestion des exercices, des points etc.
On y a ajouter quelques commande pour produire un titre ou un page de garde (pour les examens en particulier). Pour cela quelques éléments doivent être définis
* :code:`typedoc{...}`: le type de document. Doit être choisi parmi
* DS: ajoute *Devoir surveillé* au titre du document.
* DSCorr: ajout *Devoir surveillé (correction)* au titre du document et *correction* au sous titre.
* DM: ajoute *Devoir maison* au titre du document. Et la *date* devient *À rendre le ...*.
* DMCorr: ajout *Devoir maison (correction)* au titre du document et *correction* au sous titre.
* Other: /!\ à retoucher pour le rendre plus maléable
* :code:`\titre{...}` le titre du document
* :code:`\duree{...}` Définit le temps pour faire le devoir.
* :code:`\sujet{...}` Pour produire différentes versions d'un sujet
* :code:`\ptpres{...}` Points de présentation (/!\ n'apparaît pas dans la page de présentation si l'on veut faire le total des points)

BIN
tools/example/Conn.pdf Normal file

Binary file not shown.

52
tools/example/Conn.tex Normal file
View File

@@ -0,0 +1,52 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classConn}
% Title Page
\title{}
\author{}
\date{Aujourd'hui}
\classe{Une classe}
\begin{document}
\sujet
\begin{Exo}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{Exo}
\begin{Exo}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{Exo}
\sujet
\begin{Exo}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{Exo}
\begin{Exo}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{Exo}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

BIN
tools/example/DS.pdf Normal file

Binary file not shown.

146
tools/example/DS.tex Normal file
View File

@@ -0,0 +1,146 @@
\documentclass[a4paper,12pt, addpoints]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classDS}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/example/annee}
% Title Page
\titre{Examples}
% \quatreC \quatreD \troisB \troisPro
\classe{Une classe}
\date{Une date}
\duree{durée}
\typedoc{DS}
\begin{document}
\maketitle
\section{Section}
Différentes façons de présenter les questions et les points:
\begin{center}
\gradetable[v]
\hspace{1cm}
\pointtable[v]
\begin{tabular}{|p{10cm} | c |}
\hline
Exercice 1 & \pointsofquestion{1} point \\
\hline
Exercice 2 & \pointsofquestion{2} points \\
\hline
Exercice 3 & \pointsofquestion{3} points \\
\hline
Exercice 4 & \pointsofquestion{4} points \\
\hline
Exercice 5 & \pointsofquestion{5} points \\
\hline
Maîtrise de la langue & 4 points \\
\hline
\end{tabular}
\end{center}
\begin{questions}
\question[2]
\begin{parts}
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\part
\begin{subparts}
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\end{subparts}
\end{parts}
\question
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\begin{savedSolution}
Voici la belle solution (question \thequestion, part \partlabel, subpart \subpartlabel)
\end{savedSolution}
\question[2\half] Coucou
\question[2] Coucou
\titledquestion{Design}[10]
\end{questions}
\section{Commandes custom}
\begin{enumerate}
\item Ensembles
\begin{itemize}
\item \verb"\N" $\N$
\item \verb"\Z" $\Z$
\item \verb"\Q" $\Q$
\item \verb"\R" $\R$
\item \verb"\C" $\C$
\end{itemize}
\item Intervalles
\begin{itemize}
\item \verb"\intOO{1}{2}" $\intOO{1}{2}$
\item \verb"\intOF{1}{2}" $\intOF{1}{2}$
\item \verb"\intFO{1}{2}" $\intFO{1}{2}$
\item \verb"\intFF{1}{2}" $\intFF{1}{2}$
\end{itemize}
\item Logique
\begin{itemize}
\item \verb"\equiv" $\equiv$
\end{itemize}
\item Vecteurs
\begin{itemize}
\item \verb"\vec{A}" $\vec{AB}$
\item \verb"\norme{AB}" $\norme{AB}$
\item \verb"\scal{u}{u}" $\scal{u}{v} $
\item \verb"\vectCoord{1}{2}" $\vectCoord{1}{2}$
\end{itemize}
\item Proba
\begin{itemize}
\item \verb"\coefBino{20}{2}" $\coefBino{20}{2}$
\end{itemize}
\end{enumerate}
\pagebreak
\section{Solutions sauvées}
\showallsolutions
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

11
tools/example/annee.sty Executable file
View File

@@ -0,0 +1,11 @@
\NeedsTeXFormat{LaTeX2e}
% Commandes réservés pour l'année scolaire 2012-2013
\newcommand{\op@annee}{2013-2014}
% Classes concernées
\newcommand{\quatreC}{Quatrième C}
\newcommand{\quatreD}{Quatrième D}
\newcommand{\troisB}{Troisième B}
\newcommand{\troisPro}{Troisième Pro}

BIN
tools/example/bilan.pdf Normal file

Binary file not shown.

71
tools/example/bilan.tex Normal file
View File

@@ -0,0 +1,71 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classBilan}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/2014_2015}
% Title Page
\titre{Devoir surveillé n}
% \seconde \premiereS \PSTMG \TSTMG
\classe{\seconde}
\date{10 mars 2015}
\begin{document}
\maketitle
\begin{minipage}{0.5\linewidth}
\Large
Nom
Prénom
\end{minipage}
\begin{minipage}{0.3\linewidth}
\begin{flushright}
\Huge 15 / 20
\end{flushright}
\end{minipage}
\vfill
\fbox{%
\begin{minipage}{0.9\linewidth}
\hfill
\vspace{2cm}
\end{minipage}
}
\vfill
\begin{tabular}{|p{3cm}|p{3cm}|p{3cm}|}
\hline
\rowcolor{highlightbg} Exercices & Barème & réussite \\
\hline
Exercice 1 & 10 & 9 \\
\hline
1 & 1 & \NoRep \\
\hline
2 & 1 & \RepZ \\
\hline
3 & 1 & \RepU \\
\hline
3 & 1 & \RepD \\
\hline
3 & 1 & \RepT \\
\hline
\end{tabular}
\vfill
\pagebreak
\maketitle
pas bien
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

BIN
tools/example/examen.pdf Normal file

Binary file not shown.

70
tools/example/examen.tex Normal file
View File

@@ -0,0 +1,70 @@
\documentclass[a4paper,12pt]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classExamen}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/example/annee}
\usepackage{lastpage}
% Title Page
\titre{Brevet blanc}
\classe{Troisième}
\date{4 juin 2014}
\duree{2 heures}
\typedoc{Other}
\begin{document}
%\titlepage
\maketitle
\begin{questions}
\question[2]
\begin{parts}
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\part
\begin{subparts}
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{subparts}
\end{parts}
\question
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\question[2\half] Coucou
\question[2] Coucou
\titledquestion{Design}[10]
\end{questions}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

BIN
tools/example/exo.pdf Normal file

Binary file not shown.

68
tools/example/exo.tex Normal file
View File

@@ -0,0 +1,68 @@
\documentclass[a4paper,12pt,landscape, twocolumn]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classExo}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/example/annee}
% Title Page
\titre{<++chap++> - Exercices}
\classe{Une classe}
\date{Une date}
\begin{document}
\begin{questions}
\question[2]
\begin{parts}
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\part
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\part
\begin{subparts}
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\subpart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{subparts}
\end{parts}
\eject
\question
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\question[2\half] Coucou
\question[2] Coucou
\eject
\titledquestion{Design}[10] plop
\end{questions}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

Binary file not shown.

45
tools/example/presentation.tex Executable file
View File

@@ -0,0 +1,45 @@
\documentclass[a4paper,10pt,xcolor=table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classPres}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/2014_2015}
\author{}
\title{}
\date{}
\begin{document}
\begin{frame}{Une slide}
\begin{Exo}
\begin{enumerate}
\item
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
\item
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
\item
\begin{enumerate}
\item
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
\item
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
\item
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
\end{enumerate}
\end{enumerate}
\end{Exo}
\end{frame}
\end{document}

1929
tools/skeleton/Bilan.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,82 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classConn}
% Title Page
\title{}
\author{}
\date{}
\begin{document}
\begin{multicols}{2}
Nom - Prénom - Classe:
~\\[1cm]
\textbf{Note:} \hfill {\Large /20}
~\\[1cm]
\textbf{Commentaires:} \\[4cm]
\textbf{Compétences:}
%\begin{competences}
% \competence Dessin en 3D
% \competence Lecture graphique
% \competence Lecture tableau de varation
% \competence Écriture mathématique
%\end{competences}
\vfill
\hspace{-1cm}
\begin{tabular}{|p{5cm}|*{3}{c|}}
\hline
Compétences & Non aquis & Cours d'aquisition & Aquis \\
\hline
<++> Compétences <++>
\hline
\end{tabular}
\vfill
\columnbreak
Nom - Prénom - Classe:
~\\[1cm]
\textbf{Note:} \hfill {\Large /20}
~\\[1cm]
\textbf{Commentaires:} \\[4cm]
\textbf{Compétences:}
%\begin{competences}
% \competence Dessin en 3D
% \competence Lecture graphique
% \competence Lecture tableau de varation
% \competence Écriture mathématique
%\end{competences}
\vfill
\hspace{-1cm}
\begin{tabular}{|p{5cm}|*{3}{c|}}
\hline
Compétences & Non aquis & Cours d'aquisition & Aquis \\
\hline
<++> Compétences <++>
\hline
\end{tabular}
\vfill
\end{multicols}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

29
tools/skeleton/Conn.tex Normal file
View File

@@ -0,0 +1,29 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classConn}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
% Title Page
\title{}
\author{}
\date{<++ date ++>}
% \seconde \premiereS \PSTMG \TSTMG
\classe{<++Une classe++>}
\begin{document}
\sujet
\begin{Exo}
<++ Exercice ++>
\end{Exo}
\sujet
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

21
tools/skeleton/Cours.tex Normal file
View File

@@ -0,0 +1,21 @@
\documentclass[a4paper,10pt, table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classCours}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
% Title Page
\titre{<++titre++>}
% \seconde \premiereS \PSTMG \TSTMG
\classe{<++classe++>}
\date{<++date++>}
\begin{document}
\maketitle
<++Cours++>
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

30
tools/skeleton/DS.tex Normal file
View File

@@ -0,0 +1,30 @@
\documentclass[a4paper,10pt, table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classDS}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
% Title Page
\titre{<++titre++>}
% \seconde \premiereS \PSTMG \TSTMG
\classe{<++classe++>}
\date{<++ date | datetimeformat("%A %d %B %Y")++>}
\duree{1 heure}
%\sujet{%{{infos.subj%}}}
% DS DSCorr DM DMCorr Other
\typedoc{<++doc++>}
\begin{document}
\maketitle
Le barème est donné à titre indicatif, il pourra être modifié.
\begin{questions}
\question
\end{questions}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

30
tools/skeleton/Exam.tex Normal file
View File

@@ -0,0 +1,30 @@
\documentclass[a4paper,10pt, table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classExamen}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
% Title Page
\titre{<++titre++>}
% \seconde \premiereS \PSTMG \TSTMG
\classe{<++Class++>}
\date{<++date++>}
\duree{<++duree++>}
% DS DSCorr DM DMCorr Other
\typedoc{<++Type++>}
\begin{document}
\titlepage
\begin{questions}
\question
\end{questions}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

21
tools/skeleton/Exo.tex Normal file
View File

@@ -0,0 +1,21 @@
\documentclass[a4paper,12pt,landscape, twocolumn]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classExo}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
% Title Page
\titre{<++Chapitre++> - Exercices}
% \seconde \premiereS \PSTMG \TSTMG
\classe{<++Classe++>}
\date{<++Date++>}
\begin{document}
<++ Exo ++>
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -0,0 +1,51 @@
\documentclass[a4paper,10pt,xcolor=table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classPres}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
\author{}
\title{}
\date{}
\begin{document}
\begin{frame}{Calcul mental}
\begin{center}
\LARGE 30 secondes par calcul
\end{center}
\end{frame}
\begin{frame}{Calcul 1}
\huge
\begin{eqnarray*}
\end{eqnarray*}
\end{frame}
\begin{frame}{Calcul 2}
\huge
\begin{eqnarray*}
\end{eqnarray*}
\end{frame}
\begin{frame}{Calcul 3}
\huge
\begin{eqnarray*}
\end{eqnarray*}
\end{frame}
\begin{frame}{Calcul 4}
\huge
\begin{eqnarray*}
\end{eqnarray*}
\end{frame}
\begin{frame}{Fin}
\begin{center}
\LARGE On retourne son papier.
\end{center}
\end{frame}
\end{document}

11
tools/skeleton/index.rst Normal file
View File

@@ -0,0 +1,11 @@
<++ Tittre ++>
##############
:date: <++ date | datetimeformat("%Y-%m-%d") ++>
:modified: <++ date ++>
:tags: <++ tags ++>
:category: <++ classe ++>
:authors: Bertrand Benjamin
:summary: <++ resumé ++>
<++ contenu ++>

16
tools/skeleton/presentation.tex Executable file
View File

@@ -0,0 +1,16 @@
\documentclass[a4paper,10pt,xcolor=table]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classPres}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
\author{}
\title{}
\date{}
\begin{document}
\begin{frame}{<++Titre++>}
\end{frame}
\end{document}

View File

@@ -0,0 +1,29 @@
=====
Niveau:
Thème:
Discipline
----------
Socle de compétence (thèmes)
----------------------------
Objectifs
---------
Contenu d'enseignement
----------------------
Production
----------
Organisation
------------
Calendrier
----------

View File

@@ -0,0 +1,81 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classBilan}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
\usepackage{multicol}
% Title Page
\titre{\Var{latex_info['titre']}}
% \seconde \premiereS \PSTMG \TSTMG
\classe{\Var{latex_info['classe']}}
\date{\Var{latex_info['date']}}
\begin{document}
\Block{for (name, notes) in eleves.iterrows()}
\maketitle
\begin{minipage}{0.5\linewidth}
\large
\Var{name}
\end{minipage}
\begin{minipage}{0.3\linewidth}
\begin{flushright}
\Large \Var{notes[ds_name]} / \Var{barem[ds_name][0]}
\end{flushright}
\end{minipage}
\vfill
\fbox{%
\begin{minipage}{0.9\linewidth}
\hfill
\vspace{3cm}
\end{minipage}
}
\vfill
\scriptsize
\begin{multicols}{2}
\begin{tabular}{|p{3cm}|c|c|}
\hline
\rowcolor{highlightbg} Exercices & Réussite & Barème \\
\hline
\Block{for question in barem.T[1:(nbr_questions//2)+1].T}
\Var{question} & \Var{notes[question]} & \Var{barem[question][0]} \\
\hline
\Block{endfor}
\end{tabular}
\begin{tabular}{|p{3cm}|c|c|}
\hline
\rowcolor{highlightbg} Exercices & Réussite & Barème \\
\hline
\Block{for question in barem.T[(nbr_questions//2) + 1:].T}
\Var{question} & \Var{notes[question]} & \Var{barem[question][0]} \\
\hline
\Block{endfor}
\end{tabular}
\end{multicols}
\vfill
\begin{center}
Pas de réponse \NoRep \hfill
Tout faux \RepZ \hfill
Beaucoup d'erreurs \RepU \hfill
Quelques erreurs \RepD \hfill
Juste \RepT \hfill
\end{center}
\normalsize
\pagebreak
\Block{endfor}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

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

@@ -0,0 +1,249 @@
\NeedsTeXFormat{LaTeX2e}
% 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}
%\RequirePackage{arev}
\RequirePackage{kpfonts}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
% Les tableaux
\renewcommand{\arraystretch}{2}
% Lecture des fichiers csv et affichage des csv en table
\RequirePackage{csvsimple}
%%%%%%%%%%%%%%%%%
% 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}}
\newcommand{\intOO}[2]{\left]{#1}\,{;}\,{#2}\right[} % intervalles ouvert ouvert
\newcommand{\intOF}[2]{\left]{#1}\,{;}\,{#2}\right]} % intervalles ouvert fermé
\newcommand{\intFO}[2]{\left[{#1}\,{;}\,{#2}\right[} % intervalles fermé ouvert
\newcommand{\intFF}[2]{\left[{#1}\,{;}\,{#2}\right]} % intervalles fermé fermé
% Vecteurs
\renewcommand{\vec}[1]{\overrightarrow{#1}} % représentation d'un vecteur
\newcommand{\norme}[1]{||\vec{#1}||} % Norme d'un vecteur
\newcommand{\scal}[2]{\vec{#1} \cdot \vec{#2}} % Produit scalaire
\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}$}
}
%%%%%%%%%%%%%%%%%%%%%%
% Environment Exo %
%%%%%%%%%%%%%%%%%%%%%%
\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}}
% New environment définitions
\newenvironment{Def}{%
\medskip
\noindent \textbf{Définition:}
}{%
}
% New environment exemples
\newenvironment{Ex}{%
\medskip
\noindent \textbf{Exemples:}
}{%
}
% New environment propriété
\newenvironment{Prop}{%
\medskip
\noindent \textbf{Propriété:}
}{%
}
% New environment Démo
\newenvironment{Demo}{%
\medskip
\noindent \textbf{Démonstration:}
}{%
\\ $\triangle$
}
% New environment remarque
\newenvironment{Rmq}{%
\medskip
\noindent \textbf{Remarque:}
}{%
}
% New environment methode
\newenvironment{Mthd}{%
\medskip
\noindent \textbf{Méthode:}
}{%
}
\newenvironment{hint}{%
Indication:
\begin{itshape}
}{%
\end{itshape}
}
\def\title#1{\gdef\@title{#1}\gdef\Thetitle{#1}}
\def\date#1{\gdef\@date{#1}\gdef\Thedate{#1}}
% ##########################
% 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);
}
% Icones
\newcommand{\icon}[2][scale=0.4]{%
\includegraphics[#1]{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/icons/#2.png}%
}

View File

@@ -0,0 +1,56 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classBilan}
% classe de base
%\LoadClass[a4paper,12pt, landscape, twocolumn]{article}
\LoadClass[a5paper,12pt]{article}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/theme}
\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}{(??)}

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

@@ -0,0 +1,65 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classConn}
% classe de base
\LoadClass[a5paper, 12pt]{article}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/none_beamer}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/theme}
\RequirePackage[explicit]{titlesec} % pour redéfinir \section
% 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{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/none_beamer}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/theme}
% 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{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/remixExam}

View File

@@ -0,0 +1,10 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classExamen}
% classe de base
\LoadClassWithOptions{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/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{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/remixExam}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/theme}
\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{classDS}
%Classe de base - Beamer
\pdfminorversion=4
\LoadClassWithOptions{beamer}
\usetheme{Singapore}
\usepackage[defaultsans]{droidsans}
\usepackage[T1]{fontenc}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/theme}
% Les tableaux
\renewcommand{\arraystretch}{1.5}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Some files were not shown because too many files have changed in this diff Show More