ho-tex / hologo

hologo package for LaTeX
LaTeX Project Public License v1.3c
4 stars 1 forks source link

\hologo{XeTeX} and \hologo{XeLaTeX} both acquire excessive height in italic shape #9

Open jfbu opened 6 months ago

jfbu commented 6 months ago
\documentclass{article}
\usepackage{hologo}
\begin{document}
\newcommand\XeTeX{\hologo{XeTeX}}
\newcommand\LuaLaTeX{\hologo{LuaLaTeX}}
\renewcommand\LaTeX{\hologo{LaTeX}}
\newcommand\XeLaTeX{\hologo{XeLaTeX}}
\newcommand\pdfLaTeX{\hologo{pdfLaTeX}}

\fboxsep-\fboxrule

\fbox{\XeTeX}\fbox{\LuaLaTeX}\fbox{\LaTeX}\fbox{\XeLaTeX}\fbox{\pdfLaTeX}

% original context in mathastext.dtx: 
% (one sees effect in mathastext.pdf 1.3zb and earlier, for 1.3zb on page 33)
% \emph{Comment out the} |fontspec| \emph{line and use pdf\LaTeX{}. All
%   three outputs are different on my \TeX{} installation. \XeTeX{} does not have
%   the italic corrections. \LuaLaTeX{} does, but only for the italic font.
%   pdf\LaTeX{} has them for both the italic and the upright font.}%

\itshape

\fbox{\XeTeX}\fbox{\LuaLaTeX}\fbox{\LaTeX}\fbox{\XeLaTeX}\fbox{\pdfLaTeX}

\upshape\bfseries

\fbox{\XeTeX}\fbox{\LuaLaTeX}\fbox{\LaTeX}\fbox{\XeLaTeX}\fbox{\pdfLaTeX}

\itshape

\fbox{\XeTeX}\fbox{\LuaLaTeX}\fbox{\LaTeX}\fbox{\XeLaTeX}\fbox{\pdfLaTeX}
\end{document}

Capture d’écran 2024-01-09 à 13 43 51

u-fischer commented 6 months ago

hm, yes when rotating the E the in-built command doesn't handle the height correctly. You could load the graphicx package.

jfbu commented 6 months ago

@u-fischer never thought of adding graphicx which indeed solves that! I had "fixed" it when I encountered it via \smash in my original context, which indeed did not load graphicx else I would not have seen the issue...