Closed phren0logy closed 14 years ago
I don't use preview-latex much, so I'm not sure what's happening. You know that preview-latex is not a document viewer, right? It's not meant to replace Preview.app or Skim. It's meant to render figures and equations directly in your tex buffer, in a snippet-like format. So if your document has no math or figures in it, and no \section{} headings, then nothing will show up.
I tried activating preview-latex on the sample document that comes with the package (it's called circ.tex) and it worked: pictures and equations, etc, showed up rendered in the buffer. (The dark theme I use in the starter-kit made it hard to see the results, but they were there all right.) Do you still have a problem when you generate a preview with the sample document with C-c C-p C-d?
The first part is purely my own ignorance. In reading some of the auctex docs, I wrongly assumed that preview-latex was the correct command. Thanks for setting me straight. I usually use Skim.
That said, I get the very same results with C-c C-p C-d. No preview, and same error generated. Full log follows:
Running `Preview-LaTeX' on `cv_2010-08-05' with ``xelatex "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" cv_2010-08-05.tex''
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
No auxiliary output files.
(./cv_2010-08-05.tex
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size12.clo))
(/Users/andrewnanton/Library/texmf/tex/latex/shading.sty)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1enc.def)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetex-def/xetex.def))
(./cv_2010-08-05.aux)
(/Users/andrewnanton/.emacs.d/src/auctex/latex/preview.sty
(/Users/andrewnanton/.emacs.d/src/auctex/latex/prtightpage.def)
(/Users/andrewnanton/.emacs.d/src/auctex/latex/prauctex.def
No auxiliary output files.
(/Users/andrewnanton/.emacs.d/src/auctex/latex/prauctex.cfg))
(/Users/andrewnanton/.emacs.d/src/auctex/latex/prfootnotes.def)
Preview: Fontsize 12pt
Preview: PDFoutput 1
) )
No pages of output.
Transcript written on cv_2010-08-05.log.
Preview-LaTeX finished with nothing to show at Fri Aug 6 11:36:09
LaTeX: LaTeX found no preview images
Yes, C-c C-p C-d is the shortcut for the preview-latex command, as I was saying above --- generating a preview of math and images inside your emacs buffer. If you run this command on the circ.tex document that comes with the preview-latex package, or even just any latex document with some equations in it, it should behave properly and replace the codes for the symbols with images of them.
If you want to test whether xelatex is working, you should run the generic compile command in auctex. This is C-c C-c. This should run xelatex on the document. If it compiles without errors, do C-c C-c again and it should ask you (in the minibuffer) to whether to open the file in Skim. Does this work?
Apologies for misunderstanding. C-c C-c compiles, and C-c C-c preview works without an issue. Thanks for your help; I will be sure to review the documentation more thoroughly in the future.
No problem — the whole AucTeX thing can be very confusing, and "Preview LaTeX" certainly sounds like it should give you a preview of your document. You can explore some of the relevant LaTeX commands and options by looking in the "Command" menu that is present in the menubar when you edit a tex file.
When running auctex, the end of the .log file is as follows:
(Note: I edited this, which originally was related to xetex; that issue was spuriously caused by asking auctex to cache the preamble)