[XeTeX] misaligned math if \smash used in subscripts
jfbu
jfbu at free.fr
Tue Feb 14 17:54:10 CET 2017
Le 14/02/2017 à 15:42, Herbert Schulz a écrit :
>
>> On Feb 14, 2017, at 2:36 AM, jfbu <jfbu at free.fr> wrote:
>>
>> Hi,
>>
>> just to point out that there is interesting effect if the
>> very first \smash. is simply replaced by an x
>>
>> \hrule
>> $$
>> \hbox{$\left)\vbox to15pt{}\right.$}_{x} % or also _{\hbox{x}}
>> \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.}
>> \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.}
>> $$
>> \hrule
>>
>> Jean-François
>
>
> Howdy,
>
> I only see a single sub-scripted x from the first line. This is with a fully updated TeX Live 2016 originally installed by the MacTeX package.
>
Hi Herb
I should have reproduced David's lines selecting an OpenType font
\font\m= "[latinmodern-math.otf]/OT:script=math;language=DFLT;" at 10pt
\font\sm= "[latinmodern-math.otf]/OT:script=math;language=DFLT;" at 7pt
\font\ssm= "[latinmodern-math.otf]/OT:script=math;language=DFLT;" at 5pt
\textfont0=\m
\scriptfont0=\sm
\scriptscriptfont0=\ssm
\Umathcode`.= 0 0 `.
The code snippet
>> \hrule
>> $$
>> \hbox{$\left)\vbox to15pt{}\right.$}_{x} % or also _{\hbox{x}}
>> \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.}
>> \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.}
>> $$
>> \hrule
in my post was supposedly following those lines
The effect is that the presence of the x changes the size of the second
parenthesis, Also tested on TL2016.
best
Jean-François
More information about the XeTeX
mailing list