Template Latex 2 - devoir mathématiques, série exercices

📅 February 16, 2024   |   👁️ Views: 184




Votre navigateur ne supporte pas les PDFs. Voir le Lien de Téléchargement au dessous .

\documentclass[12pt,a4paper]{article}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage[left=1.00cm, right=1.00cm, top=0.50cm, bottom=1.00cm]{geometry}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{mathrsfs}
\usepackage{enumitem}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage[ddmmyyyy]{datetime}
\usepackage{xparse}% defaul parameter for newcommand

\usepackage{tikz}
\usetikzlibrary{shapes}

\usepackage{draftwatermark}
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue
}

\definecolor{cc}{rgb}{236,0,140}
\newcommand{\mylink}{\href{https://mosaid.xyz/cc}{www.mosaid.xyz}}
\SetWatermarkText{\color{cc!10!white}{www.mosaid.xyz}}
\SetWatermarkLightness{0.95}
\SetWatermarkScale{0.8}

% Define colors
\definecolor{lightblue}{rgb}{0.68, 0.85, 0.9}
\definecolor{lightred}{RGB}{255,200,200}
\definecolor{darkred}{RGB}{220,50,50}
\definecolor{lightblue}{RGB}{173,216,230}
\definecolor{darkblue}{RGB}{0,0,139}
\definecolor{lightgreen}{RGB}{144,238,144}
\definecolor{darkgreen}{RGB}{0,100,0}
\definecolor{lightpurple}{RGB}{221,160,221}
\definecolor{darkpurple}{RGB}{148,0,211}

\newcommand{\myhighlight}[2]{\setlength{\fboxsep}{0pt}\fcolorbox{#1}{#1}{\textcolor{black}{#2}}}

\newcommand{\mylabel}[2][lightblue]{%
    \begin{tikzpicture}[baseline=0pt]
        \node[draw=#1, fill=#1, text=black, inner sep=2pt,
    rounded corners=2pt, font=\tiny, above,anchor=south] at (0,0) (label) {#2}; % Adjust the y-coordinate here
        \draw[->, thick, #1] (label) -- +(10pt,0);
    \end{tikzpicture}%
}

% Apply settings to the enumerate environment
\setlist[enumerate]{ % Apply settings to the enumerate environment
    label={\mylabel{\arabic*}}, % Define the format of the label for each item
    topsep=0pt, % Vertical space before and after the entire list
    partopsep=0pt, % Vertical space before and after the list, but not between items
    parsep=3pt, % Vertical space between paragraphs within an item
    itemsep=3pt, % Vertical space between items
    after=\vspace*{-\baselineskip}, % Additional vertical space after the list
    before=\vspace*{-0.5\baselineskip}, % Additional vertical space before the list
    leftmargin=10pt, % Left margin of the entire list
    rightmargin=0pt, % Right margin of the entire list
    itemindent=0pt, % Indentation of the item label from the left margin
    labelsep=-10pt, % Distance between the label and the text of the item
    align=left % Alignment of the labels (left, right, or center)
}

% Define fancy exercise command
\newcommand{\exea}[1]{
    \begin{tikzpicture}
        \node[rectangle, rounded corners=3pt, inner sep=2pt,
    outer sep=0pt, fill=lightred, draw=darkred, line width=1.2pt]
    {\textcolor{darkred}{\textbf{Exercice #1:}}};
    \end{tikzpicture}
}

% Define fancy exercise command
\newcommand{\exeb}[1]{
    \begin{tikzpicture}
        \node[rectangle, rounded corners=5pt, inner sep=3pt,
    outer sep=0pt, fill=lightblue, draw=darkblue, line width=1.5pt]
    {\textcolor{darkblue}{\textbf{Exercise #1:}}};
    \end{tikzpicture}
}


% Define fancy exercise command
\newcommand{\exec}[1]{
    \begin{tikzpicture}
        \node[trapezium, trapezium left angle=75, trapezium right angle=105,
        inner sep=3pt, outer sep=0pt, fill=lightgreen, draw=darkgreen, line width=1.5pt]
        {\textcolor{darkgreen}{\textbf{Exercise #1:}}};
    \end{tikzpicture}
}

% Define fancy exercise command
\newcommand{\exed}[1]{
    \begin{tikzpicture}[baseline=(label.base)]
        \node[ellipse, inner sep=3pt, outer sep=0pt, fill=lightpurple, draw=darkpurple, line width=1.5pt]
    at (0,0.2)
        {\textcolor{darkpurple}{\textbf{Exercise #1:}}};
    \end{tikzpicture}
}


\begin{document}
\thispagestyle{empty}
\noindent
\begin{center}
    \begin{tabular}{@{}p{0.22\textwidth}p{0.57\textwidth}p{0.17\textwidth}}
        %\toprule
            \multirow{2}{*}{\parbox{\linewidth}{Prof MOSAID \newline \mylink }}
            & \Centering {yet another latex template} & \hfill  2BAC-PC/SVT \\
        \bottomrule
    \end{tabular}
\end{center}
\exea{1} \\
\noindent
\begin{tabular}{@{}p{0.01\textwidth}|p{0.33\textwidth}p{0.33\textwidth}p{0.33\textwidth}}
    &\multicolumn{3}{p{0.9\textwidth}}{%
        \mylabel[lightpurple]{1.} Calculer les intégrals suivants \myhighlight{yellow}{(utilisation des primitives)}
    }\\
    &\begin{enumerate}
        \item \(\int_0^{3} e^x dx\)
        \item \(\int_0^{3} x^2 dx\)
        \item \(\int_0^{\pi} \cos x dx\)
    \end{enumerate}
    &\begin{enumerate}[start=4]
        \item \(\int_0^{3} \frac{dx}{x^2}\)
        \item \(\int_0^{3} 6xe^{3x^2+1} dx\)
        \item \(\int_0^{\frac{\pi}{2}} \cos xe^{\sin x} dx\)
    \end{enumerate}
    &\begin{enumerate}[label={\mylabel[red]{\arabic*}},start=17]
        \item \(\int_2^3 \sqrt[3]{x^5}dx\)
        \item \(\int_1^e \frac{\ln^3 x}{x} dx\)
        \item \(\int_1^{e} \frac{3x^3+1}{x} dx\)
    \end{enumerate}\\
    &\multicolumn{3}{p{0.9\textwidth}}{
        \begin{enumerate}[label={\mylabel[red]{\arabic*}},start=16]
            \item \(\int_3^4 \frac{x-6}{x^2-4} dx\)\hspace*{1.5cm} vérifier que
                \(\frac{x-6}{x^2-4}=\frac{-1}{x-2}+\frac{2}{x+2}\)
                \hfill \mylink \hspace*{2cm} \mylink
        \end{enumerate}
    }\\
\end{tabular}\\
\\
\noindent
\exeb{2}\\
\noindent
\begin{tabular}{@{}p{0.01\textwidth}|p{0.18\textwidth}p{0.18\textwidth}p{0.28\textwidth}p{0.28\textwidth}}
    &\multicolumn{4}{p{0.9\textwidth}}{%
        \mylabel[lightgreen]{1.} Calculer les intégrals suivants \myhighlight{yellow}{(relation de Chasles)}
    }\\
    &\begin{enumerate}
        \item \(\int_{-2}^{3} |x| dx\)
    \end{enumerate}
    &\begin{enumerate}
        \item \(\int_{0}^{2} |x-1| dx\)
    \end{enumerate}
    &\begin{enumerate}
        \item \(\int_{-1}^{3} |x^2-3x+2| dx\)
    \end{enumerate}
    &\begin{enumerate}
        \item \(\int_0^{2\pi}  |\sin t| dt\)
    \end{enumerate}
\end{tabular}
\\
\\
\\
\noindent
\exec{2}\\
\noindent
\begin{tabular}{@{}p{0.01\textwidth}|p{0.18\textwidth}p{0.18\textwidth}p{0.28\textwidth}p{0.28\textwidth}}
    &\multicolumn{4}{p{0.9\textwidth}}{%
            \mylabel[darkpurple]{1.} Calculer les intégrals suivants \myhighlight{yellow}{(relation de Chasles)}
    }\\
\end{tabular}
\\
\\
\noindent
\exed{2}(7.5pts)\\
\noindent
\begin{tabular}{@{}>{\centering\arraybackslash}p{0.04\textwidth}|p{0.96\textwidth}}
    1&\mylabel[yellow]{1.} Calculer les intégrals suivants \myhighlight{yellow}{(relation de Chasles)}\\
    1.5&\mylabel[lightgreen]{2.} Calculer les intégrals suivants \\
    2.5&\mylabel[lightred]{2.} Calculer les intégrals suivants \\
\end{tabular}
\\
\\
\textcolor{white}{.}\hfill \underline{MOSAID le \today}\\
\textcolor{white}{.}\hfill \mylink
\end{document}



Related Courses, Exams, and Exercises


Course PDF:

📥 Download Template Latex 2 - devoir mathématiques, série exercices (PDF)