[XeTeX] \mathrm undefined

Shunichi Amano s-amano at jaist.ac.jp
Sat Jan 27 17:59:02 CET 2007

Thanks for reply.

The following may be minimal:

\usepackage{fontspec, xunicode}
$\rm S$

If $\rm S$ is put outside the abstract environment or article.cls is  
used, the file compiles without error but with a very weird  
unreadable result.

I think the installation of xetex itself is fine because I have been  
able to compile some documents without error.

log of the above example:

This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,  
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,  
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,  
norsk, polis
h, portuges, romanian, russian, slovak, slovene, spanish, swedish,  
turkish, noh
yphenation, welsh, loaded.
Document Class: amsart 2004/08/06 v2.20
For additional information on amsmath, use the `?' option.
fontspec.cfg loaded.
(/usr/local/teTeX/share/texmf-local/tex/xelatex/xunicode.sty) (./ 

! LaTeX Error: Math alphabet identifier \mathrm is undefined in math  
version `n

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.12 $\rm
? x
No pages of output.
Transcript written on test.log.

Shunichi Amano

On 2007/01/27, at 16:07, Will Robertson wrote:

> On 27/01/2007, at 22:35 , Shunichi Amano wrote:
>> I recently upgraded xetex and fontspec, and tried to compile a
>> document only to get the following error:
>> ! LaTeX Error: Math alphabet identifier \mathrm is undefined in math
>> version `n
>> ormal'.
> Hmmm, I haven't heard of this problem before. Can you create a
> minimal example that demonstrates the problem? That is, remove as
> many packages and as much of the document as possible such that the
> error still occurs, and then I can compile your example and check out
> what's going on.
> Cheers,
> Will
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex

More information about the XeTeX mailing list