[XeTeX] escaping \ and $

Pablo Rodríguez oinos at web.de
Sun Jun 18 19:11:40 CEST 2006


Jonathan Kew wrote:
> On 18 Jun 2006, at 5:42 pm, Pablo Rodríguez wrote:
> 
>> For some strange reason, I get errors in the following file:
>>
>> \documentclass[12pt]{article}
>> \usepackage{fontspec}
>> \setromanfont[Mapping=tex-text]{Gentium}
>> \begin{document}
>> Price 25\$\ or 25€. Romeo \&\ Juliet. Backslash (\\{})
>> \end{document}
>>
>> '&' is escaped right, but '\' and '$' aren't.
>>
>> Am I missing something or is it a bug in the Linux version?
> 
> You're missing the xunicode package, which should fix \$ for you.  
> (Though I must admit I don't really understand why \$ misbehaves in  
> the way it does, in the absence of xunicode; something about LaTeX  
> font encodings, I guess.)

Thanks, for your help.

> Is \\ supposed to generate a backslash? I thought it was used for  
> other things such as forced line breaks.

My fault. I did know that, but I forgot.

Thanks,


Pablo


More information about the XeTeX mailing list