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?

doncherry
  • 54,637
Dror
  • 22,613

4 Answers4

37

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

It has character sized images for the following symbols:

list of keys

Alan Munn
  • 218,180
  • Thanks. I’ve found this Package to but only with an old broken download link. – Tobi Jun 01 '11 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 Jun 01 '11 at 21:35
  • Bummer! (Does that mean the same as “What a pity“?dic.leo.org, said that …) – Tobi Jun 01 '11 at 21:39
  • @Tobi Yes, that's a pretty good definition of it. (Although you can also say "What a bummer." ) :-). – Alan Munn Jun 01 '11 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 Jun 01 '11 at 21:46
  • Where should the .eps and .pdf files go in the (local) texmf tree? – murray Jul 05 '12 at 15:38
  • @murray Just put the whole applekeys folder into <path-to-local-texmf/tex/latex The graphics don't need to be in a separate place. – Alan Munn Jul 05 '12 at 16:09
  • @Alan Munn: OK, that works. Of course I was going to put the .sty file in <path-to-local-texmf>/tex/latex; I was just uncertain about the graphics files. I'd suggest a little readme file saying that. – murray Jul 06 '12 at 02:33
30

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}.
Tobi
  • 56,353
  • 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 Jul 05 '12 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 Oct 03 '12 at 19:11
  • 1
    @AlanMunn: I finally updated menukeys and fixed the esc symbol :-) – Tobi Apr 22 '16 at 07: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
Caramdir
  • 89,023
  • 26
  • 255
  • 291
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!

Tobi
  • 56,353
  • 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 Jun 02 '11 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 Jun 02 '11 at 15:04
  • Yep - Alan's solution is the trick for me. I just said that it would be nice... :) – Dror Jun 02 '11 at 15:17
  • @Dror: OK … :-D – Tobi Jun 02 '11 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 Jun 02 '11 at 19:45