Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread jfbu
Le 14/02/2017 à 15:42, Herbert Schulz a écrit :
> 
>> On Feb 14, 2017, at 2:36 AM, jfbu  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





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread Herbert Schulz

> On Feb 14, 2017, at 2:36 AM, jfbu  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.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread Ulrike Fischer
Am Tue, 14 Feb 2017 00:41:48 + schrieb David Carlisle:

> The following first reported at the unicode-math github
> https://github.com/wspr/unicode-math/issues/383
> but the problem can be seem with plain tex.
> 
> 
> In the tex below there are six repeated instances of a subscripted bracket
> they should all be the same but the first one is misaligned.

It works ok on miktex. See
http://chat.stackexchange.com/transcript/message/35423834#35423834
for my output. (On texlive I get the wrong one too).

Imho it is part of a number of questions and bug reports regarding
leaking fontdimens (e.g.
https://sourceforge.net/p/xetex/bugs/75/#b012) which should be fixed
in the development version.

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread jfbu
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


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex