[XeTeX] Xltxtra.sty and \reflectbox command
Herbert Schulz
herbs at wideopenwest.com
Sun Jun 11 02:09:29 CEST 2006
On Jun 10, 2006, at 11:53 AM, Stephen Moye wrote:
> You need to call
>
> \usepackage{graphicx}
>
> I also had to get the latest version of fixltx2e.sty to get things to
> work.
>
> I second the motion to have a \XeLaTeX command. All those in
> favor... ;>}
>
> SGM
Howdy,
Ok, I added the command
\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#4\LaTeX}}
to the definition of \TeXlogospacing. It is basically the definition
of \XeTeX substituting \LaTeX for \TeX at the end and using a \kern#4
instead of \kern#1 before it. The 4th argument (#4) is the kerning
between the L & A in \LaTeX and that seems to look pretty good to my
eyes.
I also added a \RequirePackage{graphicx} near the top of the package
and changed the internal name of the package to xltxtrax.sty so it
generates a warning when called (since the internal and external
package names differ).
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
More information about the XeTeX
mailing list