[XeTeX] Extra text with itemize? "(0).fd (0).fd ..."
Herbert Schulz
herbs at wideopenwest.com
Thu Jul 27 20:05:33 CEST 2006
On Jul 27, 2006, at 5:46 AM, Bruno Voisin wrote:
> ...
> Minor remark: in the doc fontspec.pdf, any line starting with the
> LaTeX logo \LaTeX (for example on p. 3) is slightly shifted to the
> right (i.e. there's a slight space before the "L"). I can't tell much
> more, as I don't have most of the commercial fonts needed to typeset
> fontspec.dtx.
>
> Looking at this file, the input looks correct, which seems to
> indicate this is either a bug in the definition of \LaTeX or a bug in
> XeTeX. I've checked whether the definition of \LaTeX is the standard
> one, or that in xltxtra.sty, but the latter doesn't seem to be used.
>
> Bruno Voisin
>
Howdy,
I think I've found the problem: the % was missing after the \smash
{ line in the definition of \LaTeX in xltxtra.sty. If you also want
the definition of \XeLaTeX try substituting:
\newcommand*\TeXlogospacing[6]{%
\DeclareRobustCommand\TeX{%
\leavevmode
\smash{%
T\kern#1
\lower#3\hbox{E}\kern#2 X}%
\spacefactor1000\relax}
\DeclareRobustCommand{\LaTeX}{%
\leavevmode
\smash{%
L\kern#4%
{\sbox\z@ T%
\vbox to\ht\z@{\hbox{\check at mathfonts
\fontsize\sf at size\z@
\math at fontsfalse\selectfont
A}%
\vss}%
}%
\kern#5%
\TeX}}
\DeclareRobustCommand\XeTeX{%
\leavevmode
\smash{%
X\lower #3
\hbox{\kern #2
\ifnum\XeTeXcharglyph"018E > 0
\char"018E\relax
\else\ifdim\fontdimen1\font=0pt
\reflectbox{E}%
\else % rotation is about the origin, so we need to adjust
positioning
\XeTeXuseglyphmetrics=1%
\setbox0=\hbox{E}\dimen0=\ht0\advance\dimen0by\dp0%
\raise\dimen0\hbox{\rotatebox{180}{\box0}}%
\fi\fi
}\kern#1\TeX}}
\DeclareRobustCommand\XeLaTeX{%
\leavevmode
\smash{%
X\lower #3
\hbox{\kern #2
\ifnum\XeTeXcharglyph"018E > 0
\char"018E\relax
\else\ifdim\fontdimen1\font=0pt
\reflectbox{E}%
\else % rotation is about the origin, so we need to adjust
positioning
\XeTeXuseglyphmetrics=1%
\setbox0=\hbox{E}\dimen0=\ht0\advance\dimen0by\dp0%
\raise\dimen0\hbox{\rotatebox{180}{\box0}}%
\fi\fi
}\kern#6\LaTeX}}}
\TeXlogospacing{-0.15em}{-0.15em}{0.5ex}{-0.36em}{-0.15em}{-0.10em}
for that definition and execution of \TeXlogospacing in xltxtra.sty.
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
More information about the XeTeX
mailing list