Package: preview-latex-style Version: 0.9.1-1 Severity: normal Tags: patch *** Please type your report below this line ***
The problem: When I open the file below in Emacs and generate previews by pressing 'C-c C-p C-d' then the equation environment disappears and I see (0.1) A=B instead. However, I would expect to see '(1.1)' instead of '(0.1)' since that is what I see when I run latex on the file and view the result. Passing also the option 'sections' to preview.sty the equation number is displayed correctly as '(1.1)'. The sample file: \documentclass{amsart} \usepackage[displaymath,textmath]{preview} \numberwithin{equation}{section} \begin{document} \section[$\pi$ stuff]{A section about $\pi$ stuff} \label{sec:section} Some stuff. \begin{equation} \label{eq:1} A = B \end{equation} \end{document} I have reported this bug to preview-latex-style instead of preview-latex because I think the bug is in the prauctex.cfg file of the former package. Patch: --- /usr/share/texmf/tex/latex/preview/prauctex.cfg 2005-04-03 15:28:16.000000000 +0200 +++ prauctex.cfg 2005-07-13 16:35:25.784731144 +0200 @@ -57,7 +57,7 @@ \PreviewMacro*\thanks \PreviewMacro*[][#1{}]\caption [EMAIL PROTECTED]@[EMAIL PROTECTED]@startsection}{% - [EMAIL PROTECTED] + [EMAIL PROTECTED] \PreviewMacro*\index \endinput %% The changed line caused (in the original) all sectioning commands to be dropped (whithout the 'sections' option) and its arguments (the title and the short version of the title) to be typesetted. In this way, the sectioning commands don't increase the appropriate counter. The modification puts '{}' after the sectioning commands instead of dropping them: i.e. they produce an empty heading. The original arguments (the title and its short version) are typeset as in the previous case, so we have previews in titles. (To be more precise: the sectioning commands expand to a [EMAIL PROTECTED] macro and in fact the behaviour of this macro is changed.) Whith the option 'sections', the changed line is always ignored, so our modification has no effect. Best wishes, Gabor Braun -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (650, 'testing'), (600, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9.20041228 Locale: LANG=hu_HU.iso88592, LC_CTYPE=hu_HU.iso88592 (charmap=ISO-8859-2) (ignored: LC_ALL set to hu_HU.iso88592) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]