[lucida] Odd bug with Lucida Bright Math OT, icomma and TeX Live 2015

Vincent Goulet vincent.goulet at me.com
Tue Sep 8 20:36:03 CEST 2015


> Le 2015-09-08 à 14:03, Bruno Voisin <bvoisin at icloud.com> a écrit :
> 
>> On 08 Sep 2015, at 18:27, Vincent Goulet <vincent.goulet at me.com> wrote:
>> 
>> The following MWE worked as expected on TeX Live 2014:
>> 
>> [...]
>> 
>> With TeX Live 2015, compilation just hangs at the line with a comma in a displayed equation. Stopping the compilation yields
>> 
>> ^C! Interruption.
>> ,->\futurelet 
>>             \@let at token \sm at rtcomma 
>> l.10   x = y + 2,
>> 
>> ?
>> 
>> The comma does not cause problems with inline equations. Using package ncccomma instead of icomma fixes the problem.
> 
> Same here on the Mac: XeLaTeX and LualaTeX both halting forever in the middle of compilation with no console output of any sort (and XeLaTeX consuming about 98% of processor ressources).
> 
> This seems to be an incompatibility between icomma on one hand, and XeLaTeX and LuaLaTeX on the other hand. Lucida isn't involved here, exactly the same happens for other Unicode math fonts (I tried with Cambria Math).

Ah ha, makes a lot of sense. I didn't think trying with another Unicode math font.

> The problem seems to be known, and for LuaLaTeX a package lualatex-math (included in TL 2015) takes care of it; see §5.9 of lualatex-math.pdf. For XeLaTeX things are cured by including the relevant code in your preamble, BEFORE loading icomma.
> 
> Like that:
> 
> 
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage{unicode-math}
> \setmathfont{Lucida Bright Math OT}
> 
> \makeatletter
> \AtEndOfPackageFile * { icomma } {
>  \tl_replace_once:Nnn \@begindocumenthook {
> \mathchardef \mathcomma \mathcode `\, }{
>    \@@_set_mathchar:NN \mathcomma \,
>  }
> }
> \makeatother
> \usepackage{icomma}
> 
> \begin{document}
> 
> \begin{displaymath}
> x = y + 2,
> \end{displaymath}
> 
> \end{document}
> 
> 
> Works on my setup.

Same here. I should add that the snippet of code should also appear AFTER loading unicode-math otherwise one gets that \AtEndOfPackageFile is an undefined control sequence.

Should a bug report be filed against XeLaTeX and/or icomma?

v.

> 
> Hope this helps,
> 
> Bruno Voisin




More information about the lucida mailing list