-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros_physique.tex
100 lines (86 loc) · 2.03 KB
/
macros_physique.tex
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
%%%% header
\pagestyle{fancy}
\lhead { % left header
\textbf{\footnotesize \'Ecole normale supérieure}
\newline
\footnotesize Préparation à l'agrégation de physique-chimie option physique
}
\chead{ % central header
}
\rhead{ % right header
\hfill \textbf{\footnotesize Compte-rendu leçon physique}
\newline \hfill
\footnotesize 2022-2023
}
\renewcommand{\headrulewidth}{0.4pt}
%%%% blocks for report
\newenvironment{reportBlock}[1]{
\begin{tcolorbox}
[
breakable, enhanced jigsaw, % to break box over page
arc = 0mm, % straight line
title = \textbf{#1}, % title
coltitle = black, % title font color
colbacktitle= black!10!white, % light-gray title
colback= white, % white background
colframe= black % dark frame
]
}
{
\end{tcolorbox}
}
%%%% blocks for experiment
\newenvironment{experimentBlock}{
\begin{tcolorbox}
[
breakable, enhanced jigsaw, % to break box over page
arc = 0mm, % straight line
colback= white, % white background
colframe= black % dark frame
]
}
{
\end{tcolorbox}
}
%%%% header block
\newenvironment{headerBlock}{
\begin{tcolorbox}
[
arc= 0mm, % straight line
colback= black!10!white, % light-gray background
colframe= white % no frame
]
}
{
\end{tcolorbox}
}
%%%% Section
\newcommand{\sectionC}[1]{%
\refstepcounter{section}
% number and text
\textcolor{section} {\textbf {\Roman{section}-- #1}}
% subsection counter update
\setcounter{subsection}{0}
\addcontentsline{toc}{section}{\protect\numberline{} #1}
}%
%%%% Subsection
\newcommand{\subsectionC}[1]{%
\refstepcounter{subsection}
% number and text
\textcolor{section} {\arabic{subsection}-- #1}
% subsection counter update
\addcontentsline{toc}{subsection}{\protect\numberline{} #1}
}%
%%%% Highlight frame
\newenvironment{highlightFrame}[1]{
\begin{tcolorbox}
[
breakable, enhanced jigsaw, % to break box over page
arc = 0mm, % straight line
colback= white, % white background
colframe= highlight % orange frame
]
}
{
\end{tcolorbox}
}