[XeTeX] ledmac in XeTeX?
Bruno Voisin
bvoisin at mac.com
Thu Jun 10 11:44:57 CEST 2004
Le 10 juin 04, à 11:32, Somadevah at aol.com a écrit :
> I wonder if anyone has tried using Ledmac (the LaTeX version of Edmac)
> in XeTeX? The ledarden.tex sample file works as expected with CM fonts
> but if you specify OT fonts then the linespacing is messed up. Is this
> because, as Jonathan mentioned earlier, XeTeX does not have the full
> metrics of a font available (and Ledmac somehow needs these), or am I
> just missing something obvious.
Hi,
I don't use Ledmac (or know what it is), but I have noticed that fonts
can have an influence on the baselineskip in XeTeX: if you use Hoefler
Text, for example, in a document originally compiled in LaTeX with CM
fonts, the baselineskip won't be altered, but if you use Optima, which
seems to have different metrical parameters, the baselineskip will get
bigger and not follow that normally specified in size12.clo.
For switching to Hoefler TeXt I added in the preamble:
\DeclareFontFamily{U}{hoefl}{}
\DeclareFontShape{U}{hoefl}{m}{n}%
{<-> "Hoefler\space Text"}{}
\DeclareFontShape{U}{hoefl}{m}{it}%
{<-> "Hoefler\space Text\space Italic"}{}
\DeclareFontShape{U}{hoefl}{bx}{n}%
{<-> "Hoefler\space Text\space Black"}{}
\DeclareFontShape{U}{hoefl}{b}{n}%
{<-> ssub * hoefl/bx/n}{}
\DeclareFontShape{U}{hoefl}{bx}{it}%
{<-> "Hoefler\space Text\space Black\space Italic"}{}
\DeclareFontShape{U}{hoefl}{b}{it}%
{<-> ssub * hoefl/bx/it}{}
\DeclareFontShape{U}{hoefl}{m}{sc}%
{<-> "Hoefler\space Text:Letter\space Case=Small\space Caps"}{}
\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{hoefl}
\normalfont\selectfont
and for switching to Optima:
\DeclareFontFamily{U}{optima}{}
\DeclareFontShape{U}{optima}{m}{n}%
{<-> "Optima\space Regular"}{}
\DeclareFontShape{U}{optima}{m}{it}%
{<-> "Optima\space Italic"}{}
\DeclareFontShape{U}{optima}{bx}{n}%
{<-> "Optima\space Bold"}{}
\DeclareFontShape{U}{optima}{b}{n}%
{<-> ssub * optima/bx/n}{}
\DeclareFontShape{U}{optima}{bx}{it}%
{<-> "Optima\space Bold\space Italic"}{}
\DeclareFontShape{U}{optima}{b}{it}%
{<-> ssub * optima/bx/it}{}
\renewcommand{\encodingdefault}{U}
\renewcommand{\rmdefault}{optima}
\normalfont\selectfont
Bruno Voisin
More information about the XeTeX
mailing list