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
\textfont 173looks particularly suspicious; there's something wrong in your code. – egreg Jun 29 '13 at 22:24accentswithunicode-math, but not the ones you get (TeX Live 2013). – egreg Jun 29 '13 at 22:46\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 withunicode-math!? – dpprdan Jul 01 '13 at 08:17Umathcode? 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 02 '13 at 12:04Umathcodeerror. Thanks for pointing that out. With your workaround (I guess you are referring to this post), lualatex works for me again. – dpprdan Jul 02 '13 at 13:21