Welcome to the web pages of Juan L. Varona. In this page you will find information on two keyboard layouts developed by myself. They are particularly well adapted to write TeX and LaTeX in a Mac with a Spanish keyboard (but the user can modify them to better fit to its own keyboard). They require system Mac OS X 10.2 or later.
If you want to install and use these keyboard layouts, click here to download a compressed file will all what you need.
Now, I describe its content, and how to use it.
TeX-7bits-spanish.keylayoutand
TeX-8bits-spanish.keylayoutare two keyboard layouts whose object is to simplify the process of writting TeX/LaTeX in any application under Mac OS X (version 10.2 or later; they do not work with 10.1). Together with them, there are the corresponding icons
TeX-7bits-spanish.icnsand
TeX-8bits-spanish.icnsThey are intended to write in a Spanish keyboard; they work in any other keyboard, but several symbols will not be located in the place marked by the keyboard itself, because the location of the keys is different in each country. (Of course, the users can adapt the two .keylayout files according to their needs and preferences.)
The "7bits" layout uses the traditional TeX encoding. For instance, when typing the keys corresponding to ñ, á, ¿ you get \~n, \'a, ?`. The "8bits" layout keeps these keys in its original form, and it is better adapted to write LaTeX with \usepackage[utf8]{inputenc} (or the currently obsolete \usepackage[applemac]{inputenc} and \usepackage[latin1]{inputenc}). To a large extent, the utility of both keyboard layouts is that most Greek letters can be written in a very fast way. For instance, typing alt-a you get \alpha, and typing alt-shift-S you get \Sigma.
Moreover, both keyboard layouts have the keys corresponding to ` and ^ deactivated as dead keys, because these accents do not exist in Spanish and, furthermore, they interfere the behaviour of two very used characters in TeX; if you want to use them as accents, type alt-shift-` and alt-shift-i, respectively.
To use these keyboard layouts, it is necessary to put them in the directory
Library/Keyboard Layoutsof the user (it is also possible to put them in the corresponding directory in System or Network, and then they will be accessible to all the users in the computer, or in the net). No problem arises if you install both layouts. Also, put the icons in the same directory. Now, they can be used like any other keyboard layout, by means of the International panel in the Preferences of the System. If you select that they appear in the menu bar, it is very easy to change the keyboard when you want.
To see what you get in any key of the keyboard, proceed in the following way: in the International panel in the Preferences of the System (in the same place where you activate keyboard layouts), make that the "Keyboard Viewer" palette appears in the menu bar. And use it!
Note: In the distibution, I have also included the Technical Note TN2056 from Apple, and a capture of the screen that shows how we see an error in a hypothetical modification of a .keylayout file (see below). This is usesul only if you want to understand the internal behaviour of the keyboard layouts, or if you want to make changes in the .keylayout files.
With this reservation, the files are written in xml and are easily understandable. Details can be read in the "Technical Note TN205" from Apple: http://developer.apple.com/technotes/tn2002/tn2056.html (also included in the distribution). Let us advice that, sometimes, after making changes in the files, the System does not notice that they have been modified. We can force the System to realize these changes by using, in the Terminal, the Unix command "touch" applied to the directory Keyboard Layouts and, for more security, to the corresponding Library (changing the date in the Calendar can also be useful). If, when making changes, we have included errors, we can see them in the Console.
Download it and enjoy!
Juan L. Varona
Date of last modification of this page: December 30, 2023.
My web page on TeX (in Spanish): http://www.unirioja.es/cu/jvarona/tex.html
Personal web page (in Spanish): http://www.unirioja.es/cu/jvarona/hola.html
Personal web page (in English): http://www.unirioja.es/cu/jvarona/welcome.html