[XeTeX] Emacs (X11) and XeTeX

Ralf Stubner ralf.stubner at physik.uni-erlangen.de
Sat Feb 3 14:39:20 CET 2007

Stephen Moye <stephenmoye at mac.com> writes:

>>>> (add-to-list 'LaTeX-command-style
>>>> 	     '("\\`fontspec\\'" "xelatex %S%(PDFout)"))
> in my .emacs file, and got this error message from emacs (I'm using  
> emacs 22):
> (emacs)
> Loading /usr/local/share/emacs/site-lisp/tex-site.el (source)...done
> An error has occurred while loading `/Users/smoye/.emacs':
> Symbol's value as variable is void: LaTeX-command-style

Do you actually use AUCTeX? LaTeX-command-style is a AUCTeX feature. A
save way is to add this to the LaTeX-mode-hook. I use something like

(add-hook 'LaTeX-mode-hook
	  (lambda nil
            (add-to-list 'LaTeX-command-style '("fontspec" "xelatex"))


More information about the XeTeX mailing list