5

Today, After updating Miktex system, I have trouble with error \scriptfont is undefined. So I tried to reinstall Miktex 2.9.4813 (32 bit version). Everything OK, but again after updating, problem is back. I see, that this update related for example file fontspec, amsmath and so on. Does anyone have a similar problem as me?

Texlipse Console:

running: C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\xelatex.exe -synctex=1 -     interaction=nonstopmode --src-specials main.tex --enable-write18 
xelatex.exe> This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9)
...
xelatex.exe> ! \textfont 173 is undefined (character ???).
xelatex.exe> l.126           \item $V_{OH}(3.3V)>V_{IH}(5V)$
xelatex.exe>                                                ,
xelatex.exe> ! \textfont 53 is undefined (character ???).
xelatex.exe> l.126           \item $V_{OH}(3.3V)>V_{IH}(5V)$
xelatex.exe>                                                ,
xelatex.exe> [395]
xelatex.exe> ! \textfont 117 is undefined (character ???).
xelatex.exe> l.127           \item $V_{OL}(3.3V)<V_{IL}(5V)$
xelatex.exe>                                                .
xelatex.exe> ! \textfont 176 is undefined (character ???).
xelatex.exe> l.127           \item $V_{OL}(3.3V)<V_{IL}(5V)$
xelatex.exe>                                                .
xelatex.exe> <use  "../src/CES/img/level_shifting_MOSFET.pdf" >
xelatex.exe> ! \textfont 100 is undefined (character ???).
xelatex.exe> l.153         $V_{OH}(3.3V)<V_{IH}(5V)$
...
xelatex.exe> 
xelatex.exe> ! \textfont 52 is undefined (character ???).
xelatex.exe> l.153         $V_{OH}(3.3V)<V_{IH}(5V)$
...
xelatex.exe> 
xelatex.exe> ! \scriptscriptfont 108 is undefined (character ???).
xelatex.exe> l.153 ...tím $$V_{GS_{th_{max}}}<V_{OH_{min}}.$$

MWE: I came to the conclusion that the problem is with the font in mathematical environment.

\documentclass{book}                               
 \usepackage[log-declarations=false]{xparse} 
 \usepackage{xltxtra} 
 \usepackage{fontspec} 
    \setmainfont[Mapping=tex-text,Numbers={OldStyle,Proportional}]{Calibri} 
    \setsansfont[Mapping=tex-text,Numbers={OldStyle,Proportional}]{Candara}
    \setmonofont[Numbers=OldStyle]{Consolas}

 \usepackage{ifthen}                     
 \usepackage{amsmath, amsthm, amssymb, amsfonts, amsbsy} 
 \usepackage{accents}                    
 \usepackage{unicode-math}   
    \setmathfont{Cambria Math}  

\begin{document}   
\chapter{Chapter 1}
  \section{Section 1}
     $b_{i,j}$
\end{document}  

I see another suspicious warning:

  • Couldn't open font map file "kanjix.map"

This warning came after the update.

Same difficulties are discussed in this post

  • 1
    I think you are not the only one having this problem... See Updating MiKTeX: again errors. – karlkoeller Jun 30 '13 at 6:03
  • 3
    I can reproduce the problem. TL13 doesn't give an error but a suspicious missing character message. It looks like an engine bug. @KhaledHosny could probably say more. I have sent a message to the xetex mailing list. – Ulrike Fischer Jun 30 '13 at 10:08
  • 2
    It indeed seems to be the same problem as discussed in Updating MiKTeX: again errors. In the preamble of the MWE you just need the \usepackage{unicode-math} and \setmathfont{Cambria Math} to reproduce the problem. It also does not work with lualatex, so I'd rather suspect it to be a problem with unicode-math!? – dpprdan Jul 1 '13 at 8:17
  • 2
    FWIW: I can also reproduce the problem with XITS Math. – dpprdan Jul 1 '13 at 8:30
  • 1
    @dapperdan: Are you sure that you get the same error with lualatex? Or only an error about Umathcode? In the second case: check the archive of the miktex mailing. I have described there what to do to get around this problem. – Ulrike Fischer Jul 2 '13 at 12:04