MathUnicode keyboard layout

I made a keyboard layout containing lots of maths symbols that I commonly use in LaTeX.

To try it yourself:

  1. Copy the MathUnicode.keylayout file into your ~/Library/Keyboard Layouts directory.
  2. Log out and back in again.
  3. In the Language & Text pane of System Preferences, select the Input Sources tab, and then the MathUnicode keyboard.

To use this keylayout in LaTeX, include the MathUnicode.sty package. This package uses the inputenc package to convert the Unicode characters into LaTeX macros.


  • Ukelele is quite a useful tool for editing keyboard layouts.
  • The structure of the .keylayout XML file is described here.
  • The MathUnicode keyboard layout disturbs several keyboard shortcuts that use the option key. So I use cmd-space to switch between MathUnicode and my default layout.

3 thoughts on “MathUnicode keyboard layout”

  1. Dear John, This keyboard layout is amazing! I came across it through your post on Stack Exchange. However, I don’t seem to be able to install it: have things changed, to your knowledge, since 2010? I’ve copied the file to ~/Library/Keyboard Layouts, logged out and in, but “MathUnicode” doesn’t appear in the list of available input sources to add in System Preferences.

    I hope you can help me get this working, as a layout like this is even more important in this age of Slack and other non-LaTeX collaborative media.


    1. Thanks for your kind words, Jeremy! I’m afraid I haven’t used this keyboard layout myself for a few years — I guess I just never bothered to reinstall it on my new machine. I vaguely recall needing to restart my machine to properly install the keyboard layout, not sure if that helps.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s