Hi
I run auctex 11.84-0ubuntu1.
I have some trouble with preview-latex when I use pdflatex. The attached
file dummy.tex is a minimal latex document illustrating my problem.
You can preview dummy.tex as well as compile it for both latex and
pdflatex. (C-c C-c ; C-c C-p C-d) However in dummy.tex the option to the
package color is deliberately set wrong to dvips. Preview-latex will not
preview anything, when setting the color option right to pdftex. (C-c
C-p C-c C-d ; C-c C-p C-d) If you instead change the preview option to
dvips and run latex (not pdflatex) everything will preview and compile
correct.
Note that if I change the command note to only use parbox and not
fcolorbox in dummy.tex the behaviour is still the same. If I just add
"\usepackage[pdftex]{hyperref}" or "\usepackage[pdftex]{xcolor}" to
dummy.tex, nothing will be previewed even though I do not use anything
from the package.
--
Søren Jørgensen
\documentclass[a4paper,oneside,11pt]{article}
\usepackage[pdftex,displaymath]{preview}
\usepackage[dvips]{color}
%\usepackage[pdftex]{color}
\newcommand{\note}[1]{
\fcolorbox{red}{yellow}{\parbox{\textwidth}{#1}}
% \parbox{\textwidth}{#1}
}%
\PreviewMacro[!]\note
\begin{document}
ABC
\begin{equation}
y=x
\end{equation}
Just some text and then
\note{This is a note about the text.}
followd by more text.
\end{document}
%%% Local Variables:
%%% mode: TEX-PDF
%%% TeX-master: t
%%% End:
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex