\documentclass[a4paper,11pt,french]{article}
\linespread{1.1}

\newcommand{\typedoc}{Programmer sur calculatrice}          %%%%%%%%%%%%%%% 1ere ligne du titre de la feuille		
\newcommand{\Ch}{TI 89}	 %%%%%%%%%%%%%%%% 2eme ligne et en haut à droite après
\newcommand{\ch}{Programmation}	%%%%%%%%%%%%%%% En haut à gauche (numero chapitre)
\newcommand{\Cl}{Fiche TI}	
\newcommand{\Annee}{2013-2014}	

\newcommand{\serie}{Scientifique}
\newcommand{\num}{0}	
\newcommand{\tps}{2h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%		Package
%\usepackage[french,lined,boxed,commentsnumbered]{algorithm2e}

\input macro_final.tex

\geometry{verbose,letterpaper,tmargin=1.8cm,bmargin=1.8cm,lmargin=1.5cm,rmargin=1.5cm}
%\geometry{hmargin=1.9cm,bmargin=2.4cm, tmargin=2cm}

\setcounter{NumLecon}{0}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%	Début
\begin{document}
 
\DocCha

\section{Créer et éditer un programme}
\noindent \begin{minipage}{9cm}
\subsection{Créer et éditer un nouveau programme}
Appuyer sur \toucheTIcoul{gray}{pink}{APPS} et choisir l'éditeur de programme avec 
les flèches, puis  \texteTI{3: Nouveau} 
\end{minipage}
\begin{minipage}{5cm}
\begin{center}
\fbox{\includegraphics[scale=0.7]{Capture_Ecran/Editeur89.eps} } 
\end{center}
\end{minipage}
\begin{minipage}{5cm}
\begin{center}
  \fbox{\includegraphics[scale=0.9]{Capture_Ecran/Nvo89.eps} }
\end{center}
\end{minipage}
\\\\
\begin{minipage}{13cm} 
Entrer le nom voulu du programme  (sans espace) dans la case \texteTI{Variable}. \\
Valider par \toucheTInoire{ENTER}.\\
\textit{Les touches sont en mode alphabétique, 8 caractères maximum.}
\end{minipage}
\begin{minipage}{6cm}
\begin{center}
 \fbox{\includegraphics[scale=0.9]{Capture_Ecran/Nom89.eps}}
 \end{center}
\end{minipage}\\\\
\begin{minipage}{13cm}
\noindent Vous pouvez commencer à écrire votre programme entre
les lignes \texteTI{:Prgm} et \texteTI{:EndPrgm} à la suite des \og \textbf{:} \fg
qui indiquent chaque nouvelle ligne.
\end{minipage}
\begin{minipage}{6cm}
\begin{center}
 \fbox{\includegraphics[scale=0.9]{Capture_Ecran/prog89.eps}}
\end{center}
\end{minipage}\\
\Rqs{
\item Le programme s'enregistre au fur et à mesure automatiquement, dans le catalogue personnel.
  \item Il est inutile de déclarer les variables sur ces calculatrices. 
\item On écrit les instructions ligne par ligne. A la fin d'une ligne, on tape 
\toucheTInoire{ENTER} pour passer à la suivante.}

\subsection{Editer/Supprimer/Renommer un programme déjà existant}
\noindent Pour \textbf{revenir à l'édition} d'un programme déjà existant, appuyer sur 
\toucheTIcoul{gray}{pink}{APPS} , choisir l'éditeur de programme, 
puis \texteTI{2: Ouvrir} et sélectionner le programme à modifier dans la liste des 
variables proposées.\\
Vous pouvez encore choisir \texteTI{1: Courant} qui ouvre le dernier programme édité.\\\\
Pour \textbf{supprimer} ou \textbf{renommer} un programme, appuyer sur 
\toucheTInd + \toucheTInoire{\LARGE{$-$}} , 
sélectionner le programme voulu puis ouvrir l'onglet \ongletTI{F1}{Gest} et choisir l'action voulue.

\noindent 
\begin{minipage}{15cm}
\section{Rédaction des instructions}
\subsection{Entrées/Sorties du programme (E/S)}
Ouvrir l'onglet \ongletTI{F3}{E/S} .\\
\textit{Il s'agit de tout ce qui concerne la communication entre le programme et l'utilisateur  : messages, valeurs de 
variables (demandées à l'utilisateur ou renvoyées par le programme) ...}\\
A votre stade, vous n'aurez besoin que de trois instructions.
\end{minipage} \qquad 
\begin{minipage}{3cm}
\vspace{1.2cm} 
\fbox{\includegraphics[scale=0.8]{Capture_Ecran/E-S89.eps}}
\end{minipage}\\\\
\begin{tabular}{|c|l|}\hline
 \textbf{Input ''Blabla ?'', B} & Demande \og Blabla ?\fg et enregistre la valeur rentrée 
 dans la variable B.\\\hline
  \textbf{Prompt B} & Demande \og B=? \fg et enregistre la valeur rentrée
 dans la variable B.\\\hline
  \textbf{Disp ''Blabla='',B} & Affiche le message \og Blabla= \fg, va à la ligne, 
 et affiche la valeur de la variable B.\\\hline
\end{tabular}\\\\
 \Rqs{
  \item \textbf{Input} et \textbf{Prompt} jouent le même rôle, 
  simplement Input permet de personnaliser le message affiché.
 \item On utilise les guillemets pour afficher un message.
  \item La virgule fait aller à la ligne, se qui peut s'avérer pratique pour les messages trop longs.
 }
\newpage
\subsection{Ponctuation} 
\noindent\begin{tabular}{lcllcl}
\textbf{Guillemets} & ( '' ) & \toucheTInd + \toucheTIg{1} &
\textbf{Point d'interrogation} & ( ? ) & \toucheTInd + \toucheTInoire{\Large{$+$}} + \texteTI{3:Ponctuation} + \texteTI{8:?}\\
\textbf{Virgule} & ( , ) & \toucheTInoire{\Large{,}} &
\textbf{Deux points} & ( : ) & \toucheTInd + \, \toucheTIg{4}  \\
\textbf{Espace} & ( $\sqcup$ ) &  \toucheTIcoul{white}{gray}{ALPHA} + \toucheTIg{($-$)}  &
\textbf{Apostrophe} & ( ' ) &  \toucheTInd + \toucheTInoire{\Large{$=$}}
\end{tabular}

\subsection{Affectation et comparaison de variables, conditions logiques }
\noindent 
\newcolumntype{M}[1]{>{\raggedright}m{#1}}
 \begin{tabular}{|c|M{9.5cm}|c|}\hline
\textbf{Valeur} \toucheTInoire{STO$\blacktriangleright$} \textbf{Variable} & Donne (affecte) la valeur à la variable \\
\textit{Valeur peut être un nombre ou une opération.} &  
\begin{minipage}{3cm}
\fbox{\includegraphics[scale=1]{Capture_Ecran/affectation89.eps}}
\end{minipage}\tabularnewline\hline
\toucheTInd + \toucheTIg{5} + \texteTI{8:Test} & Permet de choisir un symbole de test de comparaison
ainsi que les mots logiques (\textbf{non}, \textbf{et}, \textbf{ou}, \textbf{ou exclusif})\\
\textit{Le \og = \fg apparaissant dans \textbf{Test} teste si deux valeurs sont égales, mais n'affecte pas de valeur ...}
& \begin{minipage}{3.5cm}
\fbox{\includegraphics[scale=0.8]{Capture_Ecran/test89.eps}}
\end{minipage}
\tabularnewline\hline
\end{tabular}\\

\noindent 
\begin{minipage}{11cm}
\subsection{Structure conditionnelle et boucles}
\begin{minipage}{5cm}
Ouvrir l'onglet
\ongletTI{F2}{\tiny{StructCtrl}}
\end{minipage}\qquad 
\begin{minipage}{5cm}
 \fbox{\includegraphics[scale=1.2]{Capture_Ecran/Ctl89.eps}}
\end{minipage}\\\\\\
%\begin{minipage}{7cm}
%\textbf{Appeler un programme déjà existant} :\\
%Appuyer sur \fbox{CATALOG} puis \fbox{F4 : Personnel} et 
%avec \fbox{$\blacktriangledown$} choisir le programme à utiliser dans la liste des programmes existants. 
%\end{minipage}\qquad 
%\begin{minipage}{3cm}
% \fbox{\includegraphics[scale=0.7]{Capture_Ecran/Exec89.eps}}
% \end{minipage}
\textit{
Attention aux endroits où l'on doit retourner à la ligne, même si la calculatrice dispose automatiquement
les instructions.}
 \end{minipage}\qquad 
 \renewcommand{\arraystretch}{0.7}
\begin{minipage}{6cm}
\begin{tabular}{|M{1.8cm}|M{3.8cm}|}\hline
  If \dots Then \\   \dots\\   Else\\   \dots\\   EndIf &  \begin{minipage}{4cm}
  \begin{algorithme}
\IfThenElse{ \dots\, }
{\dots}
{\dots}
 \end{algorithme}  \end{minipage}  \tabularnewline\hline
 For i,1,10\\
 \dots\\
 EndFor &  
 \begin{minipage}{4cm}
\begin{algorithme}
\For{i allant de 1 à 10}
{\dots}
 \end{algorithme}
 \end{minipage} \tabularnewline\hline
  While x>0\\
 \dots\\
 EndWhile &  
 \begin{minipage}{4cm}
\begin{algorithme}
\While{x > 0}
{\dots}
 \end{algorithme}
 \end{minipage} \tabularnewline\hline
 \end{tabular}
 
\end{minipage}\\ 
\renewcommand{\arraystretch}{1}
\noindent \begin{minipage}{7cm}
\subsection{Les formules mathématiques}
Appuyer sur \toucheTInd + \toucheTIg{5} pour avoir les formules par catégorie.\\
Appuyer sur \toucheTInoire{CATALOG} pour avoir tout ce qui est disponible par ordre alphabétique.
 \end{minipage} \,
\begin{minipage}{12cm}
 \fbox{\includegraphics[scale=0.95]{Capture_Ecran/Math89.eps}} 
 \fbox{\includegraphics[scale=0.9]{Capture_Ecran/Num89.eps}} 
% \includegraphics[scale=1]{Capture_Ecran/Cpx83.eps} \qquad 
 \fbox{\includegraphics[scale=0.9]{Capture_Ecran/Prb89.eps} }
\end{minipage}

\noindent \begin{minipage}{13cm} 
\section{Exécuter un programme}
Dans le \toucheTInoire{HOME} appuyer sur \toucheTInoire{CATALOG}
puis ouvrir l'onglet \ongletTI{F4}{Personnel}\\
Avec \toucheTIF{gray}{$\blacktriangledown$}  choisir le programme à exécuter dans la liste 
des programmes existants.  
%Le chemin du programme choisi s'affiche dans l'écran de calcul, 
%fermer la parenthèse et valider son exécution par \toucheTInoire{ENTER}
\end{minipage} \quad
\begin{minipage}{6.5cm}
~ \\~\\~\\ \fbox{\includegraphics[scale=1]{Capture_Ecran/Exec89.eps}} 
\end{minipage} 
Valider par \toucheTInoire{ENTER} \\
Vous pouvez exécuter votre programme dans l'écran de calcul après avoir compléter 
les éventuelles données.

\end{document}
