📝 Code source du fichier LaTeX

📄 21matj1me2-exoa.tex

↩ Retour 💾 Fichier tex 📦 Sur la Forge

% !TeX TXS-program:compile = txs:///pdflatex

\documentclass[margin=5mm]{standalone}
\usepackage{esvect}
\newcommand\vect[1]{\vv{#1}}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[x=1.5cm,y=1.2cm,>=latex,font=\large]
	\clip (-2,-3.15) rectangle (4,2.5) ;
	\draw[thick,->] (-2,0)--(4,0) ; \draw[thick,->] (0,-3.5)--(0,3) ;
	\draw[very thick,->] (0,0)--(0,1) node[left] {$\vect{k}$}; ;
	\draw[thick] (0,0)--(-125:4) ;
	\draw[very thick,->] (0,0)--(-125:1.1) node[left] {$\vect{\imath}$};
	\draw[thick,fill=white] (0,0)--(2.25,1.5)--(2.4,-0.8)--(0.75,-1.5)--cycle ;
	\draw[thick,red,samples=2,domain=-2:4] plot (\x,{-2*\x}) ;
	\draw[red] (1.65,-3) node[above] {$d$} ;
	\draw[very thick,->,densely dashed] (0,0)--(1,0) node[above] {$\vect{\jmath}$};
	\draw[thick,densely dashed] (1,0)--(2.3,0) ;
	\draw[thick] (2.25,1.5)--(0.75,-1.5);
	\draw[thick,densely dashed] (0,0)--(2.4,-0.8);
	\draw[very thick,->] (0,0)--(0.35,-0.7) node[right] {$\vect{u}$};
	\foreach \Point/\Nom/\Pos in {(0,0)/O/below left,(2.25,1.5)/A/above,(2.4,-0.8)/{A'}/below,(0.75,-1.5)/{M_0}/left}%
	\filldraw \Point circle[radius=2pt] node[\Pos] {$\Nom$} ;
	\foreach \x in {-1,2,3} \draw[thick] (\x,3pt)--(\x,-3pt) ;
	\foreach \y in {-3,-2,-1,2} \draw[thick] (3pt,\y)--(-3pt,\y) ;
\end{tikzpicture}

\end{document}