How can you typeset keys to get the impression of a Calculator?
Remark: This question is a split-of Keyboard Font for LaTeX
How can you typeset keys to get the impression of a Calculator?
Remark: This question is a split-of Keyboard Font for LaTeX
There are packages for it:
Example from the doc:

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}

Some examples for the \Touche-macro:

Actually (2018-03-24) one model is available: graph35+.
\shorthandon{;} (line 422 + 494) - I kep you informed.
– knut
Jan 02 '15 at 19:53
newtxtt is a fairly new addition.
– A.Ellett
Jan 02 '15 at 22:06
\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)
Now it exists a new package to draw keys of a scientific calculator. I used that calculator when I teached at Junior High School.
ticollege.sty : https://www.ctan.org/pkg/ticollege