From f66f4d2a1d41ddbde22f16b1082f08dd9998a81f Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Wed, 5 May 2021 10:43:06 -0700 Subject: Initial commit --- Makefile | 12 ++ cheatsheet.tex | 507 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 519 insertions(+) create mode 100644 Makefile create mode 100644 cheatsheet.tex diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0088b67 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +all: build/cheatsheet.pdf + +build/cheatsheet.pdf: cheatsheet.tex $(wildcard src/*.tex) $(wildcard src/**/*.tex) $(wildcard *.sty) $(wildcard *.bib) $(wildcard fig/*.*) + mkdir -p build && tectonic --print -o build $< + +fmt: cheatsheet.bib + bibtex-tidy --align 0 --duplicates --curly --wrap 100 --numeric --remove-empty-fields --sort --sort-fields --space 4 --trailing-commas --no-backup $< + +clean: + rm build/*.* + +.PHONY: clean fmt diff --git a/cheatsheet.tex b/cheatsheet.tex new file mode 100644 index 0000000..73fe23a --- /dev/null +++ b/cheatsheet.tex @@ -0,0 +1,507 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Source: Dave Richeson (divisbyzero.com), Dickinson College +% Version francaise par Vincent Pantaloni, prof.pantaloni.free.fr +% Traduction, correction et adaptation à la typographie française. +% +% Une anti-seche en deux pages pour une intro rapide ou un aide mémoire des différentes fonctions. A imprimer en recto verso par exemple. +% +% Feel free to distribute this example, but please keep the referral +% to divisbyzero.com +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[a4paper,10pt,landscape]{article} +\usepackage{fontspec} +\usepackage[T1]{fontenc} +\usepackage[frenchb]{babel} +\usepackage{amssymb,amsmath,amsthm,amsfonts} +\usepackage{multicol,multirow} +\usepackage{calc} +\usepackage{ifthen} +\usepackage[landscape]{geometry} +\usepackage[colorlinks=true,citecolor=blue,linkcolor=blue]{hyperref} + + +\ifthenelse{\lengthtest { \paperwidth = 11in}} + { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } + {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + } +\pagestyle{empty} +\makeatletter +\renewcommand{\section}{\@startsection{section}{1}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {0.5ex plus .2ex}%x + {\normalfont\large\bfseries}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + {-1explus -.5ex minus -.2ex}% + {0.5ex plus .2ex}% + {\normalfont\normalsize\bfseries}} +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {1ex plus .2ex}% + {\normalfont\small\bfseries}} +\makeatother +\setcounter{secnumdepth}{0} +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 0.5ex} +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +\footnotesize + +\begin{center} + \Large{\textbf{Introduction et aide-mémoire \LaTeX}} \\ +\end{center} +\begin{multicols}{3} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\section{Qu'est-ce que \LaTeX?} +\LaTeX{} (à prononcer \og{} La Tek \fg{} la dernière lettre est un chi, \TeX{} comme tech) est un logiciel de composition de textes, axé vers la production de documents scientifiques et mathématiques de grande qualité typographique. + + \TeX{} a été créé par Donald Knuth de Stanford University (première veresion en 1978). Leslie Lamport a créé la version plus simple et complète \LaTeX{}. La version actuelle est appellée \LaTeXe. +\section{Mode math, mode texte.} +En mathématiques les lettres apparaissent en italique, sauf les fonctions usuelles. Les parenthèses, chiffres, opérateurs\dots{} eux restent droit. + +Par exemple, comparer $f(x)=2x-3$ et f(x)=2x-3, ou $x$ et x, ou -1 et $-1$, ou $sin(x)$ et $\sin(x)$. + +\LaTeX{} utilise un mode mathématique pour gérer tout cela ainsi que les espaces nécéssaires. Il y a un mode math en ligne et un mode math centré. + +\subsection{Expressions mathématiques en ligne.} +Dans une ligne de texte on peut insérer une expression mathématique en l'encadrant par des dollars (\verb!$!). Les fonctions \LaTeX{} sont précédées d'un backslash (\verb! \! : Altgr+8) Par exemple: \verb!$90^{\circ}$ correspond à $\frac{\pi}{2}$ radians! donne:\\ $90^{\circ}$ correspond à $\frac{\pi}{2}$ radians. Remarquez comme la fraction est petite de sorte à ne pas modifier l'interligne, on peut aussi utiliser \verb!\dfrac!. + +\subsection{Expressions mathématiques centrées} +Pour des expressions plus importantes qui méritent d'être écrites plus lisibles, on encadre l'expression par \verb!\[! et \verb!\]! qui sera alors centrée. Par exemple \verb!\[x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\]! donne: \[x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.\] +S'il s'agit d'une équation à laquelle on veut faire référence plus tard, on la met dans un \emph{environnement} equation i.e. entre \verb! \begin{equation} \end{equation}!. Par exemple: + +\verb!\begin{equation}\label{bidule}! + +\verb!b\times\frac{c}{d}=\frac{bc}{d} \end{equation}! Donne: + +\begin{equation} \label{bidule} b\times\frac{c}{d}=\frac{bc}{d} \end{equation} +Et ensuite \verb!\ref{bidule}! ou \verb!\eqref{bidule}! donne \eqref{bidule} pour faire référence à cette équation. + + + +\subsection{Displaystyle} +On peut forcer des mathématiques en ligne à être écrites aussi grosses que lorsqu'elles sont centrées en utilisant \verb!\displaystyle!. \'A utiliser avec parcimonie car l'interligne n'est plus respecté ce qui n'est pas très esthétique. e.g. \verb!Je veux: $\displaystyle \sum_{n=1}^{\infty}! \verb!\frac{1}{n}$, et non pas: $\sum_{n=1}^{\infty}! \verb!\frac{1}{n}$.! donne:\\ Je veux: $\displaystyle \sum_{n=1}^{\infty}\frac{1}{n}$, et non pas: $\sum_{n=1}^{\infty}\frac{1}{n}.$ + + +\section{Images} + +On peut insérer des images au format (pdf, png, jpg, ou gif) dans un document par l'instruction: \verb!\includegraphics[width=4cm]{imagetruc.jpg}! Elles doivent être dans le même dossier que le fichier .tex et on peut spécifier sa largeur (width)!! en diverses unités: cm, pt, ex, em (largeur de la lettre x, ou M) ou par rapport à la longueur de la ligne ou du texte avec \verb!0.75\textwidth! ou \verb!0.5\textwidth!. On peut aussi mettre l'image dans un environnement figure mais alors \LaTeX{} choisira le meilleur endroit où mettre l'image en fonction du reste du texte. +%They need to be in the same location as your .tex file when you compile the document. Omit \verb![width=.5in]! if you want the image to be full-sized. + +\verb!\begin{figure}[ht]!\\ +\verb!\includegraphics[width=.5in]{imagetruc.jpg}!\\ +\verb!\caption{Légende (optionnelle) à mettre ici.}!\\ +\verb!\end{figure}! + +\section{Décorations du texte} +En mode texte, divers styles peuvent être appliqués: + +\noindent\begin{tabular}{ll|ll} + +\textit{italique}&\verb!\textit{italique}!&\textsl{penché} &\verb!\textsl{}!\\ +\textbf{gras} & \verb!\textbf{gras}! +&\textsf{sans serif} & \verb!\textsf{}!\\ + +\texttt{machine}&\verb!\texttt{machine}!& +\textsc{Petites Maj.}&\verb!\textsc{}!\\ +%\underline{souligné}&\verb!\underline{souligné}!\\ + +\end{tabular} + + +it pour italique, sl pour \emph{slanted}, bf pour \emph{boldface}, sf pour \emph{sans-serif}, tt pour \emph{typewriter}, sc pour \emph{small caps.} On peut aussi (beurk) \underline{souligner du texte} avec \verb!\underline{souligner du texte}!. + + +Les maths peuvent être en gras comme, $\mathbf{R}$ (\verb!\mathbf{R}!), ou comme le gras au tableau (blackboard bold) pour les symboles d'ensembles de nombres: $\mathbb{R}$ (\verb!\mathbb{R}!) de même $\mathbb{N}$, $\mathbb{Z}$, $\mathbb{Q}$, $\mathbb{C}$. Un raccourci classique \verb!\R! donnera la même chose si on a mis dans le préambule: \verb!\newcommand{\R}{\mathbb{R}}! + +Utiliser \verb!\text{}! pour écrire du texte dans des maths. \verb!$]0,1]=\{x\in\mathbb{R}:x>0\text{ et }x\le 1\}$! donne: $]0,1]=\{x\in\mathbb{R}:x>0\text{ et }x\le 1\}$. (sans la commande \verb!\text!, le \og{}et\fg{} est traité comme deux variables: $]0,1]=\{x\in\mathbb{R}:x>0 et x\le 1\}$.) + + + +\section{Espaces, sauts de ligne et commentaires.} + +\LaTeX\ ignore les espaces et sauts de lignes surnuméraires. Pour forcer à aller à la ligne, taper \verb!\\!. Sauter deux lignes créera un nouveau paragraphe. \verb!\noindent! évite l'indentation d'un nouveau paragraph. + + +%\section{Commentaires} + +Le symbole \verb!%! crée un commentaire dans le .tex non visible dans le fichier compilé. +\verb!$f(x)=\exp(x)$ %L'exponentielle! donne: $f(x)=\exp(x)$ %L'exponentielle + + +\section{Structure et listes} +Un document comporte des structures numérotées auxquelles on peut faire référence en utilisant un \verb!\label{}! et \verb!\ref{}!. Dans l'ordre: \verb!\section{machin}! \verb!\subsection{truc}! \verb!\subsubsection{bidule}! puis \verb!\paragraph{Introduction}! (non numéroté). + + +L'environnement \emph{enumerate} produit des listes numérotées: +%Chaque item est numéroté automatiquement par \verb!\item! et on peut les emboîter. + +%\begin{tabular}{p{0.6\linewidth}p{0.40\linewidth}} +\noindent +\begin{minipage}{0.6\linewidth} +\verb!\begin{enumerate}!\\ +\verb! \item Facile.!\\ +\verb! \item \begin{enumerate}! \\ +\verb! \item primo!\\ +\verb! \item deuxio!\\ +\verb! \end{enumerate}!\\ +\verb! \item Conclure.!\\ +\verb!\end{enumerate}! +\end{minipage}\hfill +\begin{minipage}{0.35\linewidth} +\begin{enumerate} + \item Facile. + \item \begin{enumerate} + \item primo + \item deuxio + \end{enumerate} + \item Conclure. +\end{enumerate} +\end{minipage} + +%%%%%%%%% +\section{Délimiteurs} +%%%%%%%%% + +\noindent \begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +parenthèses &\verb!(x)! & (x)\\ +crochets &\verb![x]! & [x]\\ +accolades& \verb!\{x\}! & \{x\}\\ +\end{tabular} + +%To make your delimiters large enough to fit the content, use them together with +Pour des délimiteurs ajustés au contenu, utiliser \verb!\left! et \verb!\right!: + + +\verb!\left\{\sin\left(\frac{1}{n}\right)\right\}_{n}^! \verb!{\infty}! + + + + $\displaystyle \left\{\sin\left(\frac{1}{n}\right)\right\}_{n}^{\infty}$ à comparer à: +$\displaystyle \{\sin(\frac{1}{n})\}_{n}^{\infty}$ %(\verb!$\{\sin(\frac{1}{n})\}_{n}^{\infty}$!) + +Les accolades sont non imprimées et utilisées par \TeX{} pour regrouper des caractères ensemble. Comparer les expressions: + +\verb!x^2!, \verb!x^{2}!, \verb!x^2t!, \verb!x^{2t}! qui donnent : $x^2$, $x^{2}$, $x^2t$, $x^{2t}$. + + +\section{Symboles (mode \emph{math})} + +\subsection{Basiques} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +addition & \verb!+! & $+$\\ +soustraction & \verb!-! & $-$\\ +plus ou moins & \verb!\pm! & $\pm$\\ +multiplication & \verb!\times! & $\times$\\ +divisé & \verb!\div! & $\div$\\ +%division (slash) & \verb!/! & $/$\\ +égal & \verb!=! & $=$\\ +différent & \verb!\ne! & $\ne$\\ +strict. inférieur & \verb!! & $>$\\ +inférieur à & \verb!\le \leqslant! & $\le$ $\leqslant$\\ +supérieur à & \verb!\ge \geqslant! & $\ge$ $\geqslant$\\ +environ & \verb!\approx! & $\approx$\\ +infini & \verb!\infty! & $\infty$\\ +points & \verb!1,2,3,\ldots! & $1,2,3,\ldots$\\ +points centrés & \verb!1+2+3+\cdots! & $1+2+3+\cdots$\\ +produit scalaire & \verb!\vec u \cdot \vec v! & $\vec u \cdot \vec v$\\ +somme directe & \verb!\oplus! & $\oplus$\\ +produit tensoriel & \verb!\otimes! & $\otimes$\\ +fraction & \verb!\frac{a}{b} \dfrac{a}{b}! & $\frac{a}{b} \dfrac{a}{b}$\\ +%fraction (grande) & \verb!\dfrac{a}{b}! & $\dfrac{a}{b}$\\ +indice & \verb!a_b! & $a_{b}$\\ +exposant & \verb!a^b! & $a^{b}$\\ +racine carrée & \verb!\sqrt{x}! & $\sqrt{x}$\\ +racine $n$-ième & \verb!\sqrt[n]{x}! & $\sqrt[n]{x}$\\ +%absolute value & \verb!|x|! & $|x|$\\ +natural log & \verb!\ln(x)! & $\ln(x)$\\ +logarithms & \verb!\log_ab! & $\log_ab$\\ +exponentielle & \verb!{\rm e}^x=\exp(x)! & ${\rm e}^{x}=\exp(x)$\\ +%degree & \verb!\deg(f)! & $\deg(f)$\\ +tend vers & \verb!\to! & $\to$\\ +associe & \verb!\mapsto \longmapsto! & $\mapsto$ $\longmapsto$\\ +composition& \verb!\circ! & $\circ$\\ +CQFD &\verb!\qed!&$\qed$\\ +fonction def.& \verb!|x|=! & \multirow{5}{*}{$\displaystyle |x|=\begin{cases}x&x\ge 0\\-x&x<0\end{cases}$}\\ +par morceaux&\verb!\begin{cases}!&\\ +&\verb!x & x\ge 0\\!&\\ +&\verb!-x & x<0!&\\ +&\verb!\end{cases}!& +\end{tabular} +\newpage + + + +\subsection{Logique} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +%\emph{description} & \emph{command} & \emph{output}\\ +%not & \verb!\sim! & $\sim$\\ +Il existe & \verb!\exists! & $\exists$\\ +pour tout & \verb!\forall! & $\forall$\\ +implique & \verb!\implies! & $\implies$\\ +équivalent & \verb!\iff! & $\iff$\\ +et & \verb!\land! & $\land$\\ +ou & \verb!\lor! & $\lor$\\ +%if...then & \verb!\to! & $\to$\\ +%if and only if & \verb!\leftrightarrow! & $\leftrightarrow$\\ +%logical equivalence & \verb!\equiv! & $\equiv$\\ +%therefore & \verb!\therefore! & $\therefore$\\ + +\end{tabular} +\subsection{Alphabet grec, hébreu} +\begin{tabular}{llll} +\emph{commande} & \emph{affichage}&\emph{commande} & \emph{affichage}\\ +\verb!\alpha! & $\alpha$&\verb!\tau! & $\tau$\\ +\verb!\beta! & $\beta$&\verb!\theta! & $\theta$\\ +\verb!\chi! & $\chi$&\verb!\upsilon! & $\upsilon$\\ +\verb!\delta! & $\delta$&\verb!\xi! & $\xi$\\ +\verb!\epsilon! & $\epsilon$&\verb!\zeta! & $\zeta$\\ +\verb!\varepsilon! & $\varepsilon$&\verb!\Delta! & $\Delta$\\ +\verb!\eta! & $\eta$&\verb!\Gamma! & $\Gamma$\\ +\verb!\gamma! & $\gamma$&\verb!\Lambda! & $\Lambda$\\ +\verb!\iota! & $\iota$&\verb!\Omega! & $\Omega$\\ +\verb!\kappa! & $\kappa$&\verb!\Phi! & $\Phi$\\ +\verb!\lambda! & $\lambda$&\verb!\Pi! & $\Pi$\\ +\verb!\mu! & $\mu$&\verb!\Psi! & $\Psi$\\ +\verb!\nu! & $\nu$&\verb!\Sigma! & $\Sigma$\\ +\verb!\omega! & $\omega$&\verb!\Theta! & $\Theta$\\ +\verb!\phi! & $\phi$&\verb!\Upsilon! & $\Upsilon$\\ +\verb!\varphi! & $\varphi$&\verb!\Xi! & $\Xi$\\ +\verb!\pi! & $\pi$&\verb!\aleph! & $\aleph$\\ +\verb!\psi! & $\psi$&\verb!\beth! & $\beth$\\ +\verb!\rho! & $\rho$&\verb!\daleth! & $\daleth$\\ +\verb!\sigma! & $\sigma$&\verb!\gimel! & $\gimel$ +\end{tabular} + + +\subsection{Théorie des ensembles} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +%\emph{description} & \emph{command} & \emph{output}\\ +ensemble & \verb!\{1,2,3\}! & $\{1,2,3\}$\\ +appartient à & \verb!\in! & $\in$\\ +n'appartient pas & \verb!\not\in! & $\not\in$\\ +%inclus & \verb!\subset! & $\subset$\\ +inclus & \verb!\subset \subseteq! & $\subset$ $\subseteq$\\ +non inclus & \verb!\not\subset! & $\not\subset$\\ +contient & \verb!\supset \supseteq! & $\supset$ $\supseteq$\\ +%contains & \verb!\supseteq! & $\supseteq$\\ +union & \verb!\cup! & $\cup$\\ +intersection & \verb!\cap! & $\cap$\\ +grande union & +\verb!\bigcup_{n=1}^{10}A_n! & +$\displaystyle \bigcup_{n=1}^{10}A_{n}$\\ +grand inter & \verb!\bigcap_{n=1}^{10}A_n! &$\displaystyle \bigcap_{n=1}^{10}A_{n}$\\ +ensemble vide & \verb!\emptyset \varnothing! & $\emptyset$ $\varnothing$\\ +ens. des parties & \verb!\mathcal{P}! & $\mathcal{P}$\\ +minimum & \verb!\min! & $\min$\\ +maximum & \verb!\max! & $\max$\\ +sup, inf & \verb!\sup, \inf! & $\sup$, $\inf$\\ +%infimum & \verb!\inf! & $\inf$\\ +limit sup & \verb!\limsup! & $\limsup$\\ +limit inf & \verb!\liminf! & $\liminf$\\ +closure & \verb!\overline{A}! & $\overline{A}$ +\end{tabular} + +\subsection{Analyse} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +%derivative & \verb!\frac{df}{dx}! & $\displaystyle \frac{df}{dx}$\\ +dérivée & \verb!f'! & $f'$\\ +dérivée partielle & +\begin{tabular}{l} +\verb!\frac{\partial f}!\\ \verb!{\partial x}! +\end{tabular}& $\displaystyle \frac{\partial f}{\partial x}$\\ +intégrale & \verb!\int_0^1 x^2 {\rm d}x! & $\displaystyle\int_{0}^{1} x^2 {\rm d}x$\\ +intégrale multiple & \verb!\iint f, \iiint g! & $\iint f$, $\iiint g$\\ +%intégrale triple & \verb!\iiint! & $\iiint$\\ +limite & \verb!\lim_{x\to +\infty} f(x)! & $\displaystyle \lim_{x\to +\infty} f(x)$\\ +somme & +\verb!\sum_{n=1}^{+\infty}a_n! & +$\displaystyle \sum_{n=1}^{+\infty}a_n$\\ +produit & +\verb!\prod_{n=1}^{\infty}a_n! & +$\displaystyle \prod_{n=1}^{\infty}a_n$ +\end{tabular} + + + +\subsection{Vecteurs} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +vecteur & \verb!\vec{v}! & $\vec{v}$\\ +repère & \verb!(O,\vec{\imath},\vec{\jmath})! & $(O,\vec{\imath},\vec{\jmath})$\\ +vecteur AB & \verb!\overrightarrow{AB}!& $\overrightarrow{AB}$\\ +norme & \verb!||\vec{u}||! & $||\vec{u}||$ +\end{tabular} + +\subsection{Algèbre linéaire} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +matrice& +\begin{tabular}{l} +\verb!\left[!\\ +\verb!\begin{array}{ccc}!\\ +\verb!1 & 2 & 3 \\!\\ +\verb!4 & 5 & 6\\!\\ +\verb!7 & 8 & 0!\\ +\verb!\end{array}!\\ +\verb!\right]!\end{tabular}& +$\displaystyle \left[\begin{array}{ccc}1 & 2 & 3 \\4 & 5 & 6 \\7 & 8 & 0\end{array}\right]$\\ +\\déterminant& +\begin{tabular}{l} +\verb!\left|!\\ +\verb!\begin{array}{ccc}!\\ +\verb!1 & 2 & 3 \\!\\ +\verb!4 & 5 & 6 \\!\\ +\verb!7 & 8 & 0!\\ +\verb!\end{array}!\\ +\verb!\right|! +\end{tabular}& +$\displaystyle \left|\begin{array}{ccc}1 & 2 & 3 \\4 & 5 & 6 \\7 & 8 & 0\end{array}\right|$\\ +déterminant & \verb!\det(A)! & $ \det(A)$\\ +trace & \verb!\operatorname{tr}(A)! & $\operatorname{tr}(A)$\\ +dimension & \verb!\dim(V)! & $\dim(V)$\\ +\end{tabular} + +\subsection{Arithmétique} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +divise & \verb!|! ({\sf Altgr}+6) & $|$\\ +ne divise pas & \verb!\not |! & $\not |$\\ +congru à & \verb!\equiv! & $\equiv$\\ +congruence & \verb!13\equiv 3\ [5]! & $13\equiv 3\ [5]$\\ +%div & \verb!\operatorname{div}! & $\operatorname{div}$\\ +%mod & \verb!\mod! & $\operatorname{mod}$\\ +% & \verb!\gcd! & $\gcd$\\ +%ceiling & \verb!\lceil x \rceil! & $\lceil x\rceil$\\ +%floor & \verb!\lfloor x \rfloor! & $\lfloor x \rfloor$\\ +\end{tabular} + + + + +\subsection{Geométrie and trigonometrie} +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +angle& \verb!\widehat{ABC}! & $\widehat{ABC}$\\ +degree& \verb!90^{\circ}! & $90^{\circ}$ \\ +%triangle& \verb!\triangle ABC! & $\triangle ABC$\\ +segment& \verb![AB]! & $[AB]$\\ +droite &\verb!\mathcal{D}! & $\mathcal{D}$\\%$\mathscr{D}$, +perpendiculaire& \verb!d\perp\Delta! & $d\perp\Delta$\\ +paralèlle& \verb!(AB)//(CD)! & $(AB)//(CD)$\\ +sinus& \verb!\sin! & $\sin$\\ +cosinus& \verb!\cos! & $\cos$\\ +tangent& \verb!\tan! & $\tan$\\ +%cotangent& \verb!\cot! & $\cot$\\ +%secant& \verb!\sec! & $\sec$\\ +%cosecant& \verb!\csc! & $\csc$\\ +arcsinus& \verb!\arcsin! & $\arcsin$\\ +arccosinus& \verb!\arccos! & $\arccos$\\ +arctangente& \verb!\arctan! & $\arctan$\\ +\end{tabular} + +\section{Symboles (mode \emph{texte})} + +%The following symbols do \textbf{not} have to be surrounded by dollar signs. + +\begin{tabular}{lll} +\emph{description} & \emph{commande} & \emph{affichage}\\ +dollar & \verb!\$! & \$ \\ +pourcent & \verb!\%! & \% \\ +esperluette & \verb!\&! & \& \\ +dièse & \verb!\#! & \# \\ +backslash & \verb!\textbackslash! & \textbackslash \\ +guillemets & \verb!\og \fg! & \og \fg \\ +%right quote marks & \verb!''! & '' \\ +%single left quote & \verb!`! & ` \\ +%single right quote & \verb!'! & ' \\ +tirets & \verb!a-b -- c--- ! & a-b -- c ---\\ +ordinaux 1 +&\verb!1\ier{}, 1\iere{}, 1\ieres{}! +&1\ier{}, 1\iere{}, 1\ieres{} \\ +ordinaux 2 +&\verb!2\ieme{} 4\iemes{}! +&2\ieme{} 4\iemes{}\\ +numéros +&\verb!\No 1, \no 2! +&\No 1, \no 2\\ +accents +&\verb!\`A, \'E, \oe, \ae! +&\`A, \'E, \oe, \ae, +% & \verb!pp. 5--15! & pp. 5--15 \\ +%em-dash & \verb!Yes---or no?! & Yes---or no? +\end{tabular} +\section{Tableaux} +L'environnement \emph{tabular} a de nombreuses possibilités. +%Voici un exemple simple. +Le format des colonnes est spécifié par les lettres l, c ou r (aligné à gauche, centré, à droite). +Le symbole \& sépare les contenus de colonnes et \verb!\\! va à la ligne suivante, \verb!\hline! pour un filet horizontal. Un exemple simple: +\begin{verbatim} +\begin{tabular}{|r|c|c|c||c|} \hline +$x_i$ & 1 & 2 & 3 & Total\\ \hline +$P(X=x_i)$ & 0,2&0,1&0,7&1\\ \hline +\end{tabular} +\end{verbatim} + +\begin{center} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{|r|c|c|c||c|} +\hline +$x_i$&1&2&3&Total\\ \hline +$P(X=x_i)$&0,2&0,1&0,7&1 \\ \hline +\end{tabular} +\end{center} + +\verb!\renewcommand{\arraystretch}{1.2}! permet d'augmenter la hauteur des lignes. +\section{Ressources} +\begin{itemize} +\item Une introduction complète incontournable, la traduction française de \og The not so short introduction to \LaTeXe\fg{} de Tobias {\sc Oetiker} sur \href{CTAN://info/lshort.}{CTAN} :\\ + +\href{http://mirrors.ctan.org/info/lshort/french/lshort-fr.pdf}{Une courte (?) introduction à \LaTeXe} +\item +Site et appli pour trouver des symboles: \href{http://detexify.kirelabs.org/}{Detexify} +%\item +%\href{http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf}{\LaTeX\ Mathematical Symbols} +\item Une liste de 2500 symboles \LaTeXe{} :\\ + +\href{ftp://tug.ctan.org/pub/tex-archive/info/symbols/comprehensive/symbols-letter.pdf}{The Comprehensive \LaTeX\ Symbol List} +\item CTAN: +\href{http://www.ctan.org/}{The Comprehensive \TeX\ Archive Network} + +\end{itemize} +\vfill +\hrule +\smallskip + +\noindent Vincent {\sc Pantaloni} (adaptation francaise) \hfill \href{http://prof.pantaloni.free.fr}{prof.pantaloni.free.fr}\\ +Dave {\sc Richeson} (auteur version anglaise.) \hfill \href{http://divisbyzero.com/}{divisbyzero.com} +\end{multicols} + +\end{document} + +\href{http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf}{\LaTeX\ Mathematical Symbols}\\ +\href{ftp://tug.ctan.org/pub/tex-archive/info/symbols/comprehensive/symbols-letter.pdf}{The Comprehensive \LaTeX\ Symbol List}\\ +\href{http://mirrors.med.harvard.edu/ctan/info/lshort/english/lshort.pdf}{The Not So Short Introduction to \LaTeX\ 2$\varepsilon$}\\ +\href{http://www.tug.org/}{TUG: The \TeX\ Users Group}\\ +\href{http://www.ctan.org/}{CTAN: The Comprehensive \TeX\ Archive Network}\\ +\LaTeX\ for the Mac: \href{http://www.tug.org/mactex/}{Mac\TeX}\\ +\LaTeX\ for the PC: \href{http://www.texniccenter.org/}{{\TeX}nicCenter} and \href{http://miktex.org/}{MiK\TeX}\\ +\LaTeX\ online: \href{http://www.writelatex.com/}{WriteLaTeX}. -- cgit v1.2.3