[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] preview-latex works with latex, but not with pdflatex
From: |
Søren Raunsbæk Jørgensen |
Subject: |
[Bug-AUCTeX] preview-latex works with latex, but not with pdflatex |
Date: |
Thu, 9 Oct 2008 13:36:59 +0200 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
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] preview-latex works with latex, but not with pdflatex,
Søren Raunsbæk Jørgensen <=