[OS X Emacs] EOF error running XeTeX+AUCTeX+Emacs

pdfinn at uwm.edu pdfinn at uwm.edu
Sat Jan 12 20:24:43 EST 2008


Thanks Pete for the code you sent setting TeX-command-list to include XeTeX---it
looks like what I need (though I'm starting a new thread at this point).  I've
worked the code quoted below into my .emacs, but when I run a XeTeX command
through AUCTeX on a file I get the following:

Running `XeTeX' on `foobar' with ``%`xetex\nonstopmode%' foobar.tex''
/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of file

XeTeX exited abnormally with code 2 at Sat Jan 12 16:17:29

All the quotes look balanced, any ideas?

Thanks,
Peter

At Wed, 9 Jan 2008 10:25:43 +0100,
Peter Dyballa <Peter_Dyballa at Web.DE> wrote:
> 
>  From my customisation section, a bit edited to be readable (removing  
> newlines and reducing multiple spaces to one will make it fit):
> 
>   '(TeX-command-list (quote (
>      ("XeTeX" "%`xetex%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode  
> context-mode texinfo-mode ams-tex-mode) :help "Run XeLaTeX with  
> xdvipdfmx driver")
>      ("XeTeXx" "%`xetex -output-driver=xdv2pdf%(mode)%' %t" TeX-run- 
> TeX nil (plain-tex-mode context-mode texinfo-mode ams-tex-mode) :help  
> "Run XeTeX with xdv2pdf driver")
>      ("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil (latex-mode  
> doctex-mode ams-tex-mode) :help "Run XeLaTeX with xdvipdfmx driver")
>      ("XeLaTeXx" "%`xelatex -output-driver=xdv2pdf%(mode)%' %t" TeX- 
> run-TeX nil (latex-mode doctex-mode ams-tex-mode) :help "Run XeLaTeX  
> with xdv2pdf driver")
>      ("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil  
> (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain TeX")
>      ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex- 
> mode) :help "Run LaTeX")
>      ("LaTeXesc" "%`%l-shell-escape%(mode)%' %t" TeX-run-TeX nil  
> (latex-mode doctex-mode) :help "Run LaTeX with enabled \\write18 
> {SHELL COMMAND}")
>      ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo- 
> mode) :help "Run Makeinfo with Info output")
>      ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil  
> (texinfo-mode) :help "Run Makeinfo with HTML output")
>      ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX  
> nil (ams-tex-mode) :help "Run AMSTeX")
>      ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX  
> nil (context-mode) :help "Run ConTeXt once")
>      ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context- 
> mode) :help "Run ConTeXt until completion")
>      ("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive nil  
> (context-mode) :help "Clean temporary ConTeXt files")
>      ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
>      ("View" "%V" TeX-run-discard t t :help "Run Viewer")
>      ("Print" "%p" TeX-run-command t t :help "Print the file")
>      ("Queue" "%q" TeX-run-background nil t :help "View the printer  
> queue" :visible TeX-queue-command)
>      ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help  
> "Generate PostScript file")
>      ("Index" "makeindex %s" TeX-run-command nil t :help "Create  
> index file")
>      ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help  
> "Check LaTeX file for correctness")
>      ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil  
> t :help "Spell-check the document")
>      ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete  
> generated intermediate files")
>      ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help  
> "Delete generated intermediate and output files")
>      ("Other" "" TeX-run-command t t :help "Run an arbitrary  
> command"))))
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx



More information about the MacOSX-Emacs mailing list