summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/preview/README83
-rw-r--r--Master/texmf-dist/doc/latex/preview/preview.pdfbin111459 -> 111594 bytes
-rw-r--r--Master/texmf-dist/source/latex/preview/preview.drv22
-rw-r--r--Master/texmf-dist/source/latex/preview/preview.dtx113
-rw-r--r--Master/texmf-dist/source/latex/preview/preview.ins22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prauctex.cfg24
-rw-r--r--Master/texmf-dist/tex/latex/preview/prauctex.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prcounters.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/preview.sty78
-rw-r--r--Master/texmf-dist/tex/latex/preview/prfootnotes.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prlyx.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prshowbox.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prshowlabels.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prtightpage.def22
-rw-r--r--Master/texmf-dist/tex/latex/preview/prtracingall.def22
-rw-r--r--Master/texmf-dist/tpm/preview.tpm8
16 files changed, 164 insertions, 362 deletions
diff --git a/Master/texmf-dist/doc/latex/preview/README b/Master/texmf-dist/doc/latex/preview/README
index 54eda0d17a1..0d0e8a80c04 100644
--- a/Master/texmf-dist/doc/latex/preview/README
+++ b/Master/texmf-dist/doc/latex/preview/README
@@ -1,39 +1,40 @@
-The preview.sty style file:
-
-This style file is part of the AUCTeX project with home page
-<URL:http://www.gnu.org/software/auctex>. The project page at
-<URL:http://savannah.gnu.org/projects/auctex> offers downloads and
-anonymous CVS access for cutting edge versions. It is part of
-AUCTeX's preview-latex module: since AUCTeX's download area at
-<URL:ftp://ftp.gnu.org/pub/gnu/auctex> is mirrored at
-CTAN:support/auctex, you can find preview-latex tarballs there, with
-separate README and INSTALL files. Older versions can be found at
-CTAN:support/preview-latex. Starting with AUCTeX 11.81, preview-latex
-will also be distributed as an integral part of AUCTeX, requiring no
-separate download. The unbundled preview.sty can be downloaded from
-CTAN:macros/latex/contrib/preview if required.
-
-While the primary focus of the package has been the support of editing
-in Emacs buffers augmented with preview images, its possible uses are
-not limited to that. The package extracts indicated pieces from a
-source file (typically displayed equations, figures and graphics) and
-typesets with their base point at the (1in,1in) magic location,
-shipping out the individual pieces on separate pages without any page
-markup. You can produce either DVI or PDF files, and options exist
-that will set the page size separately for each page. In that manner,
-further processing (as with Ghostscript or dvipng) will be able to
-work in a single pass.
-
-A flexible and convenient interface allows it to specify what commands
-and constructs should be extracted.
-
-Note: as opposed to previous versions, the \nofiles command is no
-longer called automatically except in AUCTeX mode. If you are working
-on original files and don't want to clobber the auxiliary files,
-you'll need to call \nofiles yourself.
-
-To install the preview style file on its own without fetching the
-entire preview-latex package, run
+The preview.sty style file
+==========================
+
+Purpose
+-------
+
+The main purpose of the preview package is the extraction of selected
+elements from a LaTeX source, like formulas or graphics, into separate
+pages of a DVI file. A flexible and convenient interface allows it to
+specify what commands and constructs should be extracted. This works
+with DVI files postprocessed by either Dvips and Ghostscript or
+dvipng, but it also works when you are using PDFTeX for generating PDF
+files.
+
+Current uses of the package include the preview-latex package for
+WYSIWYG functionality in the AUCTeX editing environment, generation of
+previews in LyX, as part of the operation of the ps4pdf and pst-pdf
+packages, the tbook XML system and some other tools.
+
+Availability
+------------
+
+The preview package is being developed along and distributed with
+AUCTeX. It can therefore be obtained as part of AUCTeX distribution
+files available at <URL:ftp://ftp.gnu.org/pub/gnu/auctex/> or its
+mirror at <CTAN:support/auctex>. CTAN also provides a standalone
+version at <CTAN:macros/latex/contrib/preview>. The project page at
+<URL:http://savannah.gnu.org/projects/auctex/> offers downloads and
+anonymous CVS access for cutting edge versions. For more information
+about the preview package please refer to the home page of AUCTeX at
+<URL:http://www.gnu.org/software/auctex/>.
+
+Installation
+------------
+
+To install the preview style file on its own without the entire AUCTeX
+package, run
tex preview.ins
If preview.ins happens to be missing, you can regenerate it by running
tex docstrip
@@ -49,10 +50,12 @@ location where LaTeX will be able to find them, generate the
documentation and have fun.
The license of the original file is the GPL which you'll find a copy
-of in the complete preview-latex distribution. The complete
-preview-latex distribution will also unpack and install the respective
-LaTeX files with an autoconf-supported mechanism, so you might
-consider using that.
+of in the complete AUCTeX distribution. The distribution will also
+unpack and install the respective LaTeX files with an
+autoconf-supported mechanism, so you might consider using that.
+
+Bug reporting
+-------------
Please report problems to <URL:mailto:bug-auctex@gnu.org>, including a
small example file which uses the \listfiles statement, and the
diff --git a/Master/texmf-dist/doc/latex/preview/preview.pdf b/Master/texmf-dist/doc/latex/preview/preview.pdf
index d2833b9bf02..59a0bcb37f8 100644
--- a/Master/texmf-dist/doc/latex/preview/preview.pdf
+++ b/Master/texmf-dist/doc/latex/preview/preview.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/preview/preview.drv b/Master/texmf-dist/source/latex/preview/preview.drv
index a62adfee204..76ec4291e9f 100644
--- a/Master/texmf-dist/source/latex/preview/preview.drv
+++ b/Master/texmf-dist/source/latex/preview/preview.drv
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\documentclass{ltxdoc}
\usepackage{preview}
\let\ifPreview\relax
diff --git a/Master/texmf-dist/source/latex/preview/preview.dtx b/Master/texmf-dist/source/latex/preview/preview.dtx
index 9f43906546f..e3961ba7a49 100644
--- a/Master/texmf-dist/source/latex/preview/preview.dtx
+++ b/Master/texmf-dist/source/latex/preview/preview.dtx
@@ -1,24 +1,26 @@
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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{1640}
+% \iffalse
+%% 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
+% \fi
+% \CheckSum{1664}
% \GetFileInfo{preview.sty}
% \date{\filedate}
% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}}
@@ -322,7 +324,8 @@
% \begin{description}
% \item[|*|] indicates an optional |*| modifier, as in
% |\includegraphics*|.
-% \item[|[|] indicates an optional argument in brackets. This syntax
+% \item[|[|]^^A]
+% indicates an optional argument in brackets. This syntax
% is somewhat baroque, but brief.
% \item[{|[]|}] also indicates an optional argument in brackets. Be
% sure to have encluded the entire optional argument specification
@@ -434,12 +437,12 @@
\NeedsTeXFormat{LaTeX2e} \def\reserved@a #1#2$#3:
#4${\xdef#1{\reserved@c #2#4 $}} \def\reserved@c #1 #2${#1}
\begingroup \catcode`\_=12
-\reserved@a\pr@version $Name: release_11_83 $ \ifx\pr@version\@empty
-\reserved@a\pr@version CVS-$Revision: 1.115 $ \endgroup \else
+\reserved@a\pr@version $Name: release_11_84 $ \ifx\pr@version\@empty
+\reserved@a\pr@version CVS-$Revision: 1.122 $ \endgroup \else
\def\next release_{} \lccode`\_=`.
\edef\next{\lowercase{\endgroup
\def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi
-\reserved@a\next $Date: 2006/05/25 19:28:52 $
+\reserved@a\next $Date: 2006/08/25 10:34:36 $
\edef\next{\noexpand\ProvidesPackage{preview}%
[\next\space \pr@version\space (AUCTeX/preview-latex)]}
\next
@@ -524,11 +527,14 @@
% Now \cmd{\pr@advise} needs its helper macro. In order to avoid
% recursive definitions, we advise only macros that are not yet
% advised. Or, more exactly, we throw away the old advice and only
-% take the new one.
+% take the new one. We use e\TeX's \cmd{\protected} where available
+% for some extra robustness.
% \begin{macrocode}
\long\def\pr@adviseii#1#2#3{\preview@delay{%
\ifx#1\relax \let#1#2\fi
- \toks@{#3#1}\long\edef#2{\the\toks@}}}
+ \toks@{#3#1}%
+ \ifx\@undefined\protected \else \protected\fi
+ \long\edef#2{\the\toks@}}}
% \end{macrocode}
%\end{macro}
%
@@ -756,13 +762,16 @@
% \end{macro}
% \end{macro}
% Oh, and we kill off the usual meaning of \cmd{\shipout} in case
-% somebody makes a special output routine. The following is rather
-% ugly, but should do the trick most of the time since \cmd{\shipout}
-% is most often called in a local group by \cmd{\output}.
+% somebody makes a special output routine. The following test is
+% pretty much the same as in |everyshi.sty|. One of its implications
+% is that if someone does a \cmd{\shipout} of a \emph{void} box,
+% things will go horribly wrong.
% \begin{macro}{\shipout}
% \begin{macrocode}
\let\pr@shipout=\shipout
-\def\shipout{\deadcycles\z@\setbox\z@\box\voidb@x\setbox\z@}
+\def\shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x
+ \afterassignment\pr@shipoutegroup\setbox\z@}
+\def\pr@shipoutegroup{\ifvoid\z@ \expandafter\aftergroup\fi \egroup}
% \end{macrocode}
% \end{macro}
% \subsection{Parsing commands}
@@ -964,7 +973,8 @@
\preview@delay{\ifx#1\@undefined \let#1=$%$
\fi\catcode`\$=\active
\ifx\xyreuncatcodes\@undefined\else
- \makeatother\xyreuncatcodes\makeatletter\fi}%
+ \edef\next{\catcode`@=\the\catcode`@\relax}%
+ \makeatother\expandafter\xyreuncatcodes\next\fi}%
\pr@advise@ship\(\pr@endaftergroup{}% \)
\pr@advise@ship#1{\@firstoftwo{\let#1=#2%
\futurelet\reserved@a\pr@textmathcheck}}{}}%
@@ -1025,10 +1035,12 @@ Please complain to your document class author}%
\expandafter\next\csname endfigure*\expandafter\endcsname
\csname endtable*\endcsname
% \end{macrocode}
-% The |sections| option.
+% The |sections| option. Two optional parameters might occur in
+% |memoir.cls|.
% \begin{macrocode}
\DeclareOption{sections}{%
- \PreviewMacro[!!!!!!*[!]{\@startsection}%]
+ \PreviewMacro[!!!!!!*[[!]{\@startsection}%]]
+ \PreviewMacro[*[[!]{\chapter}%]]
}
% \end{macrocode}
% We now interpret any further options as driver files we load. Note
@@ -1241,18 +1253,23 @@ Please complain to your document class author}%
\renewenvironment{nopreview}{\pr@outerfalse\ignorespaces}%
{\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 \cmd{\@currlist} back into \cmd{\@freelist}.
+% 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.
+% \begin{macro}{\pr@output}
% \begin{macrocode}
-\output{\def\@elt#1{\global\setbox#1=\box\voidb@x}%
- \@currlist
- \@elt{255}%
- \let\@elt\relax
- \xdef\@freelist{\@currlist\@freelist}%
- \global\let\@currlist\@empty
- \deadcycles\z@}
+\newtoks\pr@output
+\pr@output\output
+\output{%
+ \pr@outerfalse
+ \let\@begindvi\@empty
+ \the\pr@output}
+\let\output\pr@output
% \end{macrocode}
+% \end{macro}
% \begin{macro}{\pr@typeinfos}
% Then we have some document info that style files might want to
% output.
@@ -1383,6 +1400,8 @@ Please complain to your document class author}%
%<auccfg>\PreviewMacro*[][#1{}]\caption
%<auccfg>\preview@delay{\@ifundefined{pr@\string\@startsection}{%
%<auccfg> \PreviewMacro*[!!!!!!*][#1{}]\@startsection}{}}
+%<auccfg>\preview@delay{\@ifundefined{pr@\string\chapter}{%
+%<auccfg> \PreviewMacro*[*][#1{}]\chapter}{}}
%<auccfg>\PreviewMacro*\index
% \end{macrocode}
%
@@ -1803,3 +1822,9 @@ Please complain to your document class author}%
%<driver> \end{document}
% \end{macrocode}
% \Finale{}
+% \iffalse
+% Local Variables:
+% mode: doctex
+% TeX-master: "preview.drv"
+% End:
+% \fi
diff --git a/Master/texmf-dist/source/latex/preview/preview.ins b/Master/texmf-dist/source/latex/preview/preview.ins
index 42b842e41c1..1d4229d9db1 100644
--- a/Master/texmf-dist/source/latex/preview/preview.ins
+++ b/Master/texmf-dist/source/latex/preview/preview.ins
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\input docstrip
\generate{
\file{preview.drv}{\from{preview.dtx}{driver}}
diff --git a/Master/texmf-dist/tex/latex/preview/prauctex.cfg b/Master/texmf-dist/tex/latex/preview/prauctex.cfg
index 44bec6e53c4..495ae40a6bc 100644
--- a/Master/texmf-dist/tex/latex/preview/prauctex.cfg
+++ b/Master/texmf-dist/tex/latex/preview/prauctex.cfg
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\PreviewMacro*[[][#1{}]\footnote
\PreviewMacro*[?[{@{[]}}{}][#1]\item
\PreviewMacro*\emph
@@ -58,6 +40,8 @@
\PreviewMacro*[][#1{}]\caption
\preview@delay{\@ifundefined{pr@\string\@startsection}{%
\PreviewMacro*[!!!!!!*][#1{}]\@startsection}{}}
+\preview@delay{\@ifundefined{pr@\string\chapter}{%
+ \PreviewMacro*[*][#1{}]\chapter}{}}
\PreviewMacro*\index
\endinput
%%
diff --git a/Master/texmf-dist/tex/latex/preview/prauctex.def b/Master/texmf-dist/tex/latex/preview/prauctex.def
index b03ae3a3c2c..4f8f7fa6d5d 100644
--- a/Master/texmf-dist/tex/latex/preview/prauctex.def
+++ b/Master/texmf-dist/tex/latex/preview/prauctex.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\nofiles
\preview@delay{\nonstopmode}
diff --git a/Master/texmf-dist/tex/latex/preview/prcounters.def b/Master/texmf-dist/tex/latex/preview/prcounters.def
index 11aa28dce3f..be1ecc00eee 100644
--- a/Master/texmf-dist/tex/latex/preview/prcounters.def
+++ b/Master/texmf-dist/tex/latex/preview/prcounters.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\def\pr@eltprint#1{\expandafter\@gobble\ifnum\value{#1}=0%
\csname pr@c@#1\endcsname\else\relax
diff --git a/Master/texmf-dist/tex/latex/preview/preview.sty b/Master/texmf-dist/tex/latex/preview/preview.sty
index e3a7a47625f..0969a17790f 100644
--- a/Master/texmf-dist/tex/latex/preview/preview.sty
+++ b/Master/texmf-dist/tex/latex/preview/preview.sty
@@ -21,35 +21,17 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\NeedsTeXFormat{LaTeX2e} \def\reserved@a #1#2$#3:
#4${\xdef#1{\reserved@c #2#4 $}} \def\reserved@c #1 #2${#1}
\begingroup \catcode`\_=12
-\reserved@a\pr@version $Name: release_11_83 $ \ifx\pr@version\@empty
-\reserved@a\pr@version CVS-$Revision: 1.115 $ \endgroup \else
+\reserved@a\pr@version $Name: release_11_84 $ \ifx\pr@version\@empty
+\reserved@a\pr@version CVS-$Revision: 1.122 $ \endgroup \else
\def\next release_{} \lccode`\_=`.
\edef\next{\lowercase{\endgroup
\def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi
-\reserved@a\next $Date: 2006/05/25 19:28:52 $
+\reserved@a\next $Date: 2006/08/25 10:34:36 $
\edef\next{\noexpand\ProvidesPackage{preview}%
[\next\space \pr@version\space (AUCTeX/preview-latex)]}
\next
@@ -70,7 +52,9 @@
\let\preview@delay\@firstofone}
\long\def\pr@adviseii#1#2#3{\preview@delay{%
\ifx#1\relax \let#1#2\fi
- \toks@{#3#1}\long\edef#2{\the\toks@}}}
+ \toks@{#3#1}%
+ \ifx\@undefined\protected \else \protected\fi
+ \long\edef#2{\the\toks@}}}
\DeclareOption{delayed}{%
\ifPreview \def\preview@delay{\AtBeginDocument}\fi
}
@@ -122,7 +106,8 @@
\preview@delay{\ifx#1\@undefined \let#1=$%$
\fi\catcode`\$=\active
\ifx\xyreuncatcodes\@undefined\else
- \makeatother\xyreuncatcodes\makeatletter\fi}%
+ \edef\next{\catcode`@=\the\catcode`@\relax}%
+ \makeatother\expandafter\xyreuncatcodes\next\fi}%
\pr@advise@ship\(\pr@endaftergroup{}% \)
\pr@advise@ship#1{\@firstoftwo{\let#1=#2%
\futurelet\reserved@a\pr@textmathcheck}}{}}%
@@ -161,7 +146,8 @@ Please complain to your document class author}%
\expandafter\next\csname endfigure*\expandafter\endcsname
\csname endtable*\endcsname
\DeclareOption{sections}{%
- \PreviewMacro[!!!!!!*[!]{\@startsection}%]
+ \PreviewMacro[!!!!!!*[[!]{\@startsection}%]]
+ \PreviewMacro[*[[!]{\chapter}%]]
}
\DeclareOption*
{\InputIfFileExists{pr\CurrentOption.def}{}{\OptionNotUsed}}
@@ -225,26 +211,8 @@ Please complain to your document class author}%
\newenvironment{nopreview}{\ignorespaces}{\ifhmode\unskip\fi}
\ProcessOptions\relax
\ifPreview\else\expandafter\endinput\fi
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\newif\ifpr@outer
\pr@outertrue
\newcount\pr@snippet
@@ -319,7 +287,9 @@ Please complain to your document class author}%
\pr@cleanup
}
\let\pr@shipout=\shipout
-\def\shipout{\deadcycles\z@\setbox\z@\box\voidb@x\setbox\z@}
+\def\shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x
+ \afterassignment\pr@shipoutegroup\setbox\z@}
+\def\pr@shipoutegroup{\ifvoid\z@ \expandafter\aftergroup\fi \egroup}
\def\pr@parseit#1{\csname pr@parse#1\endcsname}
\let\pr@endparse=\@percentchar
\def\next#1{%
@@ -387,13 +357,13 @@ Please complain to your document class author}%
{\ifhmode\unskip\fi\endgroup}
\renewenvironment{nopreview}{\pr@outerfalse\ignorespaces}%
{\ifhmode\unskip\fi}
-\output{\def\@elt#1{\global\setbox#1=\box\voidb@x}%
- \@currlist
- \@elt{255}%
- \let\@elt\relax
- \xdef\@freelist{\@currlist\@freelist}%
- \global\let\@currlist\@empty
- \deadcycles\z@}
+\newtoks\pr@output
+\pr@output\output
+\output{%
+ \pr@outerfalse
+ \let\@begindvi\@empty
+ \the\pr@output}
+\let\output\pr@output
\def\pr@typeinfos{\typeout{Preview: Fontsize \f@size pt}%
\ifnum\mag=\@m\else\typeout{Preview: Magnification \number\mag}\fi
\ifx\pdfoutput\@undefined \else
diff --git a/Master/texmf-dist/tex/latex/preview/prfootnotes.def b/Master/texmf-dist/tex/latex/preview/prfootnotes.def
index 36af0293f70..2d525a8ab38 100644
--- a/Master/texmf-dist/tex/latex/preview/prfootnotes.def
+++ b/Master/texmf-dist/tex/latex/preview/prfootnotes.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\PreviewMacro[[!]\footnote %]
\endinput
%%
diff --git a/Master/texmf-dist/tex/latex/preview/prlyx.def b/Master/texmf-dist/tex/latex/preview/prlyx.def
index 59da9c79a30..fd1dab79030 100644
--- a/Master/texmf-dist/tex/latex/preview/prlyx.def
+++ b/Master/texmf-dist/tex/latex/preview/prlyx.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\pr@loadcfg{prlyx}
\g@addto@macro\pr@ship@end{\typeout{Preview:
diff --git a/Master/texmf-dist/tex/latex/preview/prshowbox.def b/Master/texmf-dist/tex/latex/preview/prshowbox.def
index 6342e8e6ccd..3280b29d649 100644
--- a/Master/texmf-dist/tex/latex/preview/prshowbox.def
+++ b/Master/texmf-dist/tex/latex/preview/prshowbox.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\AtEndOfPackage{%
\showboxbreadth\maxdimen
diff --git a/Master/texmf-dist/tex/latex/preview/prshowlabels.def b/Master/texmf-dist/tex/latex/preview/prshowlabels.def
index 01ea853e5b6..d0d61086bca 100644
--- a/Master/texmf-dist/tex/latex/preview/prshowlabels.def
+++ b/Master/texmf-dist/tex/latex/preview/prshowlabels.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\newbox\pr@labelbox
\def\pr@label#1{\pr@@label{#1}%
diff --git a/Master/texmf-dist/tex/latex/preview/prtightpage.def b/Master/texmf-dist/tex/latex/preview/prtightpage.def
index e14be9b6c44..0be40a462a5 100644
--- a/Master/texmf-dist/tex/latex/preview/prtightpage.def
+++ b/Master/texmf-dist/tex/latex/preview/prtightpage.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifx\PreviewBorder\@undefined
\newdimen\PreviewBorder
\PreviewBorder=0.50001bp
diff --git a/Master/texmf-dist/tex/latex/preview/prtracingall.def b/Master/texmf-dist/tex/latex/preview/prtracingall.def
index 69496e30a1d..7dfc7e3442e 100644
--- a/Master/texmf-dist/tex/latex/preview/prtracingall.def
+++ b/Master/texmf-dist/tex/latex/preview/prtracingall.def
@@ -20,26 +20,8 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%%\iffalse
-%% preview.dtx for extracting previews from LaTeX documents. Part of
-%% the preview-latex package.
-%% Copyright (C) 2001, 2002, 2003, 2004, 2005 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
+%% The preview style for extracting previews from LaTeX documents.
+%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
\ifPreview\else\expandafter\endinput\fi
\pr@addto@front\pr@ship@start{\let\tracingonline\count@
\let\errorstopmode\@empty\tracingall}
diff --git a/Master/texmf-dist/tpm/preview.tpm b/Master/texmf-dist/tpm/preview.tpm
index d0b296cdc79..b42a04c3ecc 100644
--- a/Master/texmf-dist/tpm/preview.tpm
+++ b/Master/texmf-dist/tpm/preview.tpm
@@ -3,7 +3,7 @@
<rdf:Description about="http://texlive.dante.de/texlive/Package/preview.zip">
<TPM:Name>preview</TPM:Name>
<TPM:Type>Package</TPM:Type>
- <TPM:Date>2006/06/14 16:58:07</TPM:Date>
+ <TPM:Date>2007/01/15 00:54:06</TPM:Date>
<TPM:Version>1.0</TPM:Version>
<TPM:Creator>rahtz</TPM:Creator>
<TPM:Title>Extract bits of a LaTeX source for output.</TPM:Title>
@@ -19,7 +19,7 @@ to have other uses, as in html translators, etc.
<TPM:Size>234190</TPM:Size>
<TPM:License></TPM:License>
<TPM:Build/>
- <TPM:RunFiles size="38778">
+ <TPM:RunFiles size="30035">
texmf-dist/tex/latex/preview/prauctex.cfg
texmf-dist/tex/latex/preview/prauctex.def
texmf-dist/tex/latex/preview/prcounters.def
@@ -32,11 +32,11 @@ texmf-dist/tex/latex/preview/prtightpage.def
texmf-dist/tex/latex/preview/prtracingall.def
texmf-dist/tpm/preview.tpm
</TPM:RunFiles>
- <TPM:DocFiles size="114436">
+ <TPM:DocFiles size="114166">
texmf-dist/doc/latex/preview/README
texmf-dist/doc/latex/preview/preview.pdf
</TPM:DocFiles>
- <TPM:SourceFiles size="80976">
+ <TPM:SourceFiles size="80075">
texmf-dist/source/latex/preview/preview.drv
texmf-dist/source/latex/preview/preview.dtx
texmf-dist/source/latex/preview/preview.ins