33

Is there a standard way to typeset the special symbols of the Apple Mac keyboard? That is, the curly rectangle ⌘ and the others?

If there is none, what would you suggest as workarounds?

4 Answers 4

37

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

It has character sized images for the following symbols:

list of keys

8
  • Thanks. I’ve found this Package to but only with an old broken download link.
    – Tobi
    Commented Jun 1, 2011 at 21:04
  • 7
    @Tobi That's the problem with people not putting things on CTAN. I've tried to convince Herb Schulz to do this, but he thinks it's not worth it.
    – Alan Munn
    Commented Jun 1, 2011 at 21:35
  • Bummer! (Does that mean the same as “What a pity“?dic.leo.org, said that …)
    – Tobi
    Commented Jun 1, 2011 at 21:39
  • @Tobi Yes, that's a pretty good definition of it. (Although you can also say "What a bummer." ) :-).
    – Alan Munn
    Commented Jun 1, 2011 at 21:43
  • 1
    Thanks: I thought that “what a pity” sounds to cute like talking to a baby/ little child … These are the important things they don’t teach at school :-/
    – Tobi
    Commented Jun 1, 2011 at 21:46
31

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}.
3
  • Nice package, but comparing with Herb's package, the Mac escape and delete keys look reversed, and you are missing a couple of keys (control, eject.) Oddly enough, the newer Macs no longer have the funny Option symbol.
    – Alan Munn
    Commented Jul 5, 2012 at 22:50
  • @AlanMunn: Hi Alan, sorry for the late reply, I added you comment to may to do list and I’ll look at it when I got some more time :-)
    – Tobi
    Commented Oct 3, 2012 at 19:11
  • 1
    @AlanMunn: I finally updated menukeys and fixed the esc symbol :-)
    – Tobi
    Commented Apr 22, 2016 at 7:48
13

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
8

Google found AppleSymbols (via). Maybe this helps.

Alternatively you could draw them with TikZ. For the Apple-Logo I can give you a commans which includes an Image.

If you don’t like AppleSymbols I can help you with TikZ!

5
  • Seems like this is more extensive, but the other one solved my issue quicker. Thanks for the TikZ offer! I guess this would be nice to have TikZ snippets of the Apple's symbols - could produce nice results as well. Thanks anyway!
    – Dror
    Commented Jun 2, 2011 at 14:40
  • @Dror: I think that Alan’s answer is the better one, too. Did I understand you right, that you (at the moment) don’t need the TikZ symbols?
    – Tobi
    Commented Jun 2, 2011 at 15:04
  • Yep - Alan's solution is the trick for me. I just said that it would be nice... :)
    – Dror
    Commented Jun 2, 2011 at 15:17
  • @Dror: OK … :-D
    – Tobi
    Commented Jun 2, 2011 at 16:14
  • I didn't suggest that you should do it! Just as a general remark. Actually, a gallery with code snippets of common symbols could be really helpful.
    – Dror
    Commented Jun 2, 2011 at 19:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .