Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

preview-latex + beamer +

6 views
Skip to first unread message

Giacomo Boffi

unread,
Mar 23, 2011, 12:54:21 PM3/23/11
to
[xpost+f/up]

i'm using xemacs 21.5.29 with auctex 11.86 + preview patches

i have two files
,----[ pollo.tex ]
\documentclass{article}
\usepackage{fontspec}
\setsansfont[Mapping=tex-text,Numbers=Lining]{Candara}
\usepackage{graphicx}
\begin{document}
\[\includegraphics{sin}\]
tet
\[\alpha\sin\sin{n}\]
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% End:
`----

,----[ pullo.tex ]
\documentclass{beamer}
\usepackage{fontspec}
\setsansfont[Mapping=tex-text,Numbers=Lining]{Candara}
\usepackage{graphicx}
\usepackage[displaymath,textmath,sections]{preview}
\PreviewEnvironment*{frame}
\begin{document}
\begin{frame}
\[\includegraphics{sin}\]
tet
\[\alpha\sin\sin{n}\]
\end{frame}\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% End:
`----

the difference being that the second is intended to produce slides.

as you can see, the files must be processed with xelatex

with the first file, i can do a C- C-p C-d and have the previews
inserted in my buffer

with the second file, preview-latex cannot find its stuff

the difference is that in the first case preview-latex uses the
sequence of internal commands

Preview-LaTeX -> Preview-PDF2DSC -> Preview-Ghostscript

while in the second case it uses

Preview-LaTeX -> Preview-DviPS -> error

so that an error is due, as Preview-DviPS can't find a dvi, because
xelatex produces a pdf

i can't understand why preview-latex does not use Preview-PDF2DSC in
both cases and what should i do to overcome this problem

Followup-To: comp.emacs
--
MMAX>>Il vero problema � che non hai i culo peloso, non armo.
IsaZ> Senti, non � che potresti mettere delle note a pi� di pagina?

0 new messages