[XeTeX] underline problem in arabxetex

François Charette firmicus at ankabut.net
Fri May 23 10:18:01 CEST 2008


Mehdi Omidali a écrit :
> There is a problem with underline in math mode with arabxetex. I comiled the
> following lines
>
>      \documentclass{article}
>      \usepackage{arabxetex}
>      \begin{documnet}
>      \begin{farsi}
>      $$\underline{I}$$
>      \end{farsi}
>      \end{document}
> and got the following error:
> ! Missing $ inserted.
> <inserted text> 
>                 $
> l.5 $$\underline{I}
>                    $$
> I've inserted a begin-math/end-math symbol since I think
> you left one out. Proceed, with fingers crossed.
>
> ! Missing } inserted.
> <inserted text> 
>                 }
>
>   
You need to encapsulate such insertions within \LR{} or \textroman{} :

     \begin{farsi}
     \LR{$$\underline{I}$$}
     \end{farsi}

Sorry if this is perhaps not clear in the documentation.

FC



More information about the XeTeX mailing list