-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpsi_beamer.cls
146 lines (117 loc) · 4.64 KB
/
mpsi_beamer.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mpsi_beamer}[2012/08/03 Classe perso mpsi pour beamer]
\PassOptionsToPackage{force}{filehook}
\PassOptionsToPackage{dvipsnames}{xcolor}
\RequirePackage{etex}
\RequirePackage{xkeyval}
\newif\ifNotesCours
\DeclareOptionX{NotesCours}[true]{\NotesCourstrue}
\DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptionsX
% pour un passage à LuaTeX, il faudra revoir les options concernant
% l'encodage et le choix des polices
% \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{beamer}}
% rajouter xcolor=pst dans les options de LoadClass pour faire du
% pstricks ainsi que dvips (pour passer l'option à hyperref)
%\LoadClass[utf8x,xcolor=pst,smaller]{beamer}
\ifNotesCours
\PassOptionsToClass{handout}{beamer}
\fi
\LoadClass[utf8,smaller,mathserif]{beamer}
% utf8x plutôt que utf8 pour pouvoir taper du grec directement
% mais c'est incompatible avec biblatex
%% Attention, des conflits entre standalone et pstricks: standalone
%% doit être chargé avant pstricks
%% \item (LaTeX Error: Command \clipbox already defined.
% Or name \end... illegal, see p.192 of the manual.)
\RequirePackage{standalone}
\RequirePackage{animate}
\RequirePackage{beamerthemempsi}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{footline}{sous licence
\tiny\url{http://creativecommons.org/licenses/by-nc-nd/2.0/fr/}\hfill \insertframenumber/\inserttotalframenumber}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamertemplate{enumerate item}{\insertenumlabel}
\renewcommand{\insertsubenumlabel}{\alph{enumii}}
\setbeamertemplate{enumerate subitem}{\insertsubenumlabel}
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\thesubsubsection}{\alph{subsubsection}}
\renewcommand\theenumi{\textsf{\bfseries\arabic{enumi}}}
\renewcommand\theenumii{\textsf{\bfseries\alph{enumii}}}
%\renewcommand<>{\emph}[1]{{\only#2{\color{emphColor}#1}}
\renewcommand{\emph}[1]{{\color{titleColor}\sl{#1}}}
\ifNotesCours
\RequirePackage{tikz,pgfplots}% à mettre absolument avant pgfpages
\RequirePackage{pgfpages}
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm,landscape]
\definecolor{normalBlockColor}{RGB}{240,240,240}
\definecolor{sectionColor}{RGB}{240,200,200}
\definecolor{subsectionColor}{RGB}{200,200,200}
\definecolor{sectionTextColor}{RGB}{0,0,0}
\definecolor{subsectionTextColor}{RGB}{0,0,0}
\definecolor{normalTitleBlockColor}{RGB}{250,255,220}
\definecolor{normalBlockTitleTextColor}{RGB}{0,0,0}
\definecolor{titleColor}{RGB}{200,200,250}
\definecolor{titleTextColor}{RGB}{0,0,0}
\fi
% Environnements à redéfinir éventuellement plus tard, avec
% \newtheorem et en recopiant/adaptant les styles utilisés dans Beamer
\newenvironment<>{DefiniTion}[1][]{\begin{definition}[#1]#2}{\end{definition}}
% \Definition est déjà défini ailleurs, donc CamelCase
\newenvironment<>{Consequence}[1][]{\begin{block}#2{#1}}{\end{block}}
\newenvironment<>{Block}{\begin{block}#1{}}{\end{block}}
\newenvironment<>{Theoreme}[1][]{\begin{theorem}[#1]#2}{\end{theorem}}
\newenvironment<>{Exemple}[1][]{\begin{example}[#1]#2}{\end{example}}
\newenvironment<>{indispensable}[1][]{\relax}{\relax}
\author{Julien Cubizolles}
\date{\today}
\title{Titre}
\institute{Lycée Louis le Grand}
\setbeamertemplate{section in toc}[sections numbered]
\AtBeginSection[]{
\begin{frame}{}
\tableofcontents[currentsection,subsectionstyle=hide/hide/hide,subsubsectionstyle=hide/hide/hide]
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}{}
\tableofcontents[currentsection, subsectionstyle=show/shaded/hide,subsubsectionstyle=hide/hide/hide]
\end{frame}
}
\AtBeginSubsubsection[]{
\begin{frame}{}
\tableofcontents[currentsection, subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
}
\AtBeginDocument{
\maketitle
}
\uselanguage{French}
\languagepath{French}
% \RequirePackage{skull}
\RequirePackage{booktabs}
\RequirePackage{multirow}
\RequirePackage{marvosym}
\input{configuration-math.tex}
\input{configuration-polices.tex}
%
\input{configuration-physique.tex}
\input{configuration-chimie.tex}
\input{configuration-couleurs.tex}
\RequirePackage[normalem]{ulem}
\renewcommand\uline{
\let\set@color\beamerorig@set@color
\let\reset@color\beamerorig@reset@color
\bgroup\markoverwith
{\textcolor{HighlightColor}{\rule[-.5ex]{2pt}{2.5ex}}}\ULon}
\input{configuration-tikz-base.tex}
\input{configuration-tikz-pgfplots.tex}
\input{wilk-tikz-circuits}
\input{commandes-auteur-tikz-circuits}
\input{shortcut}
\input{chimie}
\input{configuration-biblio.tex}
\makeatother
\endinput