I don't have those fonts and couldn't reproduce the error when I tried
switching to other fonts so I can't trace the exact cause of the
error, but the error is not entirely surprising, unicode-math does
document that it must be called after amsmath

I get no error from the file below (using random TeX  Gyre fonts) do
you just get the error with the fonts you used, or can you reproduce
with fonts in texlive?

David

\documentclass[a4paper]{article}
%\usepackage{xltxtra}
\usepackage{xgreek}
\usepackage{unicode-math}
\usepackage{amsmath}
\begin{document}
\setmainfont[Mapping=tex-text,Ligatures=Common]{TeX Gyre Termes}
\setsansfont[Mapping=tex-text,Scale=MatchLowercase]{TeX Gyre Heros}
\setmonofont[Scale=MatchLowercase]{TeX Gyre Cursor}
\setmathfont[Scale=MatchUppercase]{Asana Math}
\begin{displaymath}
\alpha^{\nu}=\underbrace{\alpha\cdot\alpha\cdots\alpha\cdot\alpha}_{\text{$\nu$
παράγοντες}}.
\end{displaymath}
\end{document}

On 12 April 2018 at 17:57, Apostolos Syropoulos <asyropou...@yahoo.com> wrote:
> Hello,
>
> I have this code
>
> documentclass[a4paper]{article}
> \usepackage{xltxtra}
> \usepackage{xgreek}
> \usepackage{unicode-math}
> \usepackage{amsmath}
> \begin{document}
> \setmainfont[Mapping=tex-text,Ligatures=Common]{Garamond Premier Pro}
> \setsansfont[Mapping=tex-text,Scale=MatchLowercase]{Myriad Pro}
> \setmonofont[Scale=MatchLowercase]{Courier}
> \setmathfont[Scale=MatchUppercase]{Asana Math}
> \begin{displaymath}
> \alpha^{\nu}=\underbrace{\alpha\cdot\alpha\cdots\alpha\cdot\alpha}_{\text{$\nu$
> παράγοντες}}.
> \end{displaymath}
> \end{document}
>
> I try to process it with XeLaTeX but it fails:
>
> ! TeX capacity exceeded, sorry [semantic nest size=500].
> <recently read> {
>
> l.14 ...{\alpha\cdot\alpha\cdots\alpha\cdot\alpha}
>                                                   _{\text{$\nu$
> παράγοντες}}.
> No pages of output.
>
> When I have
>
> \usepackage{amsmath}
> \usepackage{unicode-math}
>
> It compiles just fine. What is wrong? Any ideas?
>
> A.S.
>
> ----------------------
> Apostolos Syropoulos
> Xanthi, Greece
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to