Problem of amsart and microtype under xelatex

Problem of amsart and microtype under xelatex

Would anyone know what is the problem of the interaction of amsart and microtype under xelatex -- that does not happen under latex, pdflatex or lualatex?

With the file:

\documentclass{amsart}
\usepackage{microtype}

\begin{document}

 \begin{abstract}
    This is a test.
 \end{abstract}
 \end{document}

I get the not so clear message:

(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-LatinModernRoman.cfg)
! Bad character code (-815).
<to be read again> 
               h
l.6      \begin{abstract}

답변1

There is imho a bug in microtype. When fontspec is not loaded it retrieve the wrong glyph slots in some cases and this leads to errors. This is not related to amsmart. You would get the same error with article, if you use \scshape. I already made a bug report. As a work-around I would advise to load fontspec:

\documentclass{amsart}
\usepackage{fontspec}
\usepackage{microtype}

\begin{document}

 \begin{abstract}
    This is a test.
 \end{abstract}
 \end{document}

답변2

If you take a copy of

/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-LatinModernRoman.cfg

and save it in the directory with your document then comment out lines 192-196 so it looks like.

%    /one.oldstyle   = {100,100},
%    /two.oldstyle   = { 50, 50},
%    /three.oldstyle = { 30, 80},
%    /four.oldstyle  = { 50, 50},
%    /seven.oldstyle = { 50, 80},

Then your document runs without error.

관련 정보