Debian Codegraph @

texmf-dist/source/latex/graph35/graph35.dtx

raw
1 % \iffalse meta-comment
2 % Copyright 2018-2023 Louis Paternault
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is Louis Paternault
15 %
16 % This work consists of the files graph35.dtx and graph35.ins
17 % and the derived file graph35.sty.
18 % \fi
19 %
20 % \iffalse
21 %<*driver>
22 \ProvidesFile{graph35.dtx}
23 %</driver>
24 %
25 %<package>\NeedsTeXFormat{LaTeX2e}
26 %<package>\ProvidesPackage{graph35}
27 %<*package>
28 [2023/04/04 v0.1.4 Paquet permettant de dessiner des touches et menus de calculatrices CASIO.]
29 %</package>
30 %
31 %<*driver>
32 \documentclass{ltxdoc}
33 \EnableCrossrefs
34 \CodelineIndex
35 \RecordChanges
36 \usepackage[unicode=true]{hyperref}
37 %%\PassOptionsToPackage{draft}{pixelart0} % Uncomment for quick compilation
38 \usepackage{graph35}
39 \usetikzlibrary{arrows.meta}
40 \usepackage{listings}
41 \lstset{
42 language=[LaTeX]TeX,
43 numbers=left,
44 numberstyle=\tiny,
45 backgroundcolor=\color{yellow!20},
46 basicstyle=\small\color{black}\ttfamily,
47 keywordstyle=\color{blue!80}\sffamily,
48 commentstyle=\color{olive},
49 stringstyle=\color{red},
50 }
51 \usepackage{textcomp}
52 \usepackage{fontspec}
53 \usepackage{supertabular}
54 \usepackage[french]{babel}
55 \newcommand{\internationalizedempty}{\emph{Vide}}
56 \newcommand{\internationalizedCalculator}{Calculatrice}
57 \newcommand{\internationalizedAnchorsKeys}{Ancres des touches}
58 \newcommand{\internationalizedAnchorsReplay}{Ancres de la touche \texttt{REPLAY}}
59 \newcommand{\internationalizedAnchorsScreen}{Ancres de l'écran}
60 \newcommand{\internationalizedAnchorsCase}{Ancres du boîtier}
61 \newcommand{\internationalizedKeyview}{Mots-clefs des touches}
62 \usepackage[most]{tcolorbox}
63 \newtcolorbox{mybox}[2][]{float=htb, title={#2},#1}
64 \newcommand{\TikZ}{Ti\emph{k}Z}
65
66 \begin{document}
67 \DocInput{graph35.dtx}
68 \end{document}
69 %</driver>
70 % \fi
71 %
72 % \CheckSum{0}
73 % \CharacterTable
74 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
75 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
76 % Digits \0\1\2\3\4\5\6\7\8\9
77 % Exclamation \! Double quote \" Hash (number) \#
78 % Dollar \$ Percent \% Ampersand \&
79 % Acute accent \' Left paren \( Right paren \)
80 % Asterisk \* Plus \+ Comma \,
81 % Minus \- Point \. Solidus \/
82 % Colon \: Semicolon \; Less than \<
83 % Equals \= Greater than \> Question mark \?
84 % Commercial at \@ Left bracket \[ Backslash \\
85 % Right bracket \] Circumflex \^ Underscore \_
86 % Grave accent \` Left brace \{ Vertical bar \|
87 % Right brace \} Tilde \~}
88 %
89 % \GetFileInfo{graph35.dtx}
90 %
91 % \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ ,\!,\(,\),\,}
92 % \DoNotIndex{\begin, \bfseries, \boldsymbol, \boolvalue}
93 % \DoNotIndex{\ClassError, \colorlet, \coordinate, \csdef, \csuse}
94 % \DoNotIndex{\def, \definecolor, \draw}
95 % \DoNotIndex{\end, \else}
96 % \DoNotIndex{\fi, \fill, \foreach}
97 % \DoNotIndex{\graph@anchor, \graph@color, \setgraphcolor@blackandwhite, \setgraphcolor@default, \setgraphcolor@real, \graph@tempcolor, \graph@type, \graph@tikzshiftalpha, \graph@tikzgenerickeynumber, \graph@tikzgenerickeyACON, \graph@tikzgenerickeyalpha, \graph@tikzgenerickeyexe, \graph@tikzgenerickeyffive, \graph@tikzgenerickeyffour, \graph@tikzgenerickeyfone, \graph@tikzgenerickeyfsix, \graph@tikzgenerickeyfthree, \graph@tikzgenerickeyftwo, \graph@tikzgenerickeymenu, \graph@tikzgenerickeymisc, \graph@tikzgenerickeyreplay, \graph@tikzgenerickeyshift}
98 % \DoNotIndex{\i, \if@show, \ifcsdef, \ifdefstring, \ifshow@alpha, \ifshow@shift, \includegraphics}
99 % \DoNotIndex{\j}
100 % \DoNotIndex{\newcommand, \newif, \node}
101 % \DoNotIndex{\pgfkeys, \pgfkeyssetvalue, \pgfkeysvalueof, \ProcessPgfPackageOptions}
102 % \DoNotIndex{\RequirePackage}
103 % \DoNotIndex{\scriptsize, \sffamily, \small, \strut}
104 % \DoNotIndex{\temp@position, \tikzbwpixelart, \tiny, \tikzcalculator@graph35E+}
105 % \DoNotIndex{\usepgfmodule, \usetikzlibrary}
106 %
107 % \title{Graph35\thanks{
108 % Ce document décrit le paquet \textsf{graph35}~\fileversion, publié le \filedate.
109 % Site web, tickets de suivi, etc. sur \url{http://framagit.org/spalax/graph35}.
110 % }\\Paquet permettant de tracer des touches et menus de calculatrices \textsc{Casio}.}
111 % \author{Louis Paternault\\ \texttt{spalax(at)gresille(dot)org}}
112 %
113 % \maketitle
114 %
115 % \begin{abstract}
116 % Ce paquet fournit les commandes pour tracer des touches et menus de certaines calculatrices \textsc{Casio} (parmi lesquelles les \textsc{Graph25}, \textsc{Graph35}, \textsc{Graph75} et d'autres…).
117 % \end{abstract}
118 %
119 % \setcounter{tocdepth}{2}
120 % \tableofcontents
121 %
122 % \section{Introduction}
123 % Ce document présente le paquet \textsf{graph35}, permettant de tracer des boutons et menus de certaines calculatrices \textsc{Casio}.
124 %
125 % \subsection{License}
126 %
127 % This work may be distributed and/or modified under the
128 % conditions of the \LaTeX{} Project Public License, either version 1.3
129 % of this license or (at your option) any later version.
130 %
131 % Further information can be found in the |.dtx| file used to build this
132 % document.
133 %
134 % \begin{mybox}{Traduction (sans valeur légale)}
135 % L'ensemble de ce travail peut être publié et/ou modifié en respectant les conditions de la \emph{\LaTeX{} Project Public License} (License publique du projet \LaTeX), au choix dans la version 1.3 de cette licence, ou une licence ultérieure.
136 % \end{mybox}
137 %
138 % \subsection{Sommaire}
139 %
140 % L'installation est décrite dans la partie \ref{sec:install}. Les options et macros sont décrites dans la partie \ref{sec:usage}. La partie \ref{sec:software} décrit quelques logiciels utilisés ou associés à ce paquet. Les annexes \ref{sec:calculators} à \ref{sec:keys} contiennent la liste des calculatrices, touches, menus disponibles, ainsi que des illustrations des différentes macros mises en œuvre dans ce paquet. Enfin, la dernière partie \ref{sec:implementation} contient le code du paquet.
141 %
142 % \section{Téléchargement et installation}
143 % \label{sec:install}
144 %
145 % \subsection{Distributions \textsc{Gnu}/Linux}
146 %
147 % Sur les distributions pour lesquelles |graph35| a été empaqueté, la manière la plus simple de l'installer est d'utiliser votre gestionnaire de paquet. Sous Debian (et ses dérivées, comme Ubuntu), il est empaqueté dans le paquet |texlive-pictures| à partir de la version \texttt{2018.20180404-1}. Il est donc possible de l'installer en utilisant la commande suivante.
148 %
149 % \begin{quote}
150 % |sudo apt install texlive-pictures|
151 % \end{quote}
152 %
153 % \subsection{Distribution \LaTeX}
154 %
155 % Ce paquet est disponible à la fois dans les distributions \TeX{}Live et MiK\TeX{}. Il peut être installé en utilisant leur gestionnaire de paquets respectif.
156 %
157 % \subsection{Installation manuelle}
158 %
159 % \begin{itemize}
160 % \item Télécharger l'archive.
161 % \begin{description}
162 % \item[Version stable] \url{http://mirrors.ctan.org/graphics/graph35.zip}
163 % \item[Version de développement] \url{https://framagit.org/spalax/graph35/repository/archive.zip?ref=main}
164 % \end{description}
165 % \item Décompresser l'archive.
166 % \item Compiler le fichier : |latex graph35.ins|
167 % \item Déplacer les fichiers |.sty| dans un répertoire du chemin de \LaTeX{}.
168 % \end{itemize}
169 %
170 % \section{Utilisation}
171 % \label{sec:usage}
172 %
173 % \subsection{Calculatrices prises en charge}
174 %
175 % \begin{description}
176 % \item[Touches et calculatrices] Les macros permettent de dessiner la calculatrice et les touches de la \textsc{Graph35} uniquement.
177 % \item[Écran] Les macros permettent de dessiner les éléments de menus affichés à l'écran pour, entre autres, les \textsc{Graph25}, \textsc{Graph35}, \textsc{Graph75}, \textsc{fx-9860gii}, \textsc{fx-9750gii} et sans doute d'autres.
178 % \end{description}
179 %
180 % \subsection{Options du paquet}
181 %
182 % Le paquet admet une unique option |color|, qui vaut par défaut |color=real|.
183 %
184 % Cette option peut prendre deux valeurs : |real| et |blackandwhite|, qui définit la couleur par défaut des dessins (calculatrice et touches). Voir la section suivante pour les détails.
185 %
186 % \changes{v0.1.2}{2022/11/19}{Changement du nom du paquet utilisé pour dessiner les menus.}
187 % Ce n'est pas à proprement parler une option du paquet, mais pour accélérer la compilation, il est possible d'ajouter la ligne \lstinline+\PassOptionsToPackage{draft}{pixelart0}+ avant de charger le paquet |graph35| : ceci a pour effet de désactiver l'affichage de toutes les images en pixelart (principalement les macros |\function|, voir partie \ref{sec:function}). En effet, la compilation de ces commandes peut être très long, et la désactivation temporaire peut faire gagner du temps\footnote{Par exemple, sur mon ordinateur, ajouter cette option à ce fichier rend la compilation trente fois plus rapide, la faisant passer de huit minutes à 16 secondes.}.
188 %
189 % \subsection{Couleurs}
190 % \label{sec:colors}
191 %
192 % \subsubsection{Couleurs prédéfinies}
193 %
194 % Il est possible de personnaliser les couleurs des touches, de la calculatrice, etc. en utilisant des jeux de couleur prédéfinies (ou personnalisées ; voir plus loin). Ces jeux de couleurs prédéfinis sont :
195 % \begin{description}
196 % \item[real] \key[shift, alpha, color=real]{ACON} Couleur réaliste, mais qui risque d'être difficilement lisible dans un document imprimé en noir et blanc.
197 % \item[blackandwhite] \key[shift, alpha, color=blackandwhite]{ACON} Noir et blanc, à fort contraste, qui sera plus lisible à l'impression.
198 % \end{description}
199 %
200 % \subsubsection{Choix des couleurs}
201 %
202 % Plusieurs méthodes permettent de choisir parmi un jeu de couleur prédéfinies.
203 %
204 % \begin{itemize}
205 % \item L'argument |color| du paquet définit la couleur par défaut à utiliser (qui peut être ensuite modifiée au cas par cas avec l'option |color| des macros). Par exemple, pour que tous les dessins soient en noir et blanc, charger le paquet en utilisant \lstinline|\usepackage[color=blackandwhite]{graph35}|. Par défaut, les couleurs réalistes sont utilisées (|color=real|).
206 % \item Les commandes |\key| et |\calculator| acceptent en plus une valeur |color| pour définir la couleur de cette commande uniquement. Par défaut, la couleur définie lors du chargement du paquet est utilisée. Ces commandes acceptent un plus une valeur |color=default|, pour spécifier explicitement l'utilisation de la couleur par défaut.
207 % \item
208 % \DescribeMacro{\setgraphcolor}
209 % Enfin, il est possible de redéfinir la couleur par défaut en utilisant la macro |\setgraphcolor|\marg{color}. Par exemple, si le paquet a été chargé avec l'option |color=blackandwhite|, pour utiliser les couleurs réalistes pour la suite du document, utiliser \lstinline|\setgraphcolor{real}|.
210 % \end{itemize}
211 %
212 % \subsubsection{Couleurs personnalisées}
213 %
214 % Il est aussi possible d'utiliser des couleurs arbitraires en définissant les couleurs suivantes.
215 %
216 % \begin{description}
217 % \item |graph35ACON| : Touche |ACON| \key{ACON}.
218 % \item |graph35ACONBORDER| : Bordure de la touche |ACON|.
219 % \item |graph35ALPHA| : Touche |ALPHA| \key{ALPHA}.
220 % \item |graph35ALPHABORDER| : Bordure de la touche |ALPHA|.
221 % \item |graph35SHIFT| : Touche |SHIFT| \key{SHIFT}.
222 % \item |graph35SHIFTBORDER| : Bordure de la touche |SHIFT|.
223 % \item |graph35SCREEN| : Pixels de l'écran.
224 % \item |graph35SCREENBG| : Arrière-plan de l'écran.
225 % \item |graph35CASE| : Boîtier.
226 % \item |graph35CASEBORDER| : Bordure du boîtier.
227 % \item |graph35EXE| : Touche |EXE| \key{EXE}.
228 % \item |graph35EXEBORDER| : Bordure de la touche |EXE|.
229 % \item |graph35NUMBER| : Touches numériques.
230 % \item |graph35NUMBERBORDER| : Bordures des touches numériques.
231 % \item |graph35KEYTEXT| : Texte sur les touches.
232 % \item |graph35ALPHATEXT| : Texte \emph{alpha} au dessus des touches.
233 % \item |graph35SHIFTTEXT| : Texte \emph{shift} au dessus des touches.
234 % \end{description}
235 %
236 % \colorlet{graph35KEYTEXT}{green}
237 % \colorlet{graph35SHIFTTEXT}{orange}
238 % \definecolor{graph35ALPHATEXT}{RGB}{0, 0, 255}
239 % \definecolor{graph35NUMBER}{RGB}{200, 200, 200}
240 % \colorlet{graph35NUMBERBORDER}{graph35NUMBER}
241 %
242 % Ces couleurs sont des noms de couleur au sens du paquet |xcolor|, et peuvent être redéfinies en utilisant les commandes de ce paquet. Par exemple, pour produire la touche \key[shift, alpha]{7}, utiliser le code suivant.
243 %
244 % \iffalse
245 %<*example>
246 % \fi
247 % \begin{lstlisting}[language=TeX]
248 \colorlet{graph35KEYTEXT}{green}
249 \colorlet{graph35SHIFTTEXT}{orange}
250 \definecolor{graph35ALPHATEXT}{RGB}{0, 0, 255}
251 \definecolor{graph35NUMBER}{RGB}{200, 200, 200}
252 \colorlet{graph35NUMBERBORDER}{graph35NUMBER}
253
254 \key[shift, alpha]{7}
255 \end{lstlisting}
256 % \iffalse
257 %</example>
258 % \fi
259 %
260 % \setgraphcolor{real}
261 %
262 % \subsection{Calculatrices}
263 %
264 % \DescribeMacro{\calculator}
265 % Pour le moment, il n'est possible d'afficher qu'un seul modèle de calculatrice : la \textsc{graph35+}. La syntaxe est \lstinline|\calculator|\oarg{color, scale}\marg{modèle}.
266 %
267 % \begin{itemize}
268 % \item \marg{modèle} Voir la liste des modèles disponibles dans l'annexe \ref{sec:calculators} (page \pageref{sec:calculators}).
269 % \item \oarg{color} Permet de changer la couleur du dessin ; voir la partie précédente (\ref{sec:colors}).
270 % \item \oarg{scale} Permet de modifier l'échelle du dessin. Le résultat produit n'est pas forcément celui que vous attendiez ; voir la partie \ref{sec:scale} pour plus d'informations.
271 % \end{itemize}
272 %
273 % Par exemple, la commande \lstinline|\calculator[color=real]{graph35+E}| produit une version dix fois plus grande du dessin suivant (une version plus grande est visible dans l'annexe \ref{sec:calculators}, page \pageref{sec:calculators}).
274 %
275 % \begin{center}
276 % \scalebox{.1}{%
277 % \calculator{graph35+E}
278 % }
279 % \end{center}
280 %
281 % \DescribeMacro{\tikzcalculator}
282 % Il est aussi possible d'inclure une calculatrice dans une figure \TikZ, avec la commande \lstinline|\tikzcalculator|\marg{modèle}. Cette commande ne prend aucun autre argument que le modèle, et trace une calculatrice autour des coordonnées $(0; 0)$. Pour dessiner ailleurs, avec une autre échelle, utilisez un environnement |scope|, comme dans l'exemple suivant.
283 %
284 % \iffalse
285 %<*example>
286 % \fi
287 % \begin{lstlisting}
288 \begin{tikzpicture}
289 \begin{scope}[shift={(1, 2)}, scale=.5]
290 \tikzcalculator{graph35+E}
291 \end{scope}
292 \end{tikzpicture}
293 \end{lstlisting}
294 % \iffalse
295 %</example>
296 % \fi
297 %
298 % Des ancres (\emph{anchors}) sont définies pour chacune des touches, les bords de la calculatrice, ainsi que l'écran, pour pouvoir y faire référence dans vos tracés \TikZ. Voir la partie \ref{sec:anchors} pour plus d'informations.
299 %
300 % \subsection{Touches}
301 %
302 % \DescribeMacro{\key}
303 % \changes{v0.1.4}{2023/04/04}{Léger changement de dessin de la clef $X\theta{}T$.}
304 % Pour inclure une touche de la calculatrice, utiliser :
305 % \begin{center}
306 % \lstinline|\key|\oarg{color, prefix, suffix, scale, shift, alpha}\marg{touche}.
307 % \end{center}
308 %
309 % Par exemple \lstinline|\key[color=blackandwhite]{DEL}| produira \key[color=blackandwhite]{DEL} tandis que \lstinline|\key[shift, alpha]{DEL}| produira \key[shift, alpha]{DEL}.
310 %
311 % Les arguments sont:
312 % \begin{itemize}
313 % \item \marg{touche} Nom de la touche à afficher (par exemple \lstinline|1| pour \key{1}, ou \lstinline|EXE| pour \key{EXE}). Le nom de la touche est plus ou moins ce qui est écrit dessus. La liste des touches est visible sous forme de liste dans l'annexe \ref{sec:keylist}, ou comme légende d'une calculatrice dans la figure \ref{fig:keyview}.
314 % \item \oarg{color, scale} Couleur et échelle de la touche. Ces arguments prennent les mêmes arguments et ont les mêmes limitations que pour la commande \lstinline|calculator| (voir section \ref{sec:colors} pour les couleurs, et \ref{sec:scale} pour l'échelle).
315 % \item \oarg{shift, alpha} Ces options affichent ou masquent les textes jaunes et rouges décrivant la fonction de la touche si elle a été pressée après les touches \key{SHIFT} ou \key{ALPHA}. Par défaut, ces textes sont masqués (ce qui est équivalent à \texttt{shift=false, alpha=false}) ; pour l'activer, utiliser \texttt{shift=true} ou \texttt{alpha=true} ou plus simplement \texttt{shift} ou \texttt{alpha}.
316 % \item \oarg{prefix, suffix} Des ancres (\emph{anchors}) sont créées avec chaque touche, pour permettre d'y faire référence dans les tracés \TikZ{} (elles sont utilisées par exemple pour tracer la figure \ref{fig:keyview}). Par défaut, ces ancres ont pour nom \texttt{key} suivi du nom de la touche (par exemple \texttt{keyDEL} pour la touche \texttt{DEL}). Ces options permettent de définir le nom de l'ancre, comme dans la figure suivante. Cela permet d'avoir plusieurs fois la même touche sur la même figure, et de faire référence aux deux touches de manière distincte. Ces options contrôlent aussi le nom des ancres définies pour les textes \texttt{SHIFT} et \texttt{ALPHA}.
317 % \begin{center}
318 % \begin{tikzpicture}[thick]
319 % \tikzkey[shift, alpha]{DEL}{(0, 2)}
320 % \tikzkey[shift, alpha, prefix=tagada, suffix=tsoin]{DEL}{(0, 0)}
321 %
322 % \draw (2, 2) node[anchor=west]{Sans options : ancres \texttt{keyDEL}, \texttt{keyDELshift}, \texttt{keyDELalpha}.};
323 % \draw (2, 0) node[anchor=west, text width={8cm}]{Avec options \texttt{prefix=tagada, suffix=tsoin} : ancres \texttt{tagadaDELtsoin}, \texttt{tagadaDELtsoinshift}, \texttt{tagadaDELtsoinalpha}.};
324 %
325 % \draw[dashed] (2, 2) edge[->, bend left=10] (keyDEL);
326 % \draw[dashed] (2, 2) edge[->, bend right=40] (keyDELshift.north east);
327 % \draw[dashed] (2, 2) edge[->, bend right=15] (keyDELalpha.east);
328 % \draw[dashed] (2, 0) edge[->, bend left=10] (tagadaDELtsoin);
329 % \draw[dashed] (2, 0) edge[->, bend right=30] (tagadaDELtsoinshift.north east);
330 % \draw[dashed] (2, 0) edge[->, bend right=10] (tagadaDELtsoinalpha.east);
331 % \end{tikzpicture}
332 % \end{center}
333 % Ces ancres sont illustrées dans les annexes \ref{sec:anchorskey} et \ref{sec:anchorsreplay}.
334 % \item En regardant le code source, vous pouvez voir que d'autres options sont disponibles. Elles ne sont pas décrites ici car elles ne sont pas destinées à être utilisées par l'utilisateur final, et peuvent changer dans une prochaine version sans préavis.
335 % \end{itemize}
336 %
337 % \DescribeMacro{\tikzkey}
338 % Comme pour |\calculator| et |\tikzcalculator|, la macro |\tikzkey| a la même fonction que |\key|, sauf qu'elle est prévue pour être appelée à l'intérieur d'en environnement \TikZ. Sa signature est :
339 % \begin{center}
340 % |\tikzkey|\oarg{options}\marg{touche}\marg{coordonnées}
341 % \end{center}
342 %
343 % Ses arguments sont :
344 % \begin{itemize}
345 % \item \oarg{options} les mêmes options que pour la commande |\key| ;
346 % \item \marg{touche} le nom de la touche à dessiner ;
347 % \item \marg{coordonnées} les coordonnées autour desquelles dessiner la touche.
348 % \end{itemize}
349 %
350 % \subsection{Écran}
351 %
352 % Des macros permettent de tracer des éléments de menu qui apparaissent à l'écran. Il y en a trois : pour tracer les éléments du menu, les légendes des touches de fonction, et le niveau des batteries.
353 %
354 % \subsubsection{Menus}
355 %
356 % \DescribeMacro{\menu}
357 % La macro |\menu|\marg{icône}\marg{raccourci} affiche l'icône du menu de la calculatrice. Par exemple, |\menu{RUNMAT}{A}| affiche \menu{RUNMAT}{A}. Le raccourci (le caractère apparaissant en bas à droite de l'icône) est indépendant de l'icône car selon le modèle et la mise à jour de la calculatrice, il peut varier.
358 %
359 % La liste des icônes et raccourcis disponibles est disponible dans l'annexe \ref{sec:menu}.
360 %
361 % \DescribeMacro{\tikzmenu}
362 % La macro |\tikzmenu|, dont la signature est |\tikzmenu|\oarg{options}\marg{icône}\marg{raccourci}\marg{coordonnées}, dessine une icône du menu dans un environnement \TikZ. Ses arguments sont :
363 %
364 % \begin{itemize}
365 % \item \marg{icône} et \marg{raccourci} : mêmes arguments que pour |\menu| ;
366 % \item \marg{coordonnées} : coordonnées du coin supérieur gauche du menu ;
367 % \item \oarg{options} : options, qui sont passées telles quelles à la macro |\bwpixelart| du paquet |pixelart0| ; elles permettent de régler l'échelle et la couleur du tracé (par exemple |scale=.5, color=red|).
368 % \end{itemize}
369 %
370 % \subsubsection{Fonctions}
371 %
372 % \DescribeMacro{\function}
373 % La macro |\function|\marg{fonction} affiche la légende des touches de fonctions \key{F1} à \key{F6} (par exemple \function{aplusbx} ou \function{question-b}). La liste des dessins disponibles se trouve à l'annexe \ref{sec:function}.
374 %
375 % \DescribeMacro{\tikzfunction}
376 % La macro |\tikzfunction|\oarg{options}\marg{fonction}\marg{coordonnées} a la même utilité que la macro |\function|, mais dans un environnement \TikZ. Son argument \marg{fonction} est le même que pour |\function| ; ses arguments \oarg{options} et \marg{coordonnées} sont les mêmes que pour |\tikzmenu|.
377 %
378 % \subsubsection{Batterie}
379 %
380 % \DescribeMacro{\battery}
381 % La macro |\battery|\marg{charge} affiche le niveau de la batterie (par exemple \battery{medium}). La liste des dessins disponibles se trouve à l'annexe \ref{sec:battery}.
382 %
383 % \DescribeMacro{\tikzbattery}
384 % La macro |\tikzbattery|\oarg{options}\marg{charge}\marg{coordonnées} a la même utilité que la macro |\battery|, mais dans un environnement \TikZ. Son argument \marg{charge} est le même que pour |\battery| ; ses arguments \oarg{options} et \marg{coordonnées} sont les mêmes que pour |\tikzmenu|.
385 %
386 % \subsection{Changement d'échelle}
387 % \label{sec:scale}
388 %
389 % L'option |scale| utilisée pour modifier la taille des calculatrices et des touches ne modifie pas l'épaisseur des traits ni le rayon des coins arrondis. Ceci a pour effet indésirable le tracé suivant d'une calculatrice à l'échelle $^1/_{10}$ : remarquez que le bord du cadre (en vert) est trop épais, et l'écran est quasiment elliptique.
390 % \begin{center}
391 % \calculator[scale=.1]{graph35+E}.
392 % \end{center}
393 %
394 % Pour remédier à cela, plusieurs solutions existent, dont aucune n'est idéale, sans quoi elle serait mise en œuvre par défaut.
395 %
396 % \begin{itemize}
397 % \item S'accomoder de ces défauts. En effets, pour des petites mises à l'échelle, ils sont peu visibles.
398 % \item Enrober le tracé dans une commande |\scalebox| ou |\resizebox|, comme le code |\resizebox{.1}{\calculator{graph35+E}}| qui produit le tracé suivant.
399 % \begin{center}
400 % \scalebox{.1}{\calculator{graph35+E}}
401 % \end{center}
402 % \item Utiliser l'option |transform canvas| de |pgf| (lors de l'appel à \TikZ, comme par exemple |\begin{tikzpicture}[scale=.1, transform canvas={scale=.1}]…|. Ceci réduit correctement l'ensemble du tracé, mais ne change pas les limites dudit tracé, et ne modifie pas les coordonnées en accord (donc les ancres deviennent inutilisables).
403 % \end{itemize}
404 %
405 % Enfin, si vous incluez des tracés dans un environnement |tikzpicture| avec l'option |scale|, n'oubliez pas d'ajouter l'option |transform shape| pour que les contours de l'image soient aussi modifiés, et que votre petite image ne se retrouve pas perdue au milieu d'un grand espace vide.
406 %
407 % \section{Binaires}
408 % \label{sec:software}
409 %
410 % Quelques logiciels (écrits en Python3) sont maintenus en même temps que ce paquet \LaTeX{}, afin d'aider à son développement. Ils ne sont par contre pas distribués avec ce paquet, et doivent être téléchargés sur la forge logicielle pour être utilisés. Ils sont assez spécialisés pour accompagner le développement de ce paquet, mais si quelqu'un leur trouve une autre utilité, tant mieux.
411 %
412 % La plupart de ces logiciels manipulent des fichiers au format |.pxl|, qui est un format créé pour l'occasion, codant une image en \emph{pixel art}. Chaque icône de menu, ou fonction, est enregistrée dans un tel fichier avant d'être convertie en code \LaTeX{} et intégrée à ce paquet.
413 %
414 % \begin{itemize}
415 % \item |catpxl| Affiche dans le terminal, de manière lisible, un fichier |.pxl|.
416 % \item |completefunctionchars| Si ce n'est pas déjà fait, associe à chaque \emph{pixel art} des touches de fonction la liste des caractères apparaissant dessus (ceci est utile pour ensuite indexer ces \emph{pixel art} dans l'annexe \ref{sec:function}).
417 % \item |generate.keys| et |generate.pixelart| À partir de différents fichiers du dépôt, génère le code \LaTeX{} distribué sous la forme de ce paquet, et une partie de la documentation.
418 % \item |screenshot2pixelart| Extrait d'une capture d'écran de la calculatrice ses \emph{pixel art}.
419 % \end{itemize}
420 %
421 % \appendix
422 %
423 % \section{Calculatrices}
424 % \label{sec:calculators}
425 %
426 % Liste des calculatrices représentées, ainsi que leur mot-clef (utilisé comme argument des macros |\calculator| et |\tikzcalculator|).
427 %
428 % \input{doc/calculators.tex}
429 %
430 % \section{Ancres}
431 % \label{sec:anchors}
432 %
433 % Illustration des différentes ancres définies sur les différents tracés.
434 %
435 % \subsection{Ancres des touches}
436 % \label{sec:anchorskey}
437 %
438 % Chaque touche définit les ancres illustrées à la figure \ref{fig:anchors:key}.
439 % \input{doc/anchors-key.tex}
440 %
441 % \subsection{Ancres de la touche \texttt{REPLAY}}
442 % \label{sec:anchorsreplay}
443 %
444 % La touche |REPLAY| définit des ancres supplémentaires, pour chacune des flèches. Elles sont illustrées figure \ref{fig:anchors:replay}.
445 %
446 % \input{doc/anchors-replay.tex}
447 %
448 % \subsection{Ancres de l'écran}
449 %
450 % Il est possible de faire référence à l'écran en utilisant les ancres de la figure \ref{fig:anchors:screen}.
451 %
452 % \input{doc/anchors-screen.tex}
453 %
454 % \subsection{Ancres du boîtier}
455 %
456 % Il est possible de faire référence au boîtier en utilisant les ancres de la figure \ref{fig:anchors:case}.
457 %
458 % \input{doc/anchors-case.tex}
459 %
460 % \section{Pixel art}
461 % \label{sec:pixelart}
462 %
463 % \subsection{Menu}
464 % \label{sec:menu}
465 %
466 % En plus des icônes et raccourcis disponibles sur les calculatrices, deux valeurs spéciales sont disponibles : |black|, qui produit une figure de même taille, mais noire ; et |blank|, qui ne produit aucune figure.
467 %
468 % \subsubsection{Icônes}
469 %
470 % \begin{multicols}{2}
471 % \input{doc/pixelart-menu.tex}
472 % \end{multicols}
473 %
474 % \subsubsection{Raccourcis}
475 %
476 % \begin{multicols}{2}
477 % \input{doc/pixelart-menuchar.tex}
478 % \end{multicols}
479 %
480 % \subsection{Fonctions}
481 % \label{sec:function}
482 %
483 % Les images disponibles sont triées selon les caractères visibles (lettres latines et chiffres). Pour trouver quel code produit l'image que vous désirez, regardez quels caractères sont visibles, et retrouvez votre image dans la partie correspondante de l'index.
484 %
485 % Par exemple, sur \function{battery} ou \function{GREEK}, aucun caractère n'est visible (en effet, les lettres de \function{GREEK} sont des lettres grecques, pas latines) ; sur \function{Sacn-b}, les lettres |acn| sont visibles ; sur \function{tcomplexpolar-b}, seul la lettre |r| est visible ; etc.
486 %
487 % \begin{multicols}{3}
488 % \input{doc/pixelart-function.tex}
489 % \end{multicols}
490 %
491 % \subsection{Batterie}
492 % \label{sec:battery}
493 %
494 % Liste des indicateurs de charge de batterie.
495 %
496 % \begin{multicols}{3}
497 % \input{doc/pixelart-battery.tex}
498 % \end{multicols}
499 %
500 % \section{Touches}
501 % \label{sec:keys}
502 %
503 % Les touches sont ici classées dans un ordre arbitraire. Pour les retrouver sur la calculatrice, voir la figure \ref{fig:keyview}.
504 %
505 % \input{doc/key-view.tex}
506 %
507 % \label{sec:keylist}
508 % \begin{multicols}{3}
509 % \input{doc/key-list.tex}
510 % \end{multicols}
511 %
512 % \section{Implementation}
513 % \label{sec:implementation}
514 %
515 % Load some packages.
516 % \begin{macrocode}
517 \RequirePackage{etoolbox}
518
519 \RequirePackage{pixelart0}
520 \RequirePackage{tikz}
521 \usetikzlibrary{calc}
522 \RequirePackage{pgfkeys}
523 \RequirePackage{etoolbox}
524 \RequirePackage{amssymb}
525 \RequirePackage{amsbsy}
526 \RequirePackage{sansmath}
527 \RequirePackage{letterspace}
528 \RequirePackage{pgfopts}
529
530 \RequirePackage{graph35-pixelart}
531 \RequirePackage{graph35-keys}
532 % \end{macrocode}
533 %
534 % Define package arguments
535 %
536 % \begin{macrocode}
537 \pgfkeys{
538 % color option
539 /GRAPH35/.cd,
540 color/.is choice,
541 color/real/.code={\def\graph@color{real}},
542 color/blackandwhite/.code={\def\graph@color{blackandwhite}},
543 color/.value required,
544 color={real},
545 }
546 \ProcessPgfPackageOptions{/GRAPH35}
547 % \end{macrocode}
548 %
549 % Define colors.
550 %
551 % \begin{macrocode}
552 \newcommand{\setgraphcolor@default}{}
553 \newcommand{\setgraphcolor@blackandwhite}{
554 \colorlet{graph35ACON}{white}
555 \colorlet{graph35ACONBORDER}{black}
556 \colorlet{graph35SHIFT}{white}
557 \colorlet{graph35SHIFTTEXT}{black}
558 \colorlet{graph35SHIFTBORDER}{black}
559 \colorlet{graph35CASE}{white}
560 \colorlet{graph35CASEBORDER}{black}
561 \colorlet{graph35ALPHA}{white}
562 \colorlet{graph35ALPHATEXT}{black}
563 \colorlet{graph35ALPHABORDER}{black}
564 \colorlet{graph35EXE}{white}
565 \colorlet{graph35EXEBORDER}{black}
566 \colorlet{graph35WHITE}{white}
567 \colorlet{graph35KEYTEXT}{black}
568 \colorlet{graph35SCREEN}{black}
569 \colorlet{graph35NUMBER}{white}
570 \colorlet{graph35NUMBERBORDER}{black}
571 \colorlet{graph35SCREENBG}{white}
572 }
573 \newcommand{\setgraphcolor@real}{
574 \colorlet{graph35KEYTEXT}{white}
575 \definecolor{graph35ACON}{RGB}{99, 95, 110}
576 \colorlet{graph35ACONBORDER}{graph35ACON}
577 \definecolor{graph35SHIFT}{RGB}{209, 164, 11}
578 \definecolor{graph35SHIFTTEXT}{RGB}{209, 164, 11}
579 \colorlet{graph35SHIFTBORDER}{graph35SHIFT}
580 \definecolor{graph35CASE}{RGB}{236, 236, 236}
581 \definecolor{graph35CASEBORDER}{RGB}{43, 108, 130}
582 \definecolor{graph35ALPHA}{RGB}{220, 89, 1}
583 \definecolor{graph35ALPHATEXT}{RGB}{220, 89, 1}
584 \colorlet{graph35ALPHABORDER}{graph35ALPHA}
585 \definecolor{graph35EXE}{RGB}{86, 78, 177}
586 \colorlet{graph35EXEBORDER}{graph35EXE}
587 \definecolor{graph35WHITE}{RGB}{255, 255, 255}
588 \definecolor{graph35SCREEN}{RGB}{0, 0, 0}
589 \definecolor{graph35NUMBER}{RGB}{44, 44, 54}
590 \colorlet{graph35NUMBERBORDER}{graph35NUMBER}
591 \definecolor{graph35SCREENBG}{RGB}{234,240,241}
592 }
593
594 \csuse{setgraphcolor@\graph@color}
595 % \end{macrocode}
596 %
597 % \begin{macro}{\setgraphcolor}
598 % Define |\setgraphcolor|, to set default color set.
599 % \begin{macrocode}
600 \newcommand{\setgraphcolor}[1]{
601 \csuse{setgraphcolor@#1}%
602 }
603 % \end{macrocode}
604 % \end{macro}
605 %
606 % \begin{macro}{\menu}
607 % Define |\menu|, which is basically a call to |\tikzmenu|.
608 %
609 % \begin{macrocode}
610 \newcommand{\menu}[2]{%
611 \begin{tikzpicture}[baseline=-2.7ex]%
612 \tikzmenu[scale=.03]{#1}{#2}{(0, 0)}
613 \end{tikzpicture}%
614 }
615 % \end{macrocode}
616 % \end{macro}
617 %
618 % \begin{macro}{\tikzmenu}
619 % Define |\tikzmenu|, which is a wrapper to the |\tikzmenu@*| macros defined in |graph35-pixelart.sty|.
620 %
621 % \begin{macrocode}
622 \newcommand{\tikzmenu}[4][]{%
623 \ifcsdef{tikzmenu@#2}{%
624 \csuse{tikzmenu@#2}[#1]{#3}{#4}
625 }{%
626 \ClassError{graph35}{Unknown menu '#2'}{Look for the list of available menus in the package documentation.}%
627 }%
628 }
629 % \end{macrocode}
630 % \end{macro}
631 %
632 % \begin{macro}{\battery}
633 % Define |\battery|, which is basically a call to |\tikzbattery|.
634 %
635 % \begin{macrocode}
636 \newcommand{\battery}[1]{%
637 \begin{tikzpicture}[baseline=-1.3ex]%
638 \tikzbattery[scale=.03]{#1}{(0, 0)}
639 \end{tikzpicture}%
640 }
641 % \end{macrocode}
642 % \end{macro}
643 %
644 % \begin{macro}{\tikzbattery}
645 % Define |\tikzbattery|, which is a wrapper to the |\tikzbattery@*| macros defined in |graph35-pixelart.sty|.
646 %
647 % \begin{macrocode}
648 \newcommand{\tikzbattery}[3][]{%
649 \ifcsdef{tikzbattery@#2}{%
650 \csuse{tikzbattery@#2}[#1]{#3}
651 }{%
652 \ClassError{graph35}{Unknown battery status '#2'}{Look for the list of available battery status in the package documentation.}%
653 }%
654 }
655 % \end{macrocode}
656 % \end{macro}
657 %
658 % \begin{macro}{\function}
659 % Define |\function|, which is basically a call to |\tikzfunction|.
660 %
661 % \begin{macrocode}
662 \newcommand{\function}[1]{%
663 \begin{tikzpicture}[baseline=-1.3ex]%
664 \tikzfunction[scale=.03]{#1}{(0, 0)}
665 \end{tikzpicture}%
666 }
667 % \end{macrocode}
668 % \end{macro}
669 %
670 % \begin{macro}{\tikzfunction}
671 % Define |\tikzfunction|, which is a wrapper to the |\tikzfunction@*| macros defined in |graph35-pixelart.sty|.
672 %
673 % \begin{macrocode}
674 \newcommand{\tikzfunction}[3][]{%
675 \ifcsdef{tikzfunction@#2}{%
676 \csuse{tikzfunction@#2}[#1]{#3}%
677 }{%
678 \ClassError{graph35}{Unknown function menu '#2'}{Look for the list of available function menus in the package documentation.}%
679 }%
680 }
681 % \end{macrocode}
682 % \end{macro}
683 %
684 % Parsing |\key| arguments (and |\graph@tikzshiftalpha|, used in |\key| to draw the shift and alpha texts).
685 %
686 % \begin{macrocode}
687 \newif\ifshow@shift
688 \newif\ifshow@alpha
689 \newcommand{\boolvalue}[1]{\csuse{if#1}true\else false\fi}
690 \pgfkeys{
691 /GRAPH35/KEY/.is family,
692 /GRAPH35/KEY,
693 prefix/.code={\pgfkeyssetvalue{/GRAPH35/KEY/prefix}{#1}},
694 prefix/.value required,
695 prefix={key},
696 suffix/.code={\pgfkeyssetvalue{/GRAPH35/KEY/suffix}{#1}},
697 suffix/.value required,
698 suffix={},
699 name/.code={\pgfkeyssetvalue{/GRAPH35/KEY/name}{#1}},
700 name/.value required,
701 name={},
702 scale/.code={\pgfkeyssetvalue{/GRAPH35/KEY/scale}{#1}},
703 scale/.value required,
704 scale=1,
705 type/.is choice,
706 type/text/.code={\def\graph@type{text}},
707 type/formula/.code={\def\graph@type{formula}},
708 type/.value required,
709 content/.code={\pgfkeyssetvalue{/GRAPH35/KEY/content}{#1}},
710 content/.value required,
711 content={},
712 shift/.is if=show@shift,
713 shift=false,
714 shift type/.code={\pgfkeyssetvalue{/GRAPH35/KEY/shift type}{#1}},
715 shift type/.value required,
716 shift type={text},
717 shift content/.code={\pgfkeyssetvalue{/GRAPH35/KEY/shift content}{#1}},
718 shift content/.value required,
719 shift content={},
720 shift position/.code={\pgfkeyssetvalue{/GRAPH35/KEY/shift position}{#1}},
721 shift position/.value required,
722 shift position=left,
723 alpha/.is if=show@alpha,
724 alpha=false,
725 alpha type/.code={\pgfkeyssetvalue{/GRAPH35/KEY/alpha type}{#1}},
726 alpha type/.value required,
727 alpha type={text},
728 alpha content/.code={\pgfkeyssetvalue{/GRAPH35/KEY/alpha content}{#1}},
729 alpha content/.value required,
730 alpha content={},
731 alpha position/.code={\pgfkeyssetvalue{/GRAPH35/KEY/alpha position}{#1}},
732 alpha position/.value required,
733 alpha position=right,
734 color/.is choice,
735 color/real/.code={\def\graph@tempcolor{real}},
736 color/blackandwhite/.code={\def\graph@tempcolor{blackandwhite}},
737 color/default/.code={\def\graph@tempcolor{default}},
738 color/.value required,
739 color={default},
740 }
741
742 \newif\if@show
743 \pgfkeys{
744 /GRAPH35/SHIFTALPHA/.is family,
745 /GRAPH35/SHIFTALPHA,
746 show/.is if=@show,
747 show=false,
748 name/.code={\pgfkeyssetvalue{/GRAPH35/SHIFTALPHA/name}{#1}},
749 name/.value required,
750 name={graph35@tempname},
751 type/.is choice,
752 type/text/.code={\def\graph@type{text}},
753 type/formula/.code={\def\graph@type{formula}},
754 type/.value required,
755 content/.code={\pgfkeyssetvalue{/GRAPH35/SHIFTALPHA/content}{#1}},
756 content/.value required,
757 content={},
758 style/.code={\pgfkeyssetvalue{/GRAPH35/SHIFTALPHA/style}{#1}},
759 style/.value required,
760 style={},
761 position/.is choice,
762 position/left/.code={\def\temp@position{left}},
763 position/right/.code={\def\temp@position{right}},
764 position/center/.code={\def\temp@position{center}},
765 node/.code={\pgfkeyssetvalue{/GRAPH35/SHIFTALPHA/node}{#1}},
766 node/.value required,
767 color/.code={\pgfkeyssetvalue{/GRAPH35/SHIFTALPHA/color}{#1}},
768 color/.value required,
769 color=graph35SCREEN,
770 }
771 % \end{macrocode}
772 %
773 % \begin{macro}{\key}
774 % Definition of |\key|, which is a wrapper to |\tikzkey|.
775 % \begin{macrocode}
776 \newcommand{\key}[2][]{%
777 \begin{tikzpicture}[baseline=(@origin.base), scale=.5, transform shape, every node/.style={transform shape}]%
778 \node (@origin) at (0, 0) {\strut};
779 \tikzkey[#1]{#2}{(0, 0)}%
780 \end{tikzpicture}%
781 }
782 % \end{macrocode}
783 % \end{macro}
784 %
785 % \begin{macro}{\tikzkey}
786 % Definition of |\tikzkey|, which is a wrapper to a bunch of |\tikzkey@*| macros, one for each key.
787 % \begin{macrocode}
788 \newcommand{\tikzkey}[3][]{%
789 \ifcsdef{tikzkey@#2}{%
790 \csuse{tikzkey@#2}[#1]{#3}%
791 }{%
792 \ClassError{graph35}{Unknown key '#2'}{Look for the list of available keys in the package documentation.}
793 }%
794 }
795 % \end{macrocode}
796 % \end{macro}
797 %
798 % Define |\graph@tikzshiftalpha|, used internally to draw shift and alpha text or symbols.
799 % \begin{macrocode}
800
801 \newcommand{\graph@tikzshiftalpha}[1]{{
802 \pgfkeys{/GRAPH35/SHIFTALPHA, #1}
803 \if@show
804 \ifdefstring{\temp@position}{left}{
805 \def\graph@anchor{south west}
806 \coordinate (graph@node) at (\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/node}.north west);
807 }{}
808 \ifdefstring{\temp@position}{right}{
809 \def\graph@anchor{south east}
810 \coordinate (graph@node) at (\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/node}.north east);
811 }{}
812 \ifdefstring{\temp@position}{center}{
813 \def\graph@anchor{south}
814 \coordinate (graph@node) at (\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/node}.north);
815 }{}
816 \ifdefstring{\graph@type}{text}{
817 \node[inner sep=1pt, color=\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/color}, anchor=\graph@anchor] (\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/name}) at (graph@node) {\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/style}\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/content}};
818 }{
819 \node[inner sep=1pt, color=\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/color}, anchor=\graph@anchor] (\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/name}) at (graph@node) {\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/style}$\boldsymbol{\pgfkeysvalueof{/GRAPH35/SHIFTALPHA/content}}$};
820 }
821 \else\fi
822 }}
823 % \end{macrocode}
824 %
825 % Define number keys (e.g. \key{1}).
826 % \begin{macrocode}
827 \newcommand{\graph@tikzgenerickeynumber}[2][]{{
828 \pgfkeys{/GRAPH35/KEY, #1}%
829 \setgraphcolor{\graph@tempcolor}%
830 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
831 \draw[very thick, color=graph35NUMBERBORDER, fill=graph35NUMBER] plot [smooth cycle] coordinates {
832 (-.43, .25)
833 (.43, .25)
834 (.43, -.25)
835 (-.43, -.25)
836 };
837 \node[minimum width=1.03cm, minimum height=.59cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
838 \ifdefstring{\graph@type}{text}{
839 \node[color=graph35KEYTEXT] {\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
840 }{
841 \node[color=graph35KEYTEXT] {$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
842 }
843
844 \graph@tikzshiftalpha{,
845 show=\boolvalue{show@shift},
846 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
847 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
848 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
849 color=graph35SHIFTTEXT,
850 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
851 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
852 style={\tiny},
853 }
854 \graph@tikzshiftalpha{,
855 show=\boolvalue{show@alpha},
856 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}alpha},
857 position=\pgfkeysvalueof{/GRAPH35/KEY/alpha position},
858 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
859 color=graph35ALPHATEXT,
860 type={\pgfkeysvalueof{/GRAPH35/KEY/alpha type}},
861 content={\pgfkeysvalueof{/GRAPH35/KEY/alpha content}},
862 style={\tiny},
863 }
864 \end{scope}
865 \setgraphcolor{\graph@color}%
866 }}
867 % \end{macrocode}
868 %
869 % Define |ACON| key \key{ACON}.
870 % \begin{macrocode}
871 \newcommand{\graph@tikzgenerickeyACON}[2][]{{
872 \pgfkeys{/GRAPH35/KEY, #1}%
873 \setgraphcolor{\graph@tempcolor}%
874 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
875 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
876 (-.43, .25)
877 (.43, .25)
878 (.43, -.25)
879 (-.43, -.25)
880 };
881 \node[minimum width=1.03cm, minimum height=.59cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
882 \ifdefstring{\graph@type}{text}{
883 \node[color=graph35KEYTEXT] {\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
884 }{
885 \node[color=graph35KEYTEXT] {$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
886 }
887
888 \graph@tikzshiftalpha{,
889 show=\boolvalue{show@shift},
890 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
891 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
892 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
893 color=graph35SHIFTTEXT,
894 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
895 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
896 style={\tiny},
897 }
898 \graph@tikzshiftalpha{,
899 show=\boolvalue{show@alpha},
900 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}alpha},
901 position=\pgfkeysvalueof{/GRAPH35/KEY/alpha position},
902 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
903 color=graph35ALPHATEXT,
904 type={\pgfkeysvalueof{/GRAPH35/KEY/alpha type}},
905 content={\pgfkeysvalueof{/GRAPH35/KEY/alpha content}},
906 style={\tiny},
907 }
908 \end{scope}
909 \setgraphcolor{\graph@color}%
910 }}
911 % \end{macrocode}
912 %
913 % Define |EXE| key \key{EXE}.
914 % \begin{macrocode}
915 \newcommand{\graph@tikzgenerickeyexe}[2][]{{
916 \pgfkeys{/GRAPH35/KEY, #1}%
917 \setgraphcolor{\graph@tempcolor}%
918 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
919 \draw[very thick, color=graph35EXEBORDER, fill=graph35EXE] plot [smooth cycle] coordinates {
920 (-.43, .25)
921 (.43, .25)
922 (.43, -.25)
923 (-.43, -.25)
924 };
925 \node[minimum width=1.03cm, minimum height=.59cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
926 \ifdefstring{\graph@type}{text}{
927 \node[color=graph35KEYTEXT] {\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
928 }{
929 \node[color=graph35KEYTEXT] {$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
930 }
931
932 \graph@tikzshiftalpha{,
933 show=\boolvalue{show@shift},
934 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
935 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
936 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
937 color=graph35SHIFTTEXT,
938 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
939 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
940 style={\tiny},
941 }
942 \end{scope}
943 \setgraphcolor{\graph@color}%
944 }}
945 % \end{macrocode}
946 %
947 % Define |SHIFT| key \key{SHIFT}.
948 % \begin{macrocode}
949 \newcommand{\graph@tikzgenerickeyshift}[2][]{{
950 \pgfkeys{/GRAPH35/KEY, #1}%
951 \setgraphcolor{\graph@tempcolor}%
952 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
953 \draw[very thick, color=graph35SHIFTBORDER, fill=graph35SHIFT] plot [smooth cycle] coordinates {
954 (-.34, .19)
955 (.34, .19)
956 (.34, -.19)
957 (-.34, -.19)
958 };
959 \node[minimum width=0.8cm, minimum height=.45cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
960 \ifdefstring{\graph@type}{text}{
961 \node[color=graph35KEYTEXT] {\scriptsize\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
962 }{
963 \node[color=graph35KEYTEXT] {\scriptsize$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
964 }
965 \end{scope}
966 \setgraphcolor{\graph@color}%
967 }}
968 % \end{macrocode}
969 %
970 % Define |REPLAY| key \key{REPLAY}.
971 % \begin{macrocode}
972 \newcommand{\graph@tikzgenerickeyreplay}[2][]{{
973 \pgfkeys{/GRAPH35/KEY, #1}%
974 \setgraphcolor{\graph@tempcolor}%
975 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
976 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] (0, 0) ellipse (.95 and .80);
977 \node[minimum width=0pt, minimum height=0pt, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}left) at (-.64, 0) {};
978 \node[minimum width=0pt, minimum height=0pt, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}right) at (.64, 0) {};
979 \node[minimum width=0pt, minimum height=0pt, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}up) at (0, .48) {};
980 \node[minimum width=0pt, minimum height=0pt, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}down) at (0, -.48) {};
981 \node[minimum width=1.9cm, minimum height=1.6cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
982 \ifdefstring{\graph@type}{text}{
983 \node[color=graph35KEYTEXT] {\tiny\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
984 }{
985 \node[color=graph35KEYTEXT] {\tiny$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
986 }
987 \begin{scope}[rounded corners=1pt, color=graph35KEYTEXT]
988 \fill (.58, .09) -- (.58, -.08) -- (.78, 0) -- cycle;
989 \fill (-.58, .09) -- (-.58, -.08) -- (-.78, 0) -- cycle;
990 \fill (-.08, .41) -- (.09, .41) -- (0, .62) -- cycle;
991 \fill (-.08, -.41) -- (.09, -.41) -- (0, -.62) -- cycle;
992 \end{scope}
993 \end{scope}
994 \setgraphcolor{\graph@color}%
995 }}
996 % \end{macrocode}
997 %
998 % Define |ALPHA| key \key{ALPHA}.
999 % \begin{macrocode}
1000 \newcommand{\graph@tikzgenerickeyalpha}[2][]{{
1001 \pgfkeys{/GRAPH35/KEY, #1}%
1002 \setgraphcolor{\graph@tempcolor}%
1003 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1004 \draw[very thick, color=graph35ALPHABORDER, fill=graph35ALPHA] plot [smooth cycle] coordinates {
1005 (-.34, .19)
1006 (.34, .19)
1007 (.34, -.19)
1008 (-.34, -.19)
1009 };
1010 \node[minimum width=0.8cm, minimum height=.45cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
1011 \ifdefstring{\graph@type}{text}{
1012 \node[color=graph35KEYTEXT] {\scriptsize\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1013 }{
1014 \node[color=graph35KEYTEXT] {\scriptsize$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1015 }
1016
1017 \graph@tikzshiftalpha{,
1018 show=\boolvalue{show@shift},
1019 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1020 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
1021 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1022 color=graph35SHIFTTEXT,
1023 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1024 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1025 style={\tiny},
1026 }
1027 \end{scope}
1028 \setgraphcolor{\graph@color}%
1029 }}
1030 % \end{macrocode}
1031 %
1032 % Define |menu| key \key{MENU}.
1033 % \begin{macrocode}
1034 \newcommand{\graph@tikzgenerickeymenu}[2][]{{
1035 \pgfkeys{/GRAPH35/KEY, #1}%
1036 \setgraphcolor{\graph@tempcolor}%
1037 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1038 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1039 (-.34, .19)
1040 (.34, .19)
1041 (.34, -.19)
1042 (-.34, -.19)
1043 };
1044 \node[minimum width=.8cm, minimum height=.45cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
1045 \ifdefstring{\graph@type}{text}{
1046 \node[color=graph35KEYTEXT] {\scriptsize\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1047 }{
1048 \node[color=graph35KEYTEXT] {\scriptsize$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1049 }
1050
1051 \graph@tikzshiftalpha{,
1052 show=\boolvalue{show@shift},
1053 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1054 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
1055 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1056 color=graph35SHIFTTEXT,
1057 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1058 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1059 style={\tiny},
1060 }
1061 \graph@tikzshiftalpha{,
1062 show=\boolvalue{show@alpha},
1063 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}alpha},
1064 position=\pgfkeysvalueof{/GRAPH35/KEY/alpha position},
1065 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1066 color=graph35ALPHATEXT,
1067 type={\pgfkeysvalueof{/GRAPH35/KEY/alpha type}},
1068 content={\pgfkeysvalueof{/GRAPH35/KEY/alpha content}},
1069 style={\tiny},
1070 }
1071 \end{scope}
1072 \setgraphcolor{\graph@color}%
1073 }}
1074 % \end{macrocode}
1075 %
1076 % Define miscallaenous keys (e.g. \key{log}).
1077 % \begin{macrocode}
1078 \newcommand{\graph@tikzgenerickeymisc}[2][]{{
1079 \pgfkeys{/GRAPH35/KEY, #1}%
1080 \setgraphcolor{\graph@tempcolor}%
1081 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1082 \draw[very thick, color=graph35NUMBERBORDER, fill=graph35NUMBER] plot [smooth cycle] coordinates {
1083 (-.34, .19)
1084 (.34, .19)
1085 (.34, -.19)
1086 (-.34, -.19)
1087 };
1088 \node[minimum width=0.8cm, minimum height=.45cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (0, 0) {};
1089 \ifdefstring{\graph@type}{text}{
1090 \node[color=graph35KEYTEXT] {\scriptsize\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1091 }{
1092 \node[color=graph35KEYTEXT] {\scriptsize$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1093 }
1094
1095 \graph@tikzshiftalpha{,
1096 show=\boolvalue{show@shift},
1097 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1098 position=\pgfkeysvalueof{/GRAPH35/KEY/shift position},
1099 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1100 color=graph35SHIFTTEXT,
1101 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1102 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1103 style={\tiny},
1104 }
1105 \graph@tikzshiftalpha{,
1106 show=\boolvalue{show@alpha},
1107 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}alpha},
1108 position=\pgfkeysvalueof{/GRAPH35/KEY/alpha position},
1109 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1110 color=graph35ALPHATEXT,
1111 type={\pgfkeysvalueof{/GRAPH35/KEY/alpha type}},
1112 content={\pgfkeysvalueof{/GRAPH35/KEY/alpha content}},
1113 style={\tiny},
1114 }
1115 \end{scope}
1116 \setgraphcolor{\graph@color}%
1117 }}
1118 % \end{macrocode}
1119 %
1120 % Define |F1| key \key{F1}.
1121 % \begin{macrocode}
1122 \newcommand{\graph@tikzgenerickeyfone}[2][]{{%
1123 \pgfkeys{/GRAPH35/KEY, #1}%
1124 \setgraphcolor{\graph@tempcolor}%
1125 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1126 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1127 (-.3, .25)
1128 (.2, .20)
1129 (.25, -.18)
1130 (.1, -.45)
1131 (-.20, -.15)
1132 };
1133 \node[minimum width=.56cm, minimum height=.70cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (-.03, -.09) {};
1134 \ifdefstring{\graph@type}{text}{
1135 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1136 }{
1137 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1138 }
1139
1140 \graph@tikzshiftalpha{,
1141 show=\boolvalue{show@shift},
1142 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1143 position=center,
1144 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1145 color=graph35SHIFTTEXT,
1146 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1147 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1148 style={\tiny},
1149 }
1150 \end{scope}
1151 \setgraphcolor{\graph@color}%
1152 }}
1153 % \end{macrocode}
1154 %
1155 % Define |F2| key \key{F2}.
1156 % \begin{macrocode}
1157 \newcommand{\graph@tikzgenerickeyftwo}[2][]{{%
1158 \pgfkeys{/GRAPH35/KEY, #1}%
1159 \setgraphcolor{\graph@tempcolor}%
1160 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1161 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1162 (-.25, .25)
1163 (.2, .25)
1164 (.25, -.20)
1165 (.05, -.46)
1166 (-.20, -.20)
1167 };
1168 \node[minimum width=.52cm, minimum height=.74cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (-.005, -.08) {};
1169 \ifdefstring{\graph@type}{text}{
1170 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1171 }{
1172 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1173 }
1174
1175 \graph@tikzshiftalpha{,
1176 show=\boolvalue{show@shift},
1177 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1178 position=center,
1179 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1180 color=graph35SHIFTTEXT,
1181 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1182 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1183 style={\tiny},
1184 }
1185 \end{scope}
1186 \setgraphcolor{\graph@color}%
1187 }}
1188 % \end{macrocode}
1189 %
1190 % Define |F3| key \key{F3}.
1191 % \begin{macrocode}
1192 \newcommand{\graph@tikzgenerickeyfthree}[2][]{{%
1193 \pgfkeys{/GRAPH35/KEY, #1}%
1194 \setgraphcolor{\graph@tempcolor}%
1195 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1196 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1197 (.15, .25)
1198 (-.25, .25)
1199 (-.25, -.20)
1200 (.03, -.47)
1201 (.20, -.20)
1202 };
1203 \node[minimum width=.48cm, minimum height=.75cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (-.04, -.085) {};
1204 \ifdefstring{\graph@type}{text}{
1205 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1206 }{
1207 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1208 }
1209
1210 \graph@tikzshiftalpha{,
1211 show=\boolvalue{show@shift},
1212 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1213 position=center,
1214 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1215 color=graph35SHIFTTEXT,
1216 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1217 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1218 style={\tiny},
1219 }
1220 \end{scope}
1221 \setgraphcolor{\graph@color}%
1222 }}
1223 % \end{macrocode}
1224 %
1225 % Define |F4| key \key{F4}.
1226 % \begin{macrocode}
1227 \newcommand{\graph@tikzgenerickeyffour}[2][]{{%
1228 \pgfkeys{/GRAPH35/KEY, #1}%
1229 \setgraphcolor{\graph@tempcolor}%
1230 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1231 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1232 (-.15, .25)
1233 (.25, .25)
1234 (.25, -.20)
1235 (-.03, -.47)
1236 (-.20, -.20)
1237 };
1238 \node[minimum width=.48cm, minimum height=.75cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (.04, -.085) {};
1239 \ifdefstring{\graph@type}{text}{
1240 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1241 }{
1242 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1243 }
1244
1245 \graph@tikzshiftalpha{,
1246 show=\boolvalue{show@shift},
1247 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1248 position=center,
1249 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1250 color=graph35SHIFTTEXT,
1251 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1252 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1253 style={\tiny},
1254 }
1255 \end{scope}
1256 \setgraphcolor{\graph@color}%
1257 }}
1258 % \end{macrocode}
1259 %
1260 % Define |F5| key \key{F5}.
1261 % \begin{macrocode}
1262 \newcommand{\graph@tikzgenerickeyffive}[2][]{{%
1263 \pgfkeys{/GRAPH35/KEY, #1}%
1264 \setgraphcolor{\graph@tempcolor}%
1265 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1266 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1267 (.25, .25)
1268 (-.2, .25)
1269 (-.25, -.20)
1270 (-.05, -.46)
1271 (.20, -.20)
1272 };
1273 \node[minimum width=.52cm, minimum height=.74cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (.005, -.08) {};
1274 \ifdefstring{\graph@type}{text}{
1275 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1276 }{
1277 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1278 }
1279
1280 \graph@tikzshiftalpha{,
1281 show=\boolvalue{show@shift},
1282 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1283 position=center,
1284 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1285 color=graph35SHIFTTEXT,
1286 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1287 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1288 style={\tiny},
1289 }
1290 \end{scope}
1291 \setgraphcolor{\graph@color}%
1292 }}
1293 % \end{macrocode}
1294 %
1295 % Define |F6| key \key{F6}.
1296 % \begin{macrocode}
1297 \newcommand{\graph@tikzgenerickeyfsix}[2][]{{%
1298 \pgfkeys{/GRAPH35/KEY, #1}%
1299 \setgraphcolor{\graph@tempcolor}%
1300 \begin{scope}[shift={#2}, scale=\pgfkeysvalueof{/GRAPH35/KEY/scale}, transform shape, every node/.style={transform shape}]
1301 \draw[very thick, color=graph35ACONBORDER, fill=graph35ACON] plot [smooth cycle] coordinates {
1302 (.3, .25)
1303 (-.2, .20)
1304 (-.25, -.18)
1305 (-.1, -.45)
1306 (.20, -.15)
1307 };
1308 \node[minimum width=.56cm, minimum height=.70cm, inner sep=0pt] (\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}) at (.03, -.09) {};
1309 \ifdefstring{\graph@type}{text}{
1310 \node[color=graph35KEYTEXT] {\small\bfseries\sffamily{}\pgfkeysvalueof{/GRAPH35/KEY/content}};
1311 }{
1312 \node[color=graph35KEYTEXT] {\small$\boldsymbol{\pgfkeysvalueof{/GRAPH35/KEY/content}}$};
1313 }
1314
1315 \graph@tikzshiftalpha{,
1316 show=\boolvalue{show@shift},
1317 name={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}shift},
1318 position=center,
1319 node={\pgfkeysvalueof{/GRAPH35/KEY/prefix}\pgfkeysvalueof{/GRAPH35/KEY/name}\pgfkeysvalueof{/GRAPH35/KEY/suffix}},
1320 color=graph35SHIFTTEXT,
1321 type={\pgfkeysvalueof{/GRAPH35/KEY/shift type}},
1322 content={\pgfkeysvalueof{/GRAPH35/KEY/shift content}},
1323 style={\tiny},
1324 }
1325 \end{scope}
1326 \setgraphcolor{\graph@color}%
1327 }}
1328 % \end{macrocode}
1329 %
1330 % Parse |\calculator| and |\tikzcalculator| options.
1331 %
1332 % \begin{macrocode}
1333 \pgfkeys{
1334 /GRAPH35/CALCULATOR/.is family,
1335 /GRAPH35/CALCULATOR,
1336 scale/.value required,
1337 scale/.code={\pgfkeyssetvalue{/GRAPH35/CALCULATOR/scale}{#1}},
1338 scale=1,
1339 color/.is choice,
1340 color/real/.code={\def\graph@tempcolor{real}},
1341 color/blackandwhite/.code={\def\graph@tempcolor{blackandwhite}},
1342 color/default/.code={\def\graph@tempcolor{default}},
1343 color/.value required,
1344 color={default},
1345 }
1346 % \end{macrocode}
1347 %
1348 % \begin{macro}{\calculator}
1349 % Define |\calculator|, which is a wrapper to |\tikzcalculator|.
1350 % \begin{macrocode}
1351 \newcommand{\calculator}[2][]{{%
1352 \pgfkeys{/GRAPH35/CALCULATOR, #1}%
1353 \setgraphcolor{\graph@tempcolor}%
1354 \begin{tikzpicture}[scale=\pgfkeysvalueof{/GRAPH35/CALCULATOR/scale}, transform shape]%
1355 \tikzcalculator{#2}
1356 \end{tikzpicture}%
1357 \setgraphcolor{\graph@color}%
1358 }}
1359 % \end{macrocode}
1360 % \end{macro}
1361 %
1362 % \begin{macro}{\tikzcalculator}
1363 % Define |\tikzcalculator|, to draw calculators (see annex \ref{sec:calculators}). This is a wrapper to the |\tikzcalculator@*| macros, defined later.
1364 % \begin{macrocode}
1365 \newcommand{\tikzcalculator}[1]{%
1366 \ifcsdef{tikzcalculator@#1}{%
1367 \csuse{tikzcalculator@#1}%
1368 }{%
1369 \ClassError{graph35}{Unknown calculator '#1'}{Look for the list of available calculators in the package documentation.}%
1370 }%
1371 }
1372 % \end{macrocode}
1373 % \end{macro}
1374 %
1375 % Define macro to draw the |Graph35+E| calculator.
1376 % \begin{macrocode}
1377 \csdef{tikzcalculator@graph35+E}{%
1378 %\node{\includegraphics[scale=.59]{graph35-original}};
1379 \draw[color=graph35CASEBORDER, fill=graph35CASE, line width=2pt] plot [smooth cycle] coordinates {
1380 (-3.2, 0)
1381 (-3.35, 5.5)
1382 (-3.2, 7.0)
1383 (-2.5, 7.3)
1384 (0, 7.4)
1385 (2.5, 7.3)
1386 (3.2, 7.0)
1387 (3.35, 5.5)
1388 (3.2, 0)
1389 (3.1, -5)
1390 (3.0, -6.6)
1391 (2.3, -7.3)
1392 (0, -7.4)
1393 (-2.3, -7.3)
1394 (-3.0, -6.6)
1395 (-3.1, -5)
1396 };
1397 \node[minimum width=6.7cm, minimum height=14.8cm, inner sep=0pt] (case) at (0, 0) {};
1398 \draw[draw=graph35SCREEN, line width=1.5pt, fill=graph35SCREENBG, rounded corners=5](-2.64, 3) rectangle (2.58, 6.035);
1399 \node[minimum width=5.22cm, minimum height=3.035cm, inner sep=0pt] (screen) at (-.003, 4.5175) {};
1400 \begin{scope}[shift={(-2.5, 5.8)}, scale=.039]
1401 \foreach \i in {0, 3, ..., 33, 94, 97, ..., 103, 121, 124, ..., 127} {
1402 \foreach \j in {1, 4, 7} {
1403 \fill (\i, {-\j}) rectangle ++(1, 1);
1404 }
1405 }
1406 \foreach \i in {2, 5, ..., 32, 96, 99, ..., 105, 123, 126, ..., 126} {
1407 \foreach \j in {2, 5} {
1408 \fill (\i, {-\j}) rectangle ++(1, 1);
1409 }
1410 }
1411 \foreach \i in {1, 4, ..., 31, 95, 98, ..., 104, 122, 125, ..., 125} {
1412 \foreach \j in {3, 6} {
1413 \fill (\i, {-\j}) rectangle ++(1, 1);
1414 }
1415 }
1416 \tikzbwpixelart{(38, 0)}{%
1417 1000100111000111001000100000010001011111010001010001
1418 1101101000100010001000100000011011010000010001010001
1419 1010101000100010001100100000010101010000011001010001
1420 1010101111100010001010100000010101011110010101010001
1421 1000101000100010001001100000010001010000010011010001
1422 1000101000100010001000100000010001010000010001010001
1423 1000101000100111001000100000010001011111010001001110
1424 }
1425 \tikzbattery{high}{(107, 0)}
1426 % Row 1
1427 \tikzmenu{RUNMAT}{1}{(0, -8)}
1428 \tikzmenu{STAT}{2}{(30, -8)}
1429 \tikzmenu{GRAPH}{3}{(60, -8)}
1430 \tikzmenu{DYNA}{4}{(90, -8)}
1431 % Row 2
1432 \tikzmenu{TABLE}{5}{(0, -27)}
1433 \tikzmenu{RECUR}{6}{(30, -27)}
1434 \tikzmenu{CONICS}{7}{(60, -27)}
1435 \tikzmenu{EQUA}{8}{(90, -27)}
1436 % Row 3
1437 \tikzmenu{PRGM}{9}{(0, -46)}
1438 \tikzmenu{TVM}{A}{(30, -46)}
1439 \tikzmenu{ECON2}{B}{(60, -46)}
1440 \tikzmenu{LINK}{C}{(90, -46)}
1441 % Right arrow
1442 \tikzbwpixelart{(121, -58)}{%
1443 00100
1444 00100
1445 00100
1446 00100
1447 10101
1448 01110
1449 00100
1450 }
1451 \end{scope}
1452
1453 \tikzkey[shift, alpha]{REPLAY}{(1.97, -.055)}
1454
1455 \tikzkey[shift, alpha]{SHIFT}{(-2.39, .23)}
1456 \tikzkey[shift, alpha]{OPTN}{(-1.43, .23)}
1457 \tikzkey[shift, alpha]{VARS}{(-.47, .23)}
1458 \tikzkey[shift, alpha]{MENU}{(.47, .23)}
1459 \tikzkey[shift, alpha]{ALPHA}{(-2.39, -.61)}
1460 \tikzkey[shift, alpha]{square}{(-1.43, -.61)}
1461 \tikzkey[shift, alpha]{power}{(-.47, -.61)}
1462 \tikzkey[shift, alpha]{EXIT}{(.47, -.61)}
1463 \tikzkey[shift, alpha]{XthetaT}{(-2.39, -1.43)}
1464 \tikzkey[shift, alpha]{log}{(-1.43, -1.43)}
1465 \tikzkey[shift, alpha]{ln}{(-.47, -1.43)}
1466 \tikzkey[shift, alpha]{sin}{(.47, -1.43)}
1467 \tikzkey[shift, alpha]{cos}{(1.43, -1.43)}
1468 \tikzkey[shift, alpha]{tan}{(2.39, -1.43)}
1469 \tikzkey[shift, alpha]{fraction}{(-2.39, -2.25)}
1470 \tikzkey[shift, alpha]{FD}{(-1.43, -2.25)}
1471 \tikzkey[shift, alpha]{openparen}{(-.47, -2.25)}
1472 \tikzkey[shift, alpha]{closeparen}{(.47, -2.25)}
1473 \tikzkey[shift, alpha]{comma}{(1.43, -2.25)}
1474 \tikzkey[shift, alpha]{rightarrow}{(2.39, -2.25)}
1475
1476 \tikzkey[shift, alpha]{DEL}{(1.16, -3.25)}
1477 \tikzkey[shift, alpha]{ACON}{(2.32, -3.25)}
1478 \tikzkey[shift, alpha]{times}{(1.16, -4.22)}
1479 \tikzkey[shift, alpha]{divide}{(2.32, -4.22)}
1480 \tikzkey[shift, alpha]{plus}{(1.16, -5.19)}
1481 \tikzkey[shift, alpha]{minus}{(2.32, -5.19)}
1482 \tikzkey[shift, alpha]{dot}{(-1.15, -6.159)}
1483 \tikzkey[shift, alpha]{opposite}{(1.16, -6.159)}
1484 \tikzkey[shift, alpha]{zero}{(-2.294, -6.159)}
1485 \tikzkey[shift, alpha]{1}{(-2.294, -5.19)}
1486 \tikzkey[shift, alpha]{2}{(-1.15, -5.19)}
1487 \tikzkey[shift, alpha]{3}{(.01, -5.19)}
1488 \tikzkey[shift, alpha]{4}{(-2.294, -4.22)}
1489 \tikzkey[shift, alpha]{5}{(-1.15, -4.22)}
1490 \tikzkey[shift, alpha]{6}{(.01, -4.22)}
1491 \tikzkey[shift, alpha]{7}{(-2.294, -3.25)}
1492 \tikzkey[shift, alpha]{8}{(-1.15, -3.25)}
1493 \tikzkey[shift, alpha]{9}{(.01, -3.25)}
1494 \tikzkey[shift, alpha]{10}{(.01, -6.159)}
1495 \tikzkey[shift, alpha]{EXE}{(2.32, -6.159)}
1496
1497 \tikzkey[shift, alpha]{F1}{(-2.37, 1.5)}
1498 \tikzkey[shift, alpha]{F2}{(-1.43, 1.42)}
1499 \tikzkey[shift, alpha]{F3}{(-.45, 1.38)}
1500 \tikzkey[shift, alpha]{F4}{(.45, 1.38)}
1501 \tikzkey[shift, alpha]{F5}{(1.43, 1.42)}
1502 \tikzkey[shift, alpha]{F6}{(2.37, 1.5)}
1503 }
1504 % \end{macrocode}
1505 %
1506 % \addcontentsline{toc}{section}{Liste des figures}
1507 % \listoffigures
1508 %
1509 % \changes{v0.1.0}{2018/03/18}{First published version.}
1510 % \addcontentsline{toc}{section}{Historique des changements}
1511 % \PrintChanges
1512 %
1513 % \StopEventually{%
1514 % \addcontentsline{toc}{section}{Index}
1515 % \PrintIndex
1516 % }
1517 % \Finale
1518 \endinput