Draw calculator keys with LaTeX?

There are packages for it:

  • http://www.ctan.org/pkg/tipfr
  • https://ctan.org/pkg/graph35 Draw keys and screen items of several Casio calculators

tipfr

Example from the doc:

enter image description here

A small example:

\documentclass[11pt,english]{scrartcl} 
\usepackage{babel} 
\usepackage{tipfr} 

\begin{document}

Push 
\Touche[style=number, principal=1]
\Touche[style=operation, principal=+]
\Touche[style=number, principal=2]
\Touche[style=function,principal={=},]
and you get the result 3.

\end{document}

enter image description here

Some examples for the \Touche-macro: enter image description here

graph35 - Casio calculators

Actually (2018-03-24) one model is available: graph35+.


\shorthandon{} and \shorthandoff{} do not make sense for French with LuaTeX or XeTeX as high punctuation characters (:;!?) are no longer made active with these engines.

I would suggest dropping the two commands \shorthandon{;} and \shorthandoff{;} in tipfr.sty and adding babel to the options of \usetikzlibrary{...} on line 10, this should take care of ; characters when they happen to be active (in French with TeX or pdfTeX engines).


I can't write a comment because I haven't enough reputation so I use the answer box. You can draw calculator's keys with the tipfr package. There is a update (see http://www.ctan.org/pkg/tipfr) : with the help of the previous answer, the problem you met is fixed.

The "principal" option can now be called with the "enter" style. For example : \Touche[style=enter,principal={=}] or \Touche[style=enter,principal={EXE}]

I added a starred version to \Calculatrice to draw a small calculator (see an example at the end of documentation)

Tags:

Fonts

Keyboard