# [XeTeX] Correct LaTeX-logo – how?

Robert Spence spence at saar.de
Sun May 7 15:12:48 CEST 2006

Joanna, Jonathan,

When I tried to typeset the file xetex-sample2e.tex I got the
following error message:

! Undefined control sequence.
\XeTeX ...flectbox {E}\else \XeTeXuseglyphmetrics
=1 \setbox 0=\hbox
{E}\dim...
l.60 ...eTeX\ logo within \emph{emphasized} text.}
Comparing it with
?

A Spotlight search of my harddisk pointed me towards an email that
Jonathan posted on the [OS X TeX] mailing list on 28 March 2006,
which says:

>In the current development version of XeTeX, which will be released
as 0.991 when I >get enough time to put a new package together, there
is a parameter >\XeTeXuseglyphmetrics you can set that causes the
engine to use true glyph height and >depth metrics in these
computations, instead of the font-wide ascent and descent. >(This is
an optional setting, as there's a performance hit for using this, and
for >simple running text it is often not needed.)

The XeTeX version I have is only 0.99b (which appears to be the
latest one available to us mere mortals...) --- or is it possible to
get version 0.991 already?

-- Robert Spence

On 07 May 2006, at 14:09 , Jonathan Kew wrote:

> On 7 May 2006, at 12:16 pm, Joanna Rycko wrote:
>
>> Hello one more time,
>>
>> using XeLaTeX I wanted to typeset LaTeX or even TeX logo in my
>> document. But when the text is written in sans serif font, the
>> both logos are still in serif font.
>
> I think this means that you're loading a package of some kind that
> overrides the original definitions of the logos, as they should
> "just work" in a default XeLaTeX document.
>
> I'm attaching a copy of sample2e with fonts changed to Gill Sans;
> typesetting this should give the logos in the same font as the
> surrounding text. (It also includes a sample XeLaTeX logo.)
>
> Note that the kerns and vertical shifts in the logos really need to
> be adjusted for different fonts; the best spacing depends on the
> glyph shapes that are being put together. So although this sample
> shows them working in accordance with the definitions, the
> positioning of the small-caps "A" in LaTeX is not ideal.
>
> If you find that a particular package is redefining \TeX, etc., and
> you want to preserve the original definition that doesn't mess with
> the typeface, you might be able to do something like this in your
> preamble:
>
> 	\let\originalTeX = \TeX
> 	\usepackage{some-package-that-redefines-TeX}
> 	\let\TeX = \originalTeX
>
> (And similarly for \LaTeX, of course.) And if you want to fine-tune
> the glyph positioning, you'll need to find the original \TeX and
> \LaTeX macros and make copies of them, changing the \kern, \raise,
> etc dimensions until you're happy with the results for the
> particular typefaces you're using.
>
> JK
>
> <xetex-sample2e.tex>
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex