\documentclass[12pt,a4paper]{article}
\usepackage[left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry}
\usepackage{fontspec}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{shapes,decorations.text}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue
}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.3]{Amiri}
\newcommand{\mylink}{\href{https://mosaid.xyz/cc}{www.mosaid.xyz}}
\newcommand{\stamp}[2]{
\begin{tikzpicture}[remember picture, overlay]
\coordinate (A) at (#1,#2);
\draw[red!50] (A) circle (1.9cm);
% Draw the inner circle
\draw[red!50] (A) circle (1.4cm);
% Draw the curved line
\draw[red!50, decorate, decoration={text along path,
text={|\fontspec{DejaVu Sans}\color{red!75}\bfseries|★MOSAID RADOUAN★},
text align={align=center}, raise=-3pt}] (A) ++ (180:1.6cm) arc (180:0:1.6cm);
\draw[decorate, decoration={text along path,
text={|\fontspec{DejaVu Sans}\color{red!75}\bfseries|∞★~mosaid.xyz~★∞ },
text align={align=center}, raise=-6.5pt}] (A) ++ (180:1.53cm) arc (-180:0:1.53cm);
\node[red!75,font=\fontsize{48}{48}\fontspec{DejaVu Sans}\bfseries\selectfont] at (A) {✷};
\end{tikzpicture}
} %end stamp
\newcommand{\schema}{%
\scalebox{0.75}{%
\begin{tikzpicture}[
scale=0.2,
node distance=2cm,
every node/.style={draw, rectangle, minimum height=1cm, minimum width=4cm, align=center},
arrow/.style={-latex, thick},
highlight/.style={fill=yellow!20},
important/.style={draw, shape=circle, minimum height=0.5cm, minimum width=0.5cm, fill=red!20, align=center}
]
% Nœuds pour chaque étape
\node (equations) [highlight] {$\begin{cases} ax + by = c \\ a'x + b'y = c' \end{cases}$};
\node (determinant) [below of=equations] {$\Delta = \begin{vmatrix} a & b \\ a' & b' \end{vmatrix} = ab' - a'b$};
\node (casenonzero) [important, below left of= determinant, xshift=-1cm, yshift=-0.5cm] {$\Delta \neq 0$};
\node (casezero) [important, below right of= determinant, xshift=1cm, yshift=-0.5cm] {$\Delta = 0$};
% Branche pour Delta non nul
\node (calcdeltas) [below left of=casenonzero, xshift=-2.5cm, yshift=-0.8cm] {$\Delta_x = \begin{vmatrix} c & b \\ c' & b' \end{vmatrix}, \quad \Delta_y = \begin{vmatrix} a & c \\ a' & c' \end{vmatrix}$};
\node (solution) [highlight, below of=calcdeltas] {
$\left( \frac{\Delta_x}{\Delta}, \frac{\Delta_y}{\Delta} \right)$ ~:
\textarabic{حل النظمة هو الزوج}
};
% Branche pour Delta nul
\node (casenosolution) [highlight, right of= calcdeltas, xshift=3.5cm] {$\Delta_x \neq 0$ ou $\Delta_y \neq 0$ \\
\textarabic{النظمة ليس لها حل}
};
\node (caseinfinitesolutions) [highlight, right of= casenosolution, xshift=4cm ] {$\Delta_x = 0$ et $\Delta_y = 0$ \\
\textarabic{النظمة تقبل ما لا نهاية من الحلول}
};
% Flèches entre les étapes
\draw[arrow] (equations) -- (determinant);
\draw[arrow] (determinant) -- (casenonzero);
\draw[arrow] (determinant) -- (casezero);
\draw[arrow] (casenonzero) -- (calcdeltas);
\draw[arrow] (calcdeltas) -- (solution);
\draw[arrow] (casezero) -- (casenosolution);
\draw[arrow] (casezero) -- (caseinfinitesolutions);
\end{tikzpicture}
}%end scalebox
}% end schema
\begin{document}
\thispagestyle{empty}
\centering
\schema\stamp{2}{5}\\
\vspace*{2cm}
\schema\stamp{2}{5}\\
\vspace*{2cm}
\schema\stamp{2}{5}\\
\end{document}
0 Comments, Latest
No comments yet. Be the first to Comment