CVSROOT:        /sources/auctex
Module name:    auctex
Changes by:     David Kastrup <dak>     06/08/15 10:24:26

Index: latex/preview.dtx
===================================================================
RCS file: /sources/auctex/auctex/preview/latex/preview.dtx,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -b -r1.118 -r1.119
--- latex/preview.dtx   25 Jul 2006 17:41:56 -0000      1.118
+++ latex/preview.dtx   15 Aug 2006 10:24:26 -0000      1.119
@@ -1,26 +1,26 @@
 % \iffalse
-%%     preview.dtx for extracting previews from LaTeX documents.
+%%    The preview style for extracting previews from LaTeX documents.
 %%     Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
-%%
-%%     Copyright (C) 2001, 2002, 2003, 2004, 2005,
-%%                   2006 Free Software Foundation
-%%
-%%     This program is free software; you can redistribute it and/or modify
-%%     it under the terms of the GNU General Public License as published by
-%%     the Free Software Foundation; either version 2 of the License, or
-%%     (at your option) any later version.
-%%
-%%     This program is distributed in the hope that it will be useful,
-%%     but WITHOUT ANY WARRANTY; without even the implied warranty of
-%%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-%%     GNU General Public License for more details.
-%%
-%%     You should have received a copy of the GNU General Public License
-%%     along with this program; if not, write to the
-%%     Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
-%%     Boston, MA 02110-1301  USA
+%
+%     Copyright (C) 2001, 2002, 2003, 2004, 2005,
+%                   2006 Free Software Foundation
+%
+%     This program is free software; you can redistribute it and/or modify
+%     it under the terms of the GNU General Public License as published by
+%     the Free Software Foundation; either version 2 of the License, or
+%     (at your option) any later version.
+%
+%     This program is distributed in the hope that it will be useful,
+%     but WITHOUT ANY WARRANTY; without even the implied warranty of
+%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%     GNU General Public License for more details.
+%
+%     You should have received a copy of the GNU General Public License
+%     along with this program; if not, write to the
+%     Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+%     Boston, MA 02110-1301  USA
 % \fi
-% \CheckSum{1672}
+% \CheckSum{1656}
 % \GetFileInfo{preview.sty}
 % \date{\filedate}
 % \author{David [EMAIL PROTECTED]
@@ -438,11 +438,11 @@
 [EMAIL PROTECTED] #2#4 $}} [EMAIL PROTECTED] #1 #2${#1}
 \begingroup \catcode`\_=12
 [EMAIL PROTECTED]@version $Name:  $ [EMAIL PROTECTED]@empty
[EMAIL PROTECTED]@version CVS-$Revision: 1.118 $ \endgroup \else
[EMAIL PROTECTED]@version CVS-$Revision: 1.119 $ \endgroup \else
   \def\next release_{} \lccode`\_=`.
   \edef\next{\lowercase{\endgroup
     [EMAIL PROTECTED]@version}}} \next \fi
[EMAIL PROTECTED] $Date: 2006/07/25 17:41:56 $
[EMAIL PROTECTED] $Date: 2006/08/15 10:24:26 $
 \edef\next{\noexpand\ProvidesPackage{preview}%
   [\next\space [EMAIL PROTECTED] (AUCTeX/preview-latex)]}
 \next
@@ -704,7 +704,7 @@
    \egroup
    [EMAIL PROTECTED]
        [EMAIL PROTECTED] [EMAIL PROTECTED] \lineskiplimit\z@
-       [EMAIL PROTECTED]
+       [EMAIL PROTECTED]
        \nointerlineskip
        [EMAIL PROTECTED]@[EMAIL PROTECTED] to\z@
        \unvbox\z@
@@ -1250,25 +1250,22 @@
 [EMAIL PROTECTED]
   {\ifhmode\unskip\fi}
 %    \end{macrocode}
-% Let the output routine throw everything gathered regularly away.
-% Start with all float boxes, continue with output box, pack
-% everything afloat from [EMAIL PROTECTED] back into [EMAIL PROTECTED]
-% We don't do this if the output routine is special since there are
-% circumstances where this will cause complaints about lost floats.
-%
-% This code has now been disabled since it might confuse \LaTeX\ and
-% was rather crude.  We now rely on disabling \cmd{\shipout} alone.
-%    \begin{macrocode}
-% \output{%
-%   [EMAIL PROTECTED]@x}%
-%   [EMAIL PROTECTED]@cclv
-%   \ifnum\outputpenalty<[EMAIL PROTECTED] \else  [EMAIL PROTECTED]
-%     [EMAIL PROTECTED]
-%     [EMAIL PROTECTED]@[EMAIL PROTECTED]
-%     [EMAIL PROTECTED]@empty
-%   \fi
-%   [EMAIL PROTECTED]
+% We use the normal output routine, but hijack it a bit for our
+% purposes to preserve \cmd{\AtBeginDvi} hooks and not get previews
+% while in output: that could become rather ugly.
+%
+% The main work of disabling normal output relies on a \cmd{\shipout}
+% redefinition.
+% [EMAIL PROTECTED]
+%    \begin{macrocode}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+\output{%
+  [EMAIL PROTECTED]
+  [EMAIL PROTECTED]@empty
+  [EMAIL PROTECTED]
 %    \end{macrocode}
+% \end{macro}
 % [EMAIL PROTECTED]
 %   Then we have some document info that style files might want to
 %   output.
@@ -1821,3 +1818,9 @@
 %<driver> \end{document}
 %    \end{macrocode}
 % \Finale{}
+% \iffalse
+% Local Variables: 
+% mode: doctex
+% TeX-master: "preview.drv"
+% End: 
+% \fi


_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to