tex file + grab

This commit is contained in:
√(noham)²
2025-04-13 21:06:51 +02:00
parent 5d2a553c0b
commit d42ae0d105
8 changed files with 402 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
\documentclass[11pt,a4paper]{article}
\usepackage{amsfonts,amsmath,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage{fontenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{mathptmx}
\usepackage{fancybox}
@@ -10,11 +10,11 @@
\usepackage{tikz}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
pdftitle={Exo7 - Exercices de mathématiques},
pdfauthor={Exo7}
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
pdftitle={Exercices de mathématiques},
pdfauthor={Noham Rivoirard}
}
\usepackage{geometry}
\geometry{top=2cm, bottom=2cm, left=2cm, right=2cm}
@@ -42,16 +42,16 @@
% Modified to include variable number of stars and optional title
\newcommand{\enonce}[2]{%
\refstepcounter{exo}%
\edef\currentexonum{\theexo}%
\expandafter\edef\csname exoNum@\exoref\endcsname{\theexo}%
\hypertarget{exo7:\exoref}{}\label{exo7:\exoref}%
{\bf Exercice \arabic{exo}}~\printStars{\exostars}\ \
\ifthenelse{\equal{\exotitle}{}}{#2}{\textbf{\exotitle} -- #2}\vspace{1mm}\hrule\vspace{1mm}%
}
}
% Command to print stars using TikZ foreach
\newcommand{\printStars}[1]{%
\foreach \i in {1,...,#1} {%
\includegraphics[height=1em]{Icone_etoile.png}%
\includegraphics[height=1em]{assets/Icone_etoile.png}%
}%
}
@@ -61,15 +61,47 @@
\ifthenelse{\equal{\ref{cor7:#1}}{\ref{bidon}}}{}{\hyperlink{cor7:#1}{\texttt{Correction} $\blacktriangledown$}}}}%
\hfill{\scriptsize\texttt{[#1]}}\vspace{1mm}\hrule\vspace*{7mm}%
}
\newcommand{\indication}[1]{\hypertarget{ind7:#1}{}\label{ind7:#1}{\bf Indication pour \hyperlink{exo7:#1}{l'exercice \currentexonum $\blacktriangle$}}\vspace{1mm}\hrule\vspace{1mm}}
\newcommand{\indication}[1]{%
\hypertarget{ind7:#1}{}\label{ind7:#1}%
{\bf Indication pour \hyperlink{exo7:#1}{l'exercice \csname exoNum@#1\endcsname\ $\blacktriangle$}}\vspace{1mm}\hrule\vspace{1mm}}
\newcommand{\correction}[1]{%
\hypertarget{cor7:#1}{}\label{cor7:#1}%
{\bf Correction de \hyperlink{exo7:#1}{l'exercice \csname exoNum@#1\endcsname\ $\blacktriangle$}}\vspace{1mm}\hrule\vspace{1mm}}
\newcommand{\finindication}{\vspace{1mm}\hrule\vspace*{7mm}}
\newcommand{\correction}[1]{\hypertarget{cor7:#1}{}\label{cor7:#1}{\bf Correction de \hyperlink{exo7:#1}{l'exercice \currentexonum $\blacktriangle$}}\vspace{1mm}\hrule\vspace{1mm}}
\newcommand{\fincorrection}{\vspace{1mm}\hrule\vspace*{7mm}}
\newcommand{\finenonces}{\newpage}
\newcommand{\finindications}{\newpage}
\newcommand{\fiche}[1]{} \newcommand{\finfiche}{}
\newcommand{\addcommand}[1]{}
% Bibmath commands
\newcommand{\mcm}{\mathcal{M}}
\newcommand{\mcc}{\mathcal{C}}
\newcommand{\mcmn}{\mathcal{M}}
\newcommand{\mcmnr}{\mathcal{M}_n(\mtr)}
\newcommand{\mcmnk}{\mathcal{M}_n(\mtk)}
\newcommand{\mcsn}{\mathcal{S}_n}
\newcommand{\mcs}{\mathcal{S}}
\newcommand{\mcd}{\mathcal{D}}
\newcommand{\mcsns}{\mathcal{S}_n^{++}}
\newcommand{\glnk}{GL_n(\mtk)}
\newcommand{\mnr}{\mathcal{M}_n(\mtr)}\DeclareMathOperator{\ch}{ch}
\DeclareMathOperator{\sh}{sh}
\DeclareMathOperator{\vect}{vect}\DeclareMathOperator{\card}{card}
\DeclareMathOperator{\comat}{comat}\DeclareMathOperator{\imv}{Im}
\DeclareMathOperator{\rang}{rg}
\DeclareMathOperator{\Fr}{Fr}
\DeclareMathOperator{\diam}{diam}
\DeclareMathOperator{\supp}{supp}
\newcommand{\veps}{\varepsilon}
\newcommand{\mcu}{\mathcal{U}}
\newcommand{\mcun}{\mcu_n}
\newcommand{\dis}{\displaystyle}
\newcommand{\croouv}{[\![}
\newcommand{\crofer}{]\!]}
\newcommand{\rab}{\mathcal{R}(a,b)}
\newcommand{\pss}[2]{\langle #1,#2\rangle}
% End of preamble
\usepackage{graphics}
\usepackage[all]{xy}
@@ -84,17 +116,31 @@ Enoncé de l'exercice..
\finenonce{000001}
\finexercice
\exercice{000002, bodin, 1998/09/01, 2, Titre de l'exercice}
\enonce{000002}{}
Enoncé de l'exercice..
\finenonce{000002}
\finexercice
\newpage
\indication{000001}
Indication de l'exercice..
\finindication
\indication{000002}
Indication de l'exercice..
\finindication
\newpage
\correction{000001}
Correction de l'exercice..
\fincorrection
\correction{000002}
Correction de l'exercice..
\fincorrection
\end{document}