[XeTeX] Letterly template broken

Khaled Hosny khaledhosny at eglug.org
Wed Nov 10 13:56:15 CET 2010


On Wed, Nov 10, 2010 at 12:38:25PM +0000, Kai Hendry wrote:
> Hi there,
> 
> I run a free service at http://letterly.com/ and I've recently seen
> the service break. It probably is due to some xetex update, so I hope
> you can help.
> 
> 
> \documentclass[british,a4paper]{letter}
> \usepackage{fontspec}
> \defaultfontfeatures{Mapping=tex-text}
> \usepackage{xunicode}
> \setmainfont{Charis SIL}
> \usepackage{babel}
> \begin{document}
> 
> \address{
> 256 Edgware road\\
> W2 1DS
> }
> 
> \letter{
> Barclays\\
> Woking
> }
> 
> \signature{Kai Hendry}
> 
> \opening{George}
> 
> Hello there
> 
> \closing{Sincerely,}
> 
> \end{document}
> 
> 
> 
> 
> It seems to choke on the first lines:
> 
> $ xetex letter.tex
> This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
>  restricted \write18 enabled.
> entering extended mode
> (./letter.tex
> ! Undefined control sequence.
> l.1 \documentclass
>                   [british,a4paper]{letter}
> ?

That is a LaTeX file, so you should use `xelatex` instead of `xetex`.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


More information about the XeTeX mailing list