[OS X TeX] Hyphen not available in gtamac optima

Michael Sharpe msharpe at ucsd.edu
Thu Dec 31 23:46:53 CET 2009


On Dec 31, 2009, at 2:22 PM, Nathan Paxton wrote:

> 	How will LY1 (which I really can't recall what that means) affect the rest of my document and such? (It's set in mathpazo.)
> 
> 	Should I use some other version of Optima?
> 
> -N
> ----------
> Nathan A. Paxton, Ph.D.
> Dept. of Government, Harvard University
> 
> napaxton AT fas DOT harvard DOT edu
> http://www.fas.harvard.edu/~napaxton
> =========================================================
> When you have to stay eight years away from California, you live in a perpetual state of homesickness.
>         - Ronald Reagan
> 
> The most courageous act is still to think for yourself.  Aloud.
>         -Coco Chanel
> =========================================================
> 
> On 31 Dec 2009, at 4:06 PM, Michael Sharpe wrote:
> 
>> 
>> On Dec 31, 2009, at 9:12 AM, Michael Sharpe wrote:
>> 
>>> 
>>> On Dec 31, 2009, at 8:17 AM, Nathan Paxton wrote:
>>> 
>>>> 	When I run LaTeX on my file, I get the following warning. The visible result is that hyphens (for word breaks, in tables, and so forth) don't show up in my sans-serif sections. Is there any manner by which I can get hyphens?
>>>> 
>>>>> pdfTeX warning: /usr/texbin/pdflatex (file /usr/local/texlive/2009/../texmf-loc
>>>>> al/fonts/truetype/gtamacfonts/optima/OptimaBold.ttf): glyph `hyphen.alt' not fo
>>>>> und
>>>> 
>>> 
>>> There does seem to be a problem with the hyphen in T1 encoding in gtamac Optima. I see hyphens only if I use LY1 encoding.
>>> 
>> 
>> In fact, the same problem affects all the gtamac fonts except in LY1 encoding.  T1 (which uses ec.enc for its encoding vector) defines hyphen as octal 045 and hyphen.alt as octal 177. As I understand it, the latter character is supposed to be used by microtype code for hyphens at ends of lines. Anyway, you don't see a character at position '177 in ec-raw-OptimaRegular, or any of the other gtamac ec-raw- tfm files. The virtual font ec-OptimaRegular in effect defines hyphen in all cases as hyphen.alt. It is of course possible to change this using vftovp, then vptovf after changing the mapping, but that would be a lot of work to change all the gtamac ec-xxx files in this way. Much better to use LY1.
>> 
>> Michael
>> 

They can coexist nicely with the following incantation.

\usepackage[T1,TS1,LY1]{fontenc}
\usepackage{textcomp}
\usepackage[scale=.9]{gtamacoptima}% will use LY1 for optima
\linespread{1.05}        % Palatino needs more leading
\usepackage{mathpazo}
\usepackage[T1]{fontenc}% to make T1 the document default---required to use mathpazo

Michael






More information about the macostex-archives mailing list