Debian Codegraph @

texmf-dist/doc/latex/calculatoritems/calculatoritems-doc.tex

raw
1 % !TeX TXS-program:compile = txs:///arara
2 % arara: pdflatex: {shell: no, synctex: no, interaction: batchmode}
3 % arara: pdflatex: {shell: no, synctex: no, interaction: batchmode}
4
5 \documentclass[11pt,a4paper]{ltxdoc}
6 \usepackage{bera}
7 \usepackage{inconsolata}
8 \usepackage[T1]{fontenc}
9 \usepackage[utf8]{inputenc}
10 \usepackage[scale=0.875]{cabin}
11 \usepackage{calculatoritems}
12 \usepackage{hyperref}
13 \usepackage{fancyvrb}
14 \usepackage{fancyhdr}
15 \usepackage{tabularray}
16 \usepackage{fontawesome5}
17 \fancyhf{}
18 \renewcommand{\headrulewidth}{0pt}
19 \lfoot{\sffamily\small [calculatoritems]}
20 \cfoot{\sffamily\small - \thepage{} -}
21 \rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}}
22 \usepackage{hologo}
23 \providecommand\tikzlogo{Ti\textit{k}Z}
24 \providecommand\TeXLive{\TeX{}Live\xspace}
25 \let\TikZ\tikzlogo
26
27 \urlstyle{same}
28 \hypersetup{pdfborder=0 0 0}
29 \usepackage[margin=2cm]{geometry}
30 \setlength{\parindent}{0pt}
31 \def\TPversion{0.1.4}
32 \def\TPdate{12/08/2025}
33 \usepackage{enumitem}
34 \usepackage{tcolorbox}
35 \usepackage{pgffor}
36 \tcbuselibrary{breakable,skins,hooks,listingsutf8}
37
38 \lstdefinestyle{packagestyle}
39 {
40 language=[LaTeX]TeX,%
41 columns=fullflexible,%
42 extendedchars=true,%
43 basicstyle=\small\ttfamily,%
44 keywordstyle={\color{black}},%
45 classoffset=0,%
46 keywords={\includegraphics},%
47 alsoletter={-},%
48 keywordstyle={\color{blue}},%
49 classoffset=1,%
50 alsoletter={-},%
51 morekeywords={},%
52 keywordstyle={\color{violet}},%
53 classoffset=2,%
54 alsoletter={-},%
55 morekeywords={calculatoritems,\CalcItemMenu,\nwkstri,\tidots,\casiodots,\CalcKey,\CalcKeyNwks,\fontkeyNWKS,\fontkeyCASIOcw,\fontkeyCASIOfx,\CalcKeyCasioCW,\CalcKeyCasioFX,\CalcKeyTI,\CalcKeyTIfr,\fontkeyTIfr,\fontkeyTI,\inckeycalc},%
56 keywordstyle={\color{green!50!black}},%
57 classoffset=3,%
58 morekeywords={xelua,noamssymb,model,type,fsep,font,len,bg,rightsymb,colorfont},%
59 keywordstyle={\color{orange}},%
60 inputencoding=utf8/latin1
61 }
62
63 \lstset{
64 % language=[LaTeX]TeX,%
65 basicstyle=\small\ttfamily,%
66 keywordstyle={},%
67 % classoffset=0,%
68 % keywords={},%
69 % alsoletter={-},%
70 % keywordstyle={\color{blue}},%
71 % classoffset=1,%
72 % alsoletter={-},%
73 % morekeywords={},%
74 % keywordstyle={\color{violet}},%
75 % classoffset=2,%
76 % alsoletter={-},%
77 % morekeywords={calculatoritems,\CalcItemMenu,nwkstri,tidots,casiodots},%
78 % keywordstyle={\color{green!50!black}},%
79 % classoffset=3,%
80 % morekeywords={xelua,noamssymb,model,type,fsep,font,len,bg,rightsymb},%
81 % keywordstyle={\color{orange}}
82 }
83
84 \newtcblisting{DemoCode}[1]{%
85 enhanced,width=\linewidth,%
86 bicolor,size=title,%
87 colback=cyan!10!white,%
88 colbacklower=cyan!5!white,%
89 colframe=cyan!75!black,%
90 listing options={%
91 breaklines=true,%
92 breakatwhitespace=true,%
93 style=packagestyle,%
94 basicstyle=\footnotesize\ttfamily,%
95 tabsize=4,%
96 commentstyle={\itshape\color{gray}},
97 keywordstyle={\color{blue}},%
98 classoffset=0,%
99 keywords={\newfontfamily,\includegraphics},%
100 alsoletter={-},%
101 keywordstyle={\color{blue}},%
102 classoffset=1,%
103 alsoletter={-},%
104 morekeywords={\CalcItemMenu,\nwkstri,\tidots,\casiodots,\CalcKey,\CalcKeyNwks,\fontkeyNWKS,\fontkeyCASIOcw,\fontkeyCASIOfx,\CalcKeyCasioCW,\CalcKeyCasioFX,\CalcKeyTI,\CalcKeyTIfr,\fontkeyTIfr,\fontkeyTI,\inckeycalc},%
105 keywordstyle={\color{violet}},%
106 classoffset=2,%
107 alsoletter={-},%
108 morekeywords={calculatoritems,\CalcItemMenu,\nwkstri,\tidots,\casiodots,\CalcKey,\CalcKeyNwks},%
109 keywordstyle={\color{green!50!black}},%
110 classoffset=3,%
111 morekeywords={xelua,noamssymb,model,type,fsep,font,len,bg,rightsymb,colorfont},%
112 keywordstyle={\color{orange}}
113 },%
114 #1
115 }
116
117 \newtcbinputlisting\DemoCodeFile[1]{%
118 enhanced,width=\linewidth,%
119 bicolor,size=title,%
120 colback=lightgray!10!white,%
121 colbacklower=lightgray!5!white,%
122 colframe=lightgray!75!black,%
123 listing options={%
124 breaklines=true,%
125 breakatwhitespace=true,%
126 style=tcblatex,
127 extendedchars=true,%
128 basicstyle=\tiny\ttfamily,%
129 keywordstyle={},%
130 tabsize=2,%
131 commentstyle={\itshape\color{gray}},%
132 inputencoding=utf8/latin1
133 },%
134 breakable,
135 listing only,%
136 listing file={#1}
137 }
138
139 \NewDocumentCommand\ShowCode{ m }{%
140 \colorbox{lightgray!50}{\lstinline!#1!}%
141 }
142
143 \begin{document}
144
145 \thispagestyle{empty}
146
147 \begin{center}
148 \begin{minipage}{0.88\linewidth}
149 \begin{tcolorbox}[colframe=yellow,colback=yellow!15]
150 \begin{center}
151 \renewcommand{\arraystretch}{1.25}%
152 \begin{tabular}{c}
153 {\Huge \texttt{calculatoritems}}\\
154 \\
155 {\LARGE Insert items (or simple keys)} \\
156 {\LARGE of classic calculators.} \\
157 \\
158 {\small \texttt{Version \TPversion{} -- \TPdate}}
159 \end{tabular}
160 \end{center}
161 \end{tcolorbox}
162 \end{minipage}
163 \end{center}
164
165 \begin{center}
166 \begin{tabular}{c}
167 \texttt{Cédric Pierquet}\\
168 {\ttfamily cpierquet -- at -- outlook . fr}\\
169 \texttt{\url{https://github.com/cpierquet/latex-packages/tree/main/calculatoritems}} \\
170 \end{tabular}
171 \end{center}
172
173 \hrule
174
175 \vfill
176
177 \begin{tcblisting}{colframe=lightgray,colback=lightgray!5,listing only}
178 Classic calculators items or menus:
179
180 35+E:
181 \CalcItemMenu[model=35+,font=\fontCASIOA]{GRAPH}
182
183 90+E:
184 \CalcItemMenu[model=90+,type=bmenu,font=\fontCASIOB]{MAT}
185
186 MATH+:
187 \CalcItemMenu[model=math+,font=\fontCASIOB,rightsymb=>]{arithmetic}
188
189 NWK :
190 \CalcItemMenu[model=nwks,type=bmenu,rightsymb=\nwkstri,len=12,font\fontNWKS]{X predict}
191
192 TI:
193 \CalcItemMenu[model=ti,type=itemsel,font=\small\fontTI]{6§{fmin(}}
194
195 HP Prime:
196 \CalcItemMenu[model=hp,type=itemsel,font=\small\fontHP,rightsymb=>]{4§Quadratic Explorer}
197 \end{tcblisting}
198
199 \begin{tcolorbox}[colframe=lightgray,colback=lightgray!5]
200 Classic calulators items or menus :
201
202 \begin{itemize}
203 \item \texttt{35+E~}: \CalcItemMenu[model=35+,font=\fontCASIOA]{GRAPH}
204 \item \texttt{90+E~}: \CalcItemMenu[model=90+,type=bmenu,font=\fontCASIOB,bg=lightgray!5]{MAT}
205 \item \texttt{MATH+}: \CalcItemMenu[model=math+,font=\fontCASIOB,rightsymb=>]{arithmetic}
206 \item \texttt{NWKS~}: \CalcItemMenu[model=nwks,type=bmenu,rightsymb=\nwkstri,len=12, font=\fontNWKS]{X predict}
207 \item \texttt{TI~~~}: \CalcItemMenu[model=ti,type=itemsel,font=\fontTI]{6§{fmin(}}
208 \item \texttt{HP~~~}: \CalcItemMenu[model=hp,type=itemsel,font=\fontHP,rightsymb=>]{4§Quadratic Explorer}
209 \end{itemize}
210 \end{tcolorbox}
211
212 \vfill~
213
214 \hrule
215
216 \vspace*{5mm}
217
218 \pagebreak
219
220 \phantomsection
221
222 \hypertarget{matoc}{}
223
224 \tableofcontents
225
226 \vspace*{5mm}
227
228 \vfill
229
230 \section{History \& Future}
231
232 \texttt{0.1.4: bugfix with circledtext package}
233
234 \texttt{0.1.3: new styles for math+}
235
236 \texttt{0.1.2: New version with resizebox (better render and calc)}
237
238 \texttt{0.1.1: Simple keys command + macros for "fontkeys" (with external files)}
239
240 \texttt{0.1.0: Initial version}
241
242 \vspace*{5mm}
243
244 %\hrule
245
246 \pagebreak
247
248 \section{Introduction}
249
250 \subsection{Loading, useful packages}
251
252 In order to load \ShowCode{calculatoritems}, simply use:
253
254 \begin{DemoCode}{listing only}
255 \usepackage{calculatoritems}
256 \end{DemoCode}
257
258 Loaded packages are \ShowCode{xstring}, \ShowCode{settobox}, \ShowCode{ifthen}, \ShowCode{calc}, \ShowCode{simplekv}, \ShowCode{tcolorbox} and \ShowCode{tikz}.
259
260 Loaded libraries are \ShowCode{calc} and \ShowCode{skins}.
261
262 \smallskip
263
264 If \ShowCode{ammsymb} doesn't need to be loaded (useful for int. macro), just add \ShowCode{[noamssymb]} to the loading.
265
266 \begin{DemoCode}{listing only}
267 %w/o amssymb loading
268 \usepackage[noamssymb]{calculatoritems}
269 \end{DemoCode}
270
271 \subsection{Fonts}
272
273 The package define shortcuts for fonts, depending on the engine, an option \ShowCode{[xelua]} can be used.
274
275 \begin{DemoCode}{listing only}
276 %normal loading, for classic engines (pdflatex/latex)
277 \usepackage{calculatoritems}
278 \end{DemoCode}
279
280 \begin{DemoCode}{listing only}
281 %special loading, for recent engines (xelatex/lualatex) with font config
282 \usepackage[xelua]{calculatoritems}
283 \end{DemoCode}
284
285 Available fonts are given by followings macros (best fonts are \texttt{teletype}).
286
287 \begin{DemoCode}{listing only}
288 %normal loading, for classic engines (pdflatex/latex)
289 \newcommand\fontNWKS\fontencoding{T1}\fontfamily{SourceCodePro-TLF}\selectfont} %nwks
290 \newcommand\fontCASIOA{%
291 \fontencoding{T1}\fontfamily{AnonymousPro}\fontseries{sb}\selectfont %casio35
292 }
293 \newcommand\fontCASIOB{%
294 \fontencoding{T1}\fontfamily{AlegreyaSans-TLF}\fontseries{sb}\selectfont %casio90 & math+
295 }
296 \newcommand\fontTI{%
297 \fontencoding{T1}\fontfamily{AnonymousPro}\fontseries{sb}\selectfont %ti
298 }
299 \newcommand\fontHP{%
300 \fontencoding{T1}\fontfamily{AlegreyaSans-TLF}\fontseries{sb}\selectfont %hp
301 }
302 \newcommand\fontKEY{%
303 \fontencoding{T1}\fontfamily{SourceCodePro-TLF}\fontseries{sb}\selectfont %global keys
304 }
305 \end{DemoCode}
306
307 \begin{DemoCode}{listing only}
308 %special loading, for recent engines (xelatex/lualatex) with fontspec
309 \newfontfamily\fontNWKS{SourceCodePro-Medium}[Scale=MatchLowercase] %numworks
310 \newfontfamily\fontCASIOA{AnonymousPro}[Scale=MatchLowercase] %casio35
311 \newfontfamily\fontCASIOB{FreeSans}[Scale=MatchLowercase] %casio90 & math+
312 \newfontfamily\fontTI{AnonymousPro}[Scale=MatchLowercase] %ti
313 \newfontfamily\fontHP{AlegreyaSans}[Scale=MatchLowercase] %hp
314 \newfontfamily\fontKEY{Inconsolatazi4}[Scale=MatchLowercase] %global keys
315 \end{DemoCode}
316
317 \subsection{Special macros}
318
319 Special macros are available, to match with some custom \textit{symbols}.
320
321 \begin{DemoCode}{}
322 \nwkstri \qquad \tidots \qquad \casiodots
323 \end{DemoCode}
324
325 \subsection{With LUA, and external fonts}
326
327 With \ShowCode{[xelua]} option, \ShowCode{listofitems} and \ShowCode{fontspec} are loaded.
328
329 Specific fonts (and macros) are defined with \texttt{*.ttf} files.
330
331 \begin{DemoCode}{listing only}
332 \fontkeyNWKS %numworks (with numworks-keys-regular.ttf and numworks-keys-bold.ttf)
333 \fontkeyCASIOfx %casio fx (with CFX06.ttf)
334 \fontkeyCASIOcw %casio cw (with CASIO ClassWiz CW02.ttf)
335 \fontkeyTIfr %ti83ce-fr (with TI83PremiumCEKeys)
336 \fontkeyTI %ti84ce (with TI84PlusCEKeys)
337 \end{DemoCode}
338
339 The \texttt{ttf} files can be downloaded \href{https://packages.cpierquet.fr/packages/graphiques/calculatoritems/calculatoritems_fonts.zip}{[here]} and must be installed correctly within \texttt{texmf} folder or within readable folder.
340
341 \pagebreak
342
343 \section{Items}
344
345 \subsection{Global usage}
346
347 The purpose of the main macro is to insert, \textit{inline}, a small \texttt{tcbox} to display \textit{items} as for classic calculators.
348
349 Size and aspect are fixed, in order to \textit{match} the original rendering.
350
351 \subsection{The macro}
352
353 The main macro is \ShowCode{\\CalcItemMenu}.
354
355 \begin{DemoCode}{listing only}
356 \CalcItemMenu[keys]{content}
357 \end{DemoCode}
358
359 Available keys are :
360
361 \begin{itemize}[leftmargin=*]
362 \item \ShowCode{model} : specify the model (\texttt{empty} by default) ;
363 \item \ShowCode{type} : type of item, according to the specified model (\texttt{empty} by default) ;
364 \item \ShowCode{fsep} : length for modifying the sep between rules and content (\texttt{1pt} by default) ;
365 \item \ShowCode{font} : font for the content (\texttt{\textbackslash bfseries\textbackslash ttfamily} by default) ;
366 \item \ShowCode{len} : internal key for modifying length of content, for same models/types (\texttt{auto} by default) ;
367 \item \ShowCode{bg} : bg color or the \textit{external background}, if necessary (\texttt{white} by default) ;
368 \item \ShowCode{rightsymb} : right symbol, if necessary (\texttt{empty} by default).
369 \end{itemize}
370
371 \subsection{Samples}
372
373 \subsubsection{Generic model}
374
375 This is the default rendering. Available items are:
376
377 \begin{itemize}[leftmargin=*]
378 \item \ShowCode{[type=\{\}]}: white menu (default value)\hfill\CalcItemMenu{MyItem}
379 \item \ShowCode{[type=black]}: black menu\hfill\CalcItemMenu[type=black]{MyItem}
380 \end{itemize}
381
382 \begin{DemoCode}{listing only}
383 \CalcItemMenu{MyItem}
384 \CalcItemMenu[type=black]{MyItem}
385 \end{DemoCode}
386
387 \subsubsection{CASIO 35+ or fx-9860GIII}
388
389 For this model, the key is \ShowCode{[model=35+]}, and font \ShowCode{[font=\\fontCASIOA]} can be used.
390
391 By default, there's 4 \textit{characters} in the box, so if there's more, a \textit{h-stretch} is applied.
392
393 Available items are:
394
395 \begin{itemize}[leftmargin=*]
396 \item \ShowCode{[type=\{\}]}: white menu (default value) \hfill\CalcItemMenu[model=35+,font=\small\fontCASIOA]{GRPH}
397 \item \ShowCode{[type=bmenu]}: dark menu \hfill\CalcItemMenu[model=35+,type=bmenu,font=\small\fontCASIOA]{GRPH}
398 \item \ShowCode{[type=item]}: item menu \hfill\CalcItemMenu[model=35+,type=item,font=\small\fontCASIOA]{GRPH}
399 \item \ShowCode{[type=itemsel]}: item selected (19 chars) with optional right symbol\hfill\CalcItemMenu[model=35+,type=itemsel,font=\small\fontCASIOA]{TEST LONG ITEM}
400 \end{itemize}
401
402 \begin{DemoCode}{listing only}
403 \CalcItemMenu[model=35+,font=\small\fontCASIOA]{GRPH}
404 \CalcItemMenu[model=35+,type=bmenu,font=\small\fontCASIOA]{GRPH}
405 \CalcItemMenu[model=35+,type=item,font=\small\fontCASIOA]{GRPH}
406 \CalcItemMenu[model=35+,type=itemsel,font=\small\fontCASIOA]{TEST LONG ITEM}
407 \end{DemoCode}
408
409 \subsubsection{CASIO 90+ or fx-CG50}
410
411 For this model, the key is \ShowCode{[model=90+]}, and font \ShowCode{[font=\\fontCASIOB]} can be used.
412
413 By default, there's 5 \textit{characters} in the box, so if there's more, a \textit{h-stretch} is applied.
414
415 Available items are:
416
417 \begin{itemize}[leftmargin=*]
418 \item \ShowCode{[type=\{\}]}: white menu (default value) \hfill\CalcItemMenu[model=90+,font=\small\fontCASIOB]{GRAPH}
419 \item \ShowCode{[type=bmenu]}: black menu \hfill\CalcItemMenu[model=90+,type=bmenu,font=\small\fontCASIOB]{GRAPH}
420 \item \ShowCode{[type=item]}: item menu \hfill\CalcItemMenu[model=90+,type=item,font=\small\fontCASIOB]{GRAPH}
421 \item \ShowCode{[type=itemsel]}: item selected (22 chars) with optional right symbol
422
423 \hfill\CalcItemMenu[model=90+,type=itemsel,font=\small\fontCASIOB]{TEST LONG ITEM}
424 \end{itemize}
425
426 \begin{DemoCode}{listing only}
427 \CalcItemMenu[model=90+,font=\small\fontCASIOB]{GRAPH}
428 \CalcItemMenu[model=90+,type=bmenu,font=\small\fontCASIOB]{GRAPH}
429 \CalcItemMenu[model=90+,type=item,font=\small\fontCASIOB]{GRAPH}
430 \CalcItemMenu[model=90+,type=itemsel,font=\small\fontCASIOB]{TEST LONG ITEM}
431 \end{DemoCode}
432
433 \subsubsection{CASIO MATH+}
434
435 For this model, the key is \ShowCode{[model=math+]} (20 chars), and font \ShowCode{[font=\\fontCASIOB]} can be used.
436
437 Two types are available, one for the \textsf{(s)menu}, the other for the \textsf{tab}, and \texttt{rightsymb} can be used.
438
439 \begin{itemize}[leftmargin=*]
440 \item \ShowCode{[rightsymb=\{\}]} (default)\hfill\CalcItemMenu[model=math+,font=\small\fontCASIOB]{MyItem}
441 \item \ShowCode{[rightsymb=>]}\hfill\CalcItemMenu[model=math+,font=\small\fontCASIOB,rightsymb=>]{MyItem}
442 \item \ShowCode{[rightsymb=\\casiodots]}\hfill\CalcItemMenu[model=math+,font=\small\fontCASIOB,rightsymb=\casiodots]{MyItem}
443 \item \ShowCode{[rightsymb=>,type=smenu]}\hfill\CalcItemMenu[model=math+,type=smenu,font=\small\fontCASIOB,rightsymb=>]{MyItem}
444 \item \ShowCode{[rightsymb=\\casiodots,type=tab]}\hfill\CalcItemMenu[model=math+,type=tab,font=\small\fontCASIOB]{MyItem}
445 \end{itemize}
446
447 \begin{DemoCode}{listing only}
448 \CalcItemMenu[model=math+,font=\small\fontCASIOB]{MyItem}
449 \CalcItemMenu[model=math+,font=\small\fontCASIOB,rightsymb=>]{MyItem}
450 \CalcItemMenu[model=math+,font=\small\fontCASIOB,rightsymb=\casiodots]{MyItem}
451 \CalcItemMenu[model=math+,type=smenu,font=\small\fontCASIOB,rightsymb=>]{MyItem}
452 \CalcItemMenu[model=math+,type=tab,font=\small\fontCASIOB]{MyItem}
453 \end{DemoCode}
454
455 \subsubsection{NUMWORKS}
456
457 For this model, the key is \ShowCode{[model=nwks]}, and font \ShowCode{[font=\\fontNWKS]} can be used.
458
459 Available items are:
460
461 \begin{itemize}[leftmargin=*]
462 \item \ShowCode{[type=\{\}]}: white menu (default)\hfill\CalcItemMenu[model=nwks,font=\small\fontNWKS]{MyItem}
463 \item \ShowCode{[type=gmenu]}: gray menu\hfill\CalcItemMenu[model=nwks,type=gmenu,font=\small\fontNWKS]{MyItem}
464 \item \ShowCode{[type=bmenu]}: black menu (22 chars, with \texttt{rightsymb})\hfill\CalcItemMenu[model=nwks,type=bmenu,font=\small\fontNWKS,rightsymb=\nwkstri]{MyItem}
465 \end{itemize}
466
467 \begin{DemoCode}{listing only}
468 \CalcItemMenu[model=nwks,font=\small\fontNWKS]{MyItem}
469 \CalcItemMenu[model=nwks,type=gmenu,font=\small\fontNWKS]{MyItem}
470 \CalcItemMenu[model=nwks,type=bmenu,font=\small\fontNWKS,rightsymb=\nwkstri]{MyItem}
471 \end{DemoCode}
472
473 \subsubsection{TI}
474
475 For this model, the key is \ShowCode{[model=ti]}, and font \ShowCode{[font=\\fontTI]} can be used.
476
477 Available items are:
478
479 \begin{itemize}[leftmargin=*]
480 \item \ShowCode{[type=\{\}]}: black menu (default)\hfill\CalcItemMenu[model=ti,font=\small\fontTI]{MyItem}
481 \item \ShowCode{[type=menu]}: default menu\hfill\CalcItemMenu[model=ti,type=menu,font=\small\fontTI]{MyItem}
482 \item \ShowCode{[type=itemsel]}: selected item, with number\hfill\CalcItemMenu[model=ti,type=itemsel,font=\small\fontTI]{1§{MyItem\tidots}}
483 \end{itemize}
484
485 \begin{DemoCode}{listing only}
486 \CalcItemMenu[model=ti,font=\small\fontTI]{MyItem}
487 \CalcItemMenu[model=ti,type=menu,font=\small\fontTI]{MyItem}
488 \CalcItemMenu[model=ti,type=itemsel,font=\small\fontTI]{1§{MyItem\tidots}}
489 \end{DemoCode}
490
491 \subsubsection{HP Prime}
492
493 For this model, the key is \ShowCode{[model=hp]}, and font \ShowCode{[font=\\fontHP]} can be used.
494
495 By default, there's 5 \textit{characters} in the box, so if there's more, a \textit{h-stretch} is applied.
496
497 Available items are:
498
499 \begin{itemize}[leftmargin=*]
500 \item \ShowCode{[type=\{\}]}: semi-rounded (default value) \hfill\CalcItemMenu[model=hp,font=\small\fontHP]{Catlg}
501 \item \ShowCode{[type=ritem]}: rounded \hfill\CalcItemMenu[model=hp,type=ritem,font=\small\fontHP]{OK}
502 \item \ShowCode{[type=item]}: item with optional right symbol\hfill\CalcItemMenu[model=hp,type=item,font=\small\fontHP,rightsymb={~>}]{1§Extremum}
503 \item \ShowCode{[type=itemsel]}: item selected (21 chars) with optional right symbol
504
505 \hfill\CalcItemMenu[model=hp,type=itemsel,font=\small\fontHP,rightsymb=>]{4§Quadratic Explorer}
506 \end{itemize}
507
508 \begin{DemoCode}{listing only}
509 \CalcItemMenu[model=hp,font=\small\fontHP]{Catlg}
510 \CalcItemMenu[model=hp,type=ritem,font=\small\fontHP]{OK}
511 \CalcItemMenu[model=hp,type=item,font=\small\fontHP,rightsymb={~>}]{1§Extremum}
512 \CalcItemMenu[model=hp,type=itemsel,font=\small\fontHP,rightsymb=>]{4§Quadratic Explorer}
513 \end{DemoCode}
514
515 \pagebreak
516
517 \section{Simple keys}
518
519 \subsection{Usage}
520
521 It's also possible (it's not the first purpose of this package !) to use simple key for calculators, with similar syntax and keys.
522
523 \subsection{Samples}
524
525 A new key is available for the keys, \ShowCode{[colorfont=...]}, for using specific color.
526
527 A special font is available for keys, \ShowCode{\\fontKEY}.
528
529 \begin{DemoCode}{}
530 %For CASIO 35+E
531 \CalcKey[model={35+},type=sgray,font=\small\fontKEY,colorfont=white]{F1}
532 \CalcKey[model={35+},type=gray,font=\small\fontKEY,colorfont=casiobluexe]{EXE}
533 \CalcKey[model={35+},type=white,font=\small\fontKEY,colorfont=red]{ALPHA}
534 \CalcKey[model={35+},type=white,font=\small\fontKEY,colorfont=yellow!50!orange]{SHIFT}
535 \CalcKey[model={35+},type=blue,font=\small\fontKEY]{DEL}
536 \end{DemoCode}
537
538 \begin{DemoCode}{}
539 %For CASIO 90+E
540 \CalcKey[model={90+},type=gray,font=\small\fontKEY]{x}
541 \CalcKey[model={90+},type=gray,font=\small\fontKEY,colorfont=casioblueqdkey]{EXE}
542 \CalcKey[model={90+},type=white,font=\small\fontKEY,colorfont=red]{ALPHA}
543 \CalcKey[model={90+},type=white,font=\small\fontKEY,colorfont=yellow!50!orange]{SHIFT}
544 \CalcKey[model={90+},type=blue,font=\small\fontKEY]{DEL}
545 \CalcKey[model={90+},type=silver,font=\small\fontKEY]{F1}
546 \end{DemoCode}
547
548 \begin{DemoCode}{}
549 %For TI83
550 \CalcKey[model={83},type=white,font=\small\fontKEY]{fenêtre}
551 \CalcKey[model={83},type=swhite,font=\small\fontKEY]{x}
552 \CalcKey[model={83},type=blue,font=\small\fontKEY]{2nde}
553 \CalcKey[model={83},type=green,font=\small\fontKEY]{alpha}
554 \CalcKey[model={83},type=gray,font=\small\fontKEY]{(-)}
555 \CalcKey[model={83},type=gray,font=\small\fontKEY]{1}
556 \CalcKey[model={83},type=lightgray,font=\small\fontKEY]{matrice}
557 \CalcKey[model={83},type=lightgray,font=\small\fontKEY]{mode}
558 \CalcKey[model={83},type=lightgray,font=\small\fontKEY,len=4]{sto\textrightarrow}
559 \end{DemoCode}
560
561 \pagebreak
562
563 \section{With external files}
564
565 \subsection{Introduction}
566
567 With external or personal files, it's possible macros of this section.
568
569 \begin{itemize}
570 \item external fonts: \href{https://packages.cpierquet.fr/packages/graphiques/calculatoritems/calculatoritems_fonts.zip}{[here]}
571 \item external img keys: \href{https://packages.cpierquet.fr/packages/graphiques/calculatoritems/calculatoritems_keys.zip}{[here]}
572 \end{itemize}
573
574 \subsection{Numworks font, only with LUA/XE}
575
576 For \textsf{Numworks} model, there's a \texttt{ttf} version of existing keys (\url{https://www.numworks.com/fr/blog/police-touches-numworks/}), and, with \ShowCode{[xelua]} loading option, it's possible to use \textit{directly} the font, defined with \ShowCode{\\fontkeyNWKS} alias, or with the macro for multiple keys.
577
578 \begin{DemoCode}{listing only}
579 %For nwks, with availables symbols
580 {\fontkeyNWKS chars}
581
582 %For nwks, with availables aliases
583 \CalcKeyNwks(*){list of key, separated with +}
584 \end{DemoCode}
585
586 The starred version activate \textsf{bold} version of font.
587
588 \begin{DemoCode}{listing only}
589 NavAera: \CalcKeyNwks{left+right+up+down+home+power+ok+back}
590
591 AdvFcts ~~~~: \CalcKeyNwks{shift+alpha+x+var+tools+clear+exp+ln+log+i+,+pow+sin+cos+tan+sqrt+sqr}
592
593 AdvFcts bold: \CalcKeyNwks*{shift+alpha+x+var+tools+clear+exp+ln+log+i+,+pow+sin+cos+tan+sqrt+sqr}
594
595 NumPad ~~~~: \CalcKeyNwks{0+1+2+3+4+5+6+7+8+9+dot+plus+minus+times+div+lp+rp+x10p+ans+exe}
596
597 NumPad bold: \CalcKeyNwks*{0+1+2+3+4+5+6+7+8+9+dot+plus+minus+times+div+lp+rp+x10p+ans+exe}
598 \end{DemoCode}
599
600 \begin{DemoCode}{}
601 \includegraphics{calculatoritems-nwks-lua.pdf}
602 \end{DemoCode}
603
604 \pagebreak
605
606 \subsection{CASIO font, only with LUA/XE}
607
608 For \textsf{CASIO} models, there's \texttt{ttf} version of existing keys (\url{https://edu.casio.com/fr/forteachers/er/fontsets/}), and, with \ShowCode{[xelua]} loading option, it's possible to use \textit{directly} the font, defined with \ShowCode{\\fontkeyCASIOcw} or \ShowCode{\\fontkeyCASIOfx} aliases, or with the macro for multiple keys.
609
610 \begin{DemoCode}{listing only}
611 %For CASIO classwiz, with availables symbols
612 {\fontkeyCASIOcw chars}
613 %For CASIO fx, with availables symbols
614 {\fontkeyCASIOfx chars}
615
616 %For CASIO classwiz, with availables aliases
617 \CalcKeyCasioCW{list of key, separated with +}
618 %For CASIO fx, with availables aliases
619 \CalcKeyCasioFX{list of key, separated with +}
620 \end{DemoCode}
621
622 \begin{DemoCode}{listing only}
623 \CalcKeyCasioCW{on+home+ok+up+down+left+right+pgup+pgdown+config+back}\\
624 \CalcKeyCasioCW{shift+var+fx+ctlg+tools+x+frac+sqrt+pow+sqr+exp+comma}\\
625 \CalcKeyCasioCW{sin+cos+tan+lp+rp+del+ac+times+div+plus+minus+sminus}\\
626 \CalcKeyCasioCW{1+2+3+4+5+6+7+8+9+0+dot+x10p+format+exe}\\
627 \CalcKeyCasioCW{semicol+ans}
628 \end{DemoCode}
629
630 \begin{DemoCode}{}
631 \includegraphics{calculatoritems-casiocw-lua.pdf}
632 \end{DemoCode}
633
634 \begin{DemoCode}{listing only}
635 \CalcKeyCasioFX{F1+F2+F3+F4+F5+F6+shift+optn+vars+menu}\\
636 \CalcKeyCasioFX{up+down+left+right+alpha+sqr+pow+exit}\\
637 \CalcKeyCasioFX{xtt+log+ln+sin+cos+tan+frac+sd+lp+rp+comma+sto}\\
638 \CalcKeyCasioFX{7+8+9+del+acon+4+5+6+times+div}\\
639 \CalcKeyCasioFX{1+2+3+plus+minus+0+dot+x10p+sminus+exe}
640 \end{DemoCode}
641
642 \begin{DemoCode}{}
643 \includegraphics{calculatoritems-casiofx-lua.pdf}
644 \end{DemoCode}
645
646 \pagebreak
647
648 \subsection{Texas Instruments font, only with LUA/XE}
649
650 For \textsf{TI} models, there's \texttt{ttf} version of existing keys (\url{https://education.ti.com/en/software/search/key-fonts}), and, with \ShowCode{[xelua]} loading option, it's possible to use \textit{directly} the font, defined with \ShowCode{\\CalcKeyTI} or \ShowCode{\\CalcKeyTIfr} aliases, or with the macro for multiple keys.
651
652 \begin{DemoCode}{listing only}
653 %For TI84CE, with availables symbols
654 {\fontkeyTI chars}
655 %For TI83CE.fr, with availables symbols
656 {\fontkeyTIfr chars}
657
658 %For TI84CE, with availables aliases
659 \CalcKeyTI{list of key, separated with +}
660 %For TI83CE.fr, with availables aliases
661 \CalcKeyTIfr{list of key, separated with +}
662 \end{DemoCode}
663
664 \begin{DemoCode}{listing only}
665 \CalcKeyTI{y+window+zoom+trace+graph+2nd+mode+del+left+up+right+down}\\
666 \CalcKeyTI{alpha+xttn+stat+math+apps+prgm+vars+clear}\\
667 \CalcKeyTI{inv+sin+cos+tan+pow+sqr+comma+lp+rp+div}\\
668 \CalcKeyTI{log+7+8+9+times+ln+4+5+6+minus}\\
669 \CalcKeyTI{sto+1+2+3+plus+on+0+dot+sminus+enter}
670 \end{DemoCode}
671
672 \begin{DemoCode}{}
673 \includegraphics{calculatoritems-texas-lua.pdf}
674 \end{DemoCode}
675
676 \begin{DemoCode}{listing only}
677 \CalcKeyTIfr{fx+fenetre+zoom+trace+graphe+2nde+mode+supp+left+up+right+down}\\
678 \CalcKeyTIfr{alpha+xttn+stats+math+matrice+prgm+var+annul}\\
679 \CalcKeyTIfr{fmt+trig+resol+frac+pow+sqr+virg+lp+rp+div}\\
680 \CalcKeyTIfr{log+7+8+9+times+ln+4+5+6+minus}\\
681 \CalcKeyTIfr{sto+1+2+3+plus+on+0+dot+sminus+entrer}
682 \end{DemoCode}
683
684 \begin{DemoCode}{}
685 \includegraphics{calculatoritems-texasfr-lua.pdf}
686 \end{DemoCode}
687
688 \pagebreak
689
690 \subsection{Personal keys}
691
692 In order to use personal versions of keys (not included with the package, but available \href{https://packages.cpierquet.fr/packages/graphiques/calculatoritems/calculatoritems_keys.zip}{[here]}), you an use (internal) \ShowCode{\\inckeycalc} with \texttt{pdf/png/...} files named \texttt{calcitems\_<model>\_<key>.<ext>}.
693
694 \begin{DemoCode}{listing only}
695 %with personal keys, in an readable folder
696 \inckeycalc(*)[options]{model}{key}[extension]
697
698 %the starred version uses includegraphics, with optional arguments
699 %whereas the non starred uses inlinegraphics, with optional arguments (scale=... / strut=...)
700 \end{DemoCode}
701
702 \newcommand\insertcalckeys[2]{\Large\foreach \i in {#2}{\inckeycalc{#1}{\i}\relax}}
703
704 \begin{DemoCode}{listing only}
705 %loop for multiple keys
706 \newcommand\insertcalckeys[2]{%
707 \foreach \i in {#2}{\Large\inckeycalc{#1}{\i}\relax}%
708 }
709 \end{DemoCode}
710
711 \begin{DemoCode}{}
712 %CASIO fx92 College CW (from svg)
713 \insertcalckeys{casio92cw}{on,home,config,back,ok}\\
714 \insertcalckeys{casio92cw}{left,up,right,down,pgud}\\
715 \insertcalckeys{casio92cw}{shift,var,fx,ctlg,tools}\\
716 \insertcalckeys{casio92cw}{x,frac,sqrt,pow,sqr,semicol}\\
717 \insertcalckeys{casio92cw}{rep,sin,cos,tan,lp,rp}\\
718 \insertcalckeys{casio92cw}{7,8,9,del,ac}\\
719 \insertcalckeys{casio92cw}{4,5,6,times,div}\\
720 \insertcalckeys{casio92cw}{1,2,3,plus,minus}\\
721 \insertcalckeys{casio92cw}{0,comma,x10p,fmt,exe}
722 \end{DemoCode}
723
724 \begin{DemoCode}{}
725 %CASIO graph light (from svg)
726 \insertcalckeys{casioglight}{on,home,config,back}\\
727 \insertcalckeys{casioglight}{left,up,right,down,pgud}\\
728 \insertcalckeys{casioglight}{shift,var,fx,ctlg,tools}\\
729 \insertcalckeys{casioglight}{x,frac,sqrt,pow,sqr,exp}\\
730 \insertcalckeys{casioglight}{comma,sin,cos,tan,lp,rp}\\
731 \insertcalckeys{casioglight}{7,8,9,del,ac}\\
732 \insertcalckeys{casioglight}{4,5,6,times,div}\\
733 \insertcalckeys{casioglight}{1,2,3,plus,minus}\\
734 \insertcalckeys{casioglight}{0,dot,x10p,fmt,exe}
735 \end{DemoCode}
736
737 \begin{DemoCode}{}
738 %CASIO graph math (from svg)
739 \insertcalckeys{casiogmath}{on,home,settings,back,next,prev}\\
740 \insertcalckeys{casiogmath}{left,up,right,down,pgud}\\
741 \insertcalckeys{casiogmath}{shift,alpha,var,ctlg,tools}\\
742 \insertcalckeys{casiogmath}{xtty,frac,sqrt,pow,sqr,exp}\\
743 \insertcalckeys{casiogmath}{comma,sin,cos,tan,lp,rp}\\
744 \insertcalckeys{casiogmath}{7,8,9,del,ac}\\
745 \insertcalckeys{casiogmath}{4,5,6,times,div}\\
746 \insertcalckeys{casiogmath}{1,2,3,plus,minus}\\
747 \insertcalckeys{casiogmath}{0,dot,x10p,fmt,exe}
748 \end{DemoCode}
749
750 \begin{DemoCode}{}
751 %CASIO graph35+e ii (from png)
752 \insertcalckeys{casio35p}{F1,F2,F3,F4,F5,F6}\\
753 \insertcalckeys{casio35p}{shift,optn,vars,menu}\\
754 \insertcalckeys{casio35p}{arrows}\\
755 \insertcalckeys{casio35p}{alpha,sqr,pow,exit}\\
756 \insertcalckeys{casio35p}{shift,optn,vars,menu}\\
757 \insertcalckeys{casio35p}{xtt,log,ln,sin,cos,tan}\\
758 \insertcalckeys{casio35p}{frac,sd,lp,rp,comma,sto}\\
759 \insertcalckeys{casio35p}{7,8,9,del,ac}\\
760 \insertcalckeys{casio35p}{4,5,6,times,div}\\
761 \insertcalckeys{casio35p}{1,2,3,plus,minus}\\
762 \insertcalckeys{casio35p}{0,dot,x10p,sminus,exe}
763 \end{DemoCode}
764
765 \begin{DemoCode}{}
766 %CASIO graph90 (from png)
767 \insertcalckeys{casio90p}{F1,F2,F3,F4,F5,F6}\\
768 \insertcalckeys{casio90p}{shift,optn,vars,menu}\\
769 \insertcalckeys{casio90p}{arrows}\\
770 \insertcalckeys{casio90p}{alpha,sqr,pow,exit}\\
771 \insertcalckeys{casio90p}{shift,optn,vars,menu}\\
772 \insertcalckeys{casio90p}{xtt,log,ln,sin,cos,tan}\\
773 \insertcalckeys{casio90p}{frac,sd,lp,rp,comma,sto}\\
774 \insertcalckeys{casio90p}{7,8,9,del,ac}\\
775 \insertcalckeys{casio90p}{4,5,6,times,div}\\
776 \insertcalckeys{casio90p}{1,2,3,plus,minus}\\
777 \insertcalckeys{casio90p}{0,dot,x10p,sminus,exe}
778 \end{DemoCode}
779
780 \begin{DemoCode}{}
781 %TI 83CEfr (from png)
782 \insertcalckeys{ti83ce}{fx,fenetre,zoom,trace,graphe}\\
783 \insertcalckeys{ti83ce}{arrows}\\
784 \insertcalckeys{ti83ce}{2nde,mode,suppr}\\
785 \insertcalckeys{ti83ce}{alpha,xttn,stats}\\
786 \insertcalckeys{ti83ce}{math,matrice,prgm,var,annul}\\
787 \insertcalckeys{ti83ce}{sd,trig,resol,frac,pow}\\
788 \insertcalckeys{ti83ce}{sqr,comma,lp,rp,div}\\
789 \insertcalckeys{ti83ce}{log,7,8,9,times}\\
790 \insertcalckeys{ti83ce}{ln,4,5,6,minus}\\
791 \insertcalckeys{ti83ce}{sto,1,2,3,plus}\\
792 \insertcalckeys{ti83ce}{on,0,dot,sminus,entrer}
793 \end{DemoCode}
794
795 \begin{DemoCode}{}
796 %TI 83CEfr full (from svg)
797 \insertcalckeys{ti83cefull}{fx,fenetre,zoom,trace,graphe}\\
798 \insertcalckeys{ti83cefull}{arrows}\\
799 \insertcalckeys{ti83cefull}{2nde,mode,suppr}\\
800 \insertcalckeys{ti83cefull}{alpha,xttn,stats}\\
801 \insertcalckeys{ti83cefull}{math,matrice,prgm,var,annul}\\
802 \insertcalckeys{ti83cefull}{sd,trig,resol,frac,pow}\\
803 \insertcalckeys{ti83cefull}{sqr,comma,lp,rp,div}\\
804 \insertcalckeys{ti83cefull}{log,7,8,9,times}\\
805 \insertcalckeys{ti83cefull}{ln,4,5,6,minus}\\
806 \insertcalckeys{ti83cefull}{sto,1,2,3,plus}\\
807 \insertcalckeys{ti83cefull}{on,0,dot,sminus,entrer}
808 \end{DemoCode}
809
810 \end{document}