sebschub/FontPro — Issue #9: endless loop for unkown math symbols
Author: pospiech
Created: 2011-12-24 08:19:08+00:00
State: open

The following code

\documentclass[]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{amsmath} %
\usepackage[%
onlytext, % only change the text fonts
sansmath, % provide math version sans and sansbold
]{MyriadPro}
\begin{document}
%\tracingall
\begin{equation}
\oiint
\end{equation}
\end{document}

lets pdflatex go into an endless loop. It happens when a normal math command is executed but unknown and MyriadPro is called with onlytext and sansmath, such that it should not touch the math command at all.

Using \tracingall one can see that the part that is executed endlessly is this one - however I do not know in which package this code is located.

is@range #1-#2@nil ->if >#2expandafter check@single else expandafter check@rang
e fi
#1<-5
#2<->
{if: (level 6) entered on line 10}
{true}
{expandafter}
{else: if (level 6) entered on line 10}
{fi: if (level 6) entered on line 10}

check@single #1>#2<#3@nnil ->def reserved@f {extract@rangefontinfo <#3@nnil }if
dim f@size p@ =#1p@ set@simple@size@args #2<#3@nnil execute@size@function sizef
n@info ifx external@font @empty else let reserved@f @empty fi fi reserved@f
#1<-5
#2<-
#3<-6><7><8><9><10><12>gen*cmr<10.95>cmr10<14.4>cmr12<17.28><20.74><24.88>cmr17
<-*>@nil <
{def}
{changing reserved@f=relax}
{into reserved@f=macro:->extract@rangefontinfo <6><7><8ETC.}
{ifdim: (level 6) entered on line 10}

f@size ->8
{false}
{fi: ifdim (level 6) entered on line 10}

reserved@f ->extract@rangefontinfo <6><7><8><9><10><12>gen*cmr<10.95>cmr10<14.4
>cmr12<17.28><20.74><24.88>cmr17<-*>@nil <@nnil

extract@rangefontinfo #1<#2>->is@range #2->@nil #2>
#1<-
#2<-6