How to typeset special Apple Mac keyboard symbols?

There is the Apple Keys package available here: Apple Keys.

It has character sized images for the following symbols:

list of keys


A few month ago I released menukeys an now an upvote remind me of this question, so I’d like to announce the package here. It contains symbols for (I hope) all Apple and Windows Keys.

symbols

The symbols are produced with TikZ. The code can be found in menukeys.sty or in the implementation section of the manual.

Furthermore the package offers macros to typeset shortcuts.

example

To set the unit of the rulers go to \menu{Extras > Settings > Rulers}
and choose between millimetres, inches and pixels. The short cut to
view the rulers is \keys{cmd + R}. Pressing these keys again will
hide the rulers.

The standard path for saving your document is \directory{Macintosh HD/
Users/ Your Name/Documents} but you can change it at \menu{Extras >
Settings > Saving} by clicking \menu{Change save path}.

If you are using XeTeX or LuaTeX, you can use some of the symbols directly.

However, be aware that only few fonts actually contain all symbols, so you might have to load it from a different font (like XITS, DejaVu Sans or FreeSerif):

% Compile with xelatex or lualatex
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\xits{xits.otf}

% provide a command for the command key symbol
\newcommand\cmdkey{{\xits ⌘}}
% make the symbol usable directly
\usepackage{newunicodechar}
\newunicodechar{⌘}{\cmdkey}

\begin{document}
Press the \cmdkey~key.
Release the ⌘ key.
\end{document}

result

For the record, common keys are

  • ⌘ U+2318 place of interest sign
  • ⌥ U+2325 option key
  • ⌫ U+232B ERASE TO THE LEFT
  • ⇧ U+21E7 UPWARDS WHITE ARROW
  • ⌤ U+2324 UP ARROWHEAD BETWEEN TWO HORIZONTAL BARS
  • ⇪ U+21EA upwards white arrow from bar
  • ↵ U+21B5 DOWNWARDS ARROW WITH CORNER LEFTWARDS
  • ↹ U+21B9 LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR
  • ⇥ U+21E5 RIGHTWARDS ARROW TO BAR
  • ⏏ U+23CF EJECT SYMBOL
  • ⎋ U+238B BROKEN CIRCLE WITH NORTHWEST ARROW