add tag
निरंजन
The following code fails:

```
\documentclass{article}
\usepackage{expex}
\usepackage{unicode-math}% Works without this

\begin{document}
\pex<ex>
\a<foo>\begingl
\gla  foo//
\glb  foo//
\glft foo//
\endgl
\xe
\end{document}
```

After removing `unicode-math` it works perfectly though. It is because of the old syntax of `expex` which takes an argument with `<>`. But, as of now there isn't any package producing such a good output, so I have to stick to it. Is there any way I can load `unicode-math`, but make it ignore this case? I need `unicode-math` for using an OpenType font in math mode. I didn't find any alternative for it, is there any alternative available which I missed?
Top Answer
Alan
The `unicode-math` package defines a `\gla` command at the beginning of the document. This macro is created by ExPex when the `glstyle` key is set, so it is sufficient to simply reset the key at the beginning of the document:

```
\documentclass{article}
\usepackage{expex}
\usepackage{unicode-math}
\AtBeginDocument{\lingset{glstyle=wrap}}
\begin{document}

\pex<ex>
\a<foo>\begingl
\gla  foo//
\glb  foo//
\glft foo//
\endgl
\xe
\end{document}
```
![Screenshot 2023-12-05 at 10.13.45 AM.png](/image?hash=0bf6b85d4143a68363318b383d97609010fb2a50b5eaa58e208d127a0929b5ed)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.