[OS X TeX] accents

Nicola Cabibbo nicola.cabibbo at roma1.infn.it
Thu Apr 18 03:34:59 EDT 2002



>TeXShop in Pdftex mode displays letters with accents  \`a \'n correctly
>but printing is messed up. I switched to TeX - Ghostscript
>and printed the ps file. Everything was as it supposed to be.
>Is this a limitation of Pdftex, TeXShop, OS X, or what?


I put the following as the first line in my .tex files

\input special_keys

I learned this trick a few years ago  on an Alpha mailing list. 
The file was somewhere on an A;pha site, I do not remember where, 
so I copy it here.
 
I keep it in ~/Library/texmf/tex/latex/misc/myinputs
for tetex, and I have a copy in the Oztek folder. 

Thanks to all for the very useful and informative list!


	Nicola Cabibbo

-----------------------------------------------
% file special_keys.tex 

% This file can be \input into TeX 3.0 source files that use 8-bit characters.
% define the macintosh "composite" characters
% Umlaut
\catcode`\ä=\active\def ä{\"a}        % option u, then  a
\catcode`\ë=\active\def ë{\"e}        % option u, then  e
\catcode`\ï=\active\def ï{\"{\i}}     % option u, then  i
\catcode`\ö=\active\def ö{\"o}        % option u, then  o
\catcode`\ü=\active\def ü{\"u}        % option u, then  u
\catcode`\ÿ=\active\def ÿ{\"y}        % option u, then  y
\catcode`\Ä=\active\def Ä{\"A}        % option u, then  A
\catcode`\Ö=\active\def Ö{\"O}        % option u, then  O
\catcode`\Ü=\active\def Ü{\"U}        % option u, then  U
%Acute
\catcode`\á=\active\def á{\'a}        % option e, then  a
\catcode`\é=\active\def é{\'e}        % option e, then  e
\catcode`\í=\active\def í{\'{\i}}     % option e, then  i
\catcode`\ó=\active\def ó{\'o}        % option e, then  o
\catcode`\ú=\active\def ú{\'u}        % option e, then  u
\catcode`\É=\active\def É{\'E}        % option e, then  E
%Grave
\catcode`\à=\active\def à{\`a}        % option `, then  a
\catcode`\è=\active\def è{\`e}        % option `, then  e
\catcode`\ì=\active\def ì{\`{\i}}     % option `, then  i
\catcode`\ò=\active\def ò{\`o}        % option `, then  o
\catcode`\ù=\active\def ù{\`u}        % option `, then  u
\catcode`\À=\active\def À{\`A}        % option `, then  A
\catcode`\È=\active\def È{\`E}        % option `, then  E
%tilde
\catcode`\ã=\active\def ã{\~a}        % option n, then  a
\catcode`\ñ=\active\def ñ{\~n}        % option n, then  n
\catcode`\õ=\active\def õ{\~o}        % option n, then  o
\catcode`\Ã=\active\def Ã{\~A}        % option n, then  A
\catcode`\Ñ=\active\def Ñ{\~N}        % option n, then  N
\catcode`\Õ=\active\def Õ{\~O}        % option n, then  O
%hat
\catcode`\â=\active\def â{\^a}        % option i, then  a
\catcode`\ê=\active\def ê{\^e}        % option i, then  e
\catcode`\î=\active\def î{\^{\i}}     % option i, then  i
\catcode`\ô=\active\def ô{\^o}        % option i, then  o
\catcode`\û=\active\def û{\^u}        % option i, then  u


% end of file
---------------------------------------------

The file is easily extendable.  


-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------




More information about the MacOSX-TeX mailing list