diff options
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prauctex.cfg | 64 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prauctex.def | 79 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prcounters.def | 56 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/preview.sty | 410 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prfootnotes.def | 46 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prlyx.def | 50 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prshowbox.def | 50 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prshowlabels.def | 85 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prtightpage.def | 138 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/prtracingall.def | 48 |
10 files changed, 1026 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/preview/prauctex.cfg b/Master/texmf-dist/tex/latex/preview/prauctex.cfg new file mode 100644 index 00000000000..f2155acf73b --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prauctex.cfg @@ -0,0 +1,64 @@ +%% +%% This is file `prauctex.cfg', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `auccfg') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prauctex.cfg. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\PreviewMacro*[[][#1{}]\footnote +\PreviewMacro*[?[{@{[]}}{}][#1]\item +\PreviewMacro*\emph +\PreviewMacro*\textrm +\PreviewMacro*\textit +\PreviewMacro*\textsc +\PreviewMacro*\textsf +\PreviewMacro*\textsl +\PreviewMacro*\texttt +\PreviewMacro*\textcolor +\PreviewMacro*\mbox +\PreviewMacro*[][#1{}]\author +\PreviewMacro*[][#1{}]\title +\PreviewMacro*\and +\PreviewMacro*\thanks +\PreviewMacro*[][#1{}]\caption +\preview@delay{\@ifundefined{pr@\string\@startsection}{% + \PreviewMacro*[!!!!!!*][#1{}]\@startsection}{}} +\PreviewMacro*\index +\endinput +%% +%% End of file `prauctex.cfg'. diff --git a/Master/texmf-dist/tex/latex/preview/prauctex.def b/Master/texmf-dist/tex/latex/preview/prauctex.def new file mode 100644 index 00000000000..6d9ce91e40b --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prauctex.def @@ -0,0 +1,79 @@ +%% +%% This is file `prauctex.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `auctex') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prauctex.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\nofiles +\preview@delay{\nonstopmode} +\begingroup +\lccode`\~=`\- +\lccode`\{=`\< +\lccode`\}=`\> +\lowercase{\endgroup + \def\pr@msgi{{~}}} +\def\pr@msgii{Preview: + Snippet \number\pr@snippet\space} +\begingroup +\catcode`\-=13 +\catcode`\<=13 +\@firstofone{\endgroup +\def\pr@msg#1{{% + \let<\pr@msgi + \def-{\pr@msgii#1}% + \errhelp{Not a real error.}% + \errmessage<}}} +\g@addto@macro\pr@ship@start{\pr@msg{started}} +\g@addto@macro\pr@ship@end{\pr@msg{ended.% + (\number\ht\pr@box+\number\dp\pr@box x\number\wd\pr@box)}} +\hbadness=\maxdimen +\newcount\hbadness +\vbadness=\maxdimen +\let\vbadness=\hbadness +\hfuzz=\maxdimen +\newdimen\hfuzz +\vfuzz=\maxdimen +\let\vfuzz=\hfuzz +\showboxdepth=-1 +\showboxbreadth=-1 +\pr@loadcfg{prauctex} +\endinput +%% +%% End of file `prauctex.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prcounters.def b/Master/texmf-dist/tex/latex/preview/prcounters.def new file mode 100644 index 00000000000..f8daac8ff99 --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prcounters.def @@ -0,0 +1,56 @@ +%% +%% This is file `prcounters.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `counters') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prcounters.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\def\pr@eltprint#1{\expandafter\@gobble\ifnum\value{#1}=0% + \csname pr@c@#1\endcsname\else\relax + \space{#1}{\arabic{#1}}\fi} +\def\pr@eltdef#1{\expandafter\xdef + \csname pr@c@#1\endcsname{\arabic{#1}}} +\def\pr@ckpt#1{{\let\@elt\pr@eltprint\edef\next{\cl@@ckpt}% + \ifx\next\@empty\else\typeout{Preview: Counters\next#1}% + \let\@elt\pr@eltdef\cl@@ckpt\fi}} +\g@addto@macro\pr@ship@start{\pr@ckpt:} +\g@addto@macro\pr@ship@end{\pr@ckpt.} +\endinput +%% +%% End of file `prcounters.def'. diff --git a/Master/texmf-dist/tex/latex/preview/preview.sty b/Master/texmf-dist/tex/latex/preview/preview.sty new file mode 100644 index 00000000000..2198277a97c --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/preview.sty @@ -0,0 +1,410 @@ +%% +%% This is file `preview.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `style') +%% preview.dtx (with options: `style,active') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from preview.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\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_81 $ \ifx\pr@version\@empty +\reserved@a\pr@version CVS-$Revision: 1.113 $ \endgroup \else + \def\next release_{} \lccode`\_=`. + \edef\next{\lowercase{\endgroup + \def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi +\reserved@a\next $Date: 2005/09/25 12:12:37 $ +\edef\next{\noexpand\ProvidesPackage{preview}% + [\next\space \pr@version\space (AUCTeX/preview-latex)]} +\next +\let\ifPreview\iffalse +\let\preview@delay=\@gobble +\let\pr@advise=\@gobbletwo +\long\def\pr@advise@ship#1#2#3{} +\def\pr@loadcfg#1{\InputIfFileExists{#1.cfg}{}{}} +\DeclareOption{noconfig}{\let\pr@loadcfg=\@gobble} +\long\def\pr@addto@front#1#2{% + \toks@{#2}\toks@\expandafter{\the\expandafter\toks@#1}% + \xdef#1{\the\toks@}} +\DeclareOption{active}{% + \let\ifPreview\iftrue + \def\pr@advise#1{% + \expandafter\pr@adviseii\csname pr@\string#1\endcsname#1}% + \long\def\pr@advise@ship#1#2#3{\pr@advise#1{\pr@protect@ship{#2}{#3}}}% + \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@}}} +\DeclareOption{delayed}{% + \ifPreview \def\preview@delay{\AtBeginDocument}\fi +} +\newif\ifpr@fixbb +\pr@fixbbfalse +\DeclareOption{psfixbb}{\ifPreview% + \pr@fixbbtrue + \newbox\pr@markerbox + \setbox\pr@markerbox\hbox{\special{psfile=/dev/null}}\fi +} +\let\pr@graphicstype=\z@ +\DeclareOption{dvips}{% + \let\pr@graphicstype\@ne + \preview@delay{\AtBeginDvi{% + \special{!/preview@version(\pr@version)def} + \special{!userdict begin/preview-bop-level 0 def% + /bop-hook{/preview-bop-level dup load dup 0 le{/isls false def% + /vsize 792 def/hsize 612 def}if 1 add store}bind def% + /eop-hook{/preview-bop-level dup load dup 0 gt{1 sub}if + store}bind def end}}}} +\DeclareOption{pdftex}{% + \let\pr@graphicstype\tw@} +\begingroup +\catcode`\*=11 +\@firstofone{\endgroup +\DeclareOption{displaymath}{% + \preview@delay{\toks@{% + \pr@startbox{\noindent$$% + \aftergroup\pr@endbox\@gobbletwo}{$$}\@firstofone}% + \everydisplay\expandafter{\the\expandafter\toks@ + \expandafter{\the\everydisplay}}}% + \pr@advise@ship\equation{\begingroup\aftergroup\pr@endbox + \def\dt@ptrue{\m@ne=\m@ne}\noindent}% + {\endgroup}% + \pr@advise@ship\equation*{\begingroup\aftergroup\pr@endbox + \def\dt@ptrue{\m@ne=\m@ne}\noindent}% + {\endgroup}% + \PreviewOpen[][\def\dt@ptrue{\m@ne=\m@ne}\noindent#1]\[% + \PreviewClose\]% + \PreviewEnvironment[][\noindent#1]{eqnarray}% + \PreviewEnvironment[][\noindent#1]{eqnarray*}% + \PreviewEnvironment{displaymath}% +}} +\begingroup +\def\next#1#2{% + \endgroup + \DeclareOption{textmath}{% + \PreviewEnvironment{math}% + \preview@delay{\ifx#1\@undefined \let#1=$%$ + \fi\catcode`\$=\active + \ifx\xyreuncatcodes\@undefined\else\xyreuncatcodes\fi}% + \pr@advise@ship\(\pr@endaftergroup{}% \) + \pr@advise@ship#1{\@firstoftwo{\let#1=#2% + \futurelet\reserved@a\pr@textmathcheck}}{}}% + \def\pr@textmathcheck{\expandafter\pr@endaftergroup + \ifx\reserved@a#1{#2#2}\expandafter\@gobbletwo\fi#2}} +\lccode`\~=`\$ +\lowercase{\expandafter\next\expandafter~}% + \csname pr@\string$%$ + \endcsname +\DeclareOption{graphics}{% + \PreviewMacro[*[[!]{\includegraphics}%]] +} +\def\pr@floatfix#1#2{\ifx#1#2% + \ifx#1\@undefined\else + \PackageWarningNoLine{preview}{% +Your document class has a bad definition^^J +of \string#1, most likely^^J +\string\let\string#1=\string#2^^J +which has now been changed to^^J +\string\def\string#1{\string#2}^^J +because otherwise subsequent changes to \string#2^^J +(like done by several packages changing float behaviour)^^J +can't take effect on \string#1.^^J +Please complain to your document class author}% + \def#1{#2}\fi\fi} +\begingroup +\def\next#1#2{\endgroup + \DeclareOption{floats}{% + \pr@floatfix\endfigure\end@float + \pr@floatfix\endtable\end@float + \pr@floatfix#1\end@dblfloat + \pr@floatfix#2\end@dblfloat + \PreviewSnarfEnvironment[![]{@float}%] + \PreviewSnarfEnvironment[![]{@dblfloat}%] + }} +\expandafter\next\csname endfigure*\expandafter\endcsname + \csname endtable*\endcsname +\DeclareOption{sections}{% + \PreviewMacro[!!!!!!*[!]{\@startsection}%] +} +\DeclareOption* + {\InputIfFileExists{pr\CurrentOption.def}{}{\OptionNotUsed}} +\def\PreviewMacro{\@ifstar\pr@starmacro\pr@macro} +\long\def\pr@domacro#1#2{% + \long\def\next##1{#2}% + \pr@callafter\next#1]\pr@endparse} +\newcommand\pr@macro[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise@ship{##2}{\the\toks@{##1\noexpand\pr@endbox}}{}}% + \@ifnextchar[\next\pr@macroii} +\def\pr@macroii{\next[##1]} +\long\def\pr@endmacro#1{#1\pr@endbox} +\long\def\pr@protect@domacro#1#2{\pr@protect{% + \long\def\next##1{#2}% + \pr@callafter\next#1]\pr@endparse}} +\newcommand\pr@starmacro[1][]{\toks@{\pr@protect@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise##2{\the\toks@{##1}}}% + \@ifnextchar[\next{\next[]}} +\def\PreviewOpen{\@ifstar\pr@starmacro\pr@open} +\newcommand\pr@open[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise##2{\begingroup + \noexpand\pr@protect@ship + {\the\toks@{\begingroup\aftergroup\noexpand\pr@endbox##1}}% + {\endgroup}}}% + \@ifnextchar[\next\pr@macroii} +\def\PreviewClose{\@ifstar\pr@starmacro\pr@close} +\newcommand\pr@close[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise{##2}{\the\toks@{##1\endgroup}}}% + \@ifnextchar[\next\pr@macroii} +\def\PreviewEnvironment{\@ifstar\pr@starenv\pr@env} +\newcommand\pr@starenv[1][]{\toks@{\pr@starmacro[{#1}]}% + \long\edef\next##1##2{% + \the\toks@[{##2}]##1}% + \begingroup\pr@starenvii} +\newcommand\pr@starenvii[2][]{\endgroup + \expandafter\next\csname#2\endcsname{#1}% + \expandafter\pr@starmacro\csname end#2\endcsname} +\newcommand\pr@env[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\expandafter\noexpand\pr@advise@ship + \noexpand\csname##2\noexpand\endcsname{\the\toks@ + {\begingroup\aftergroup\noexpand\pr@endbox##1}}{\endgroup}}% + \@ifnextchar[\next\pr@macroii %] + } +\newcommand{\PreviewSnarfEnvironment}[2][]{% + \expandafter\pr@advise + \csname #2\endcsname{\pr@snarfafter{#1}}% + \expandafter\pr@advise + \csname end#2\endcsname{\pr@endsnarf}} +\let\pr@ship@start\@empty +\let\pr@ship@end\@empty +\newenvironment{preview}{\ignorespaces}{\ifhmode\unskip\fi} +\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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\newif\ifpr@outer +\pr@outertrue +\newcount\pr@snippet +\global\pr@snippet=1 +\def\pr@protect{\ifx\protect\@typeset@protect + \ifpr@outer \expandafter\expandafter\expandafter + \@secondoftwo\fi\fi\@gobble} +\def\pr@protect@ship{\pr@protect{\@firstoftwo\pr@startbox}% + \@gobbletwo} +\def\pr@insert{\begingroup\afterassignment\pr@insertii\count@} +\def\pr@insertii{\endgroup\setbox\pr@box\vbox} +\def\pr@mark{{\afterassignment}\toks@} +\def\pr@marks{{\aftergroup\pr@mark\afterassignment}\count@} +\newbox\pr@box +\long\def\pr@startbox#1#2{% + \ifpr@outer + \toks@{#2}% + \edef\pr@cleanup{\the\toks@}% + \setbox\pr@box\vbox\bgroup + \break + \pr@outerfalse\@arrayparboxrestore + \let\insert\pr@insert + \let\mark\pr@mark + \let\marks\pr@marks + \expandafter\expandafter\expandafter + \pr@ship@start + \expandafter\@firstofone + \else + \expandafter \@gobble + \fi{#1}} +\def\pr@endbox{% + \let\reserved@a\relax + \ifvmode \edef\reserved@a{\the\everypar}% + \ifx\reserved@a\@empty\else + \dimen@\prevdepth + \noindent\par + \setbox\z@\lastbox\unskip\unpenalty + \prevdepth\dimen@ + \setbox\z@\hbox\bgroup\penalty-\maxdimen\unhbox\z@ + \ifnum\lastpenalty=-\maxdimen\egroup + \else\egroup\box\z@ \fi\fi\fi + \ifhmode \par\unskip\setbox\z@\lastbox + \nointerlineskip\hbox{\unhbox\z@\/}% + \else \unskip\unpenalty\unskip \fi + \egroup + \setbox\pr@box\vbox{% + \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ + \@begindvi + \nointerlineskip + \splittopskip\z@skip\setbox\z@\vsplit\pr@box to\z@ + \unvbox\z@ + \nointerlineskip + %\color@setgroup + \box\pr@box + %\color@endgroup + }% + \pr@ship@end + {\let\protect\noexpand + \voffset=-\ht\pr@box + \hoffset=\z@ + \c@page=\pr@snippet + \pr@shipout + \ifpr@fixbb\hbox{% + \dimen@\wd\pr@box + \@tempdima\ht\pr@box + \@tempdimb\dp\pr@box + \box\pr@box + \llap{\raise\@tempdima\copy\pr@markerbox\kern\dimen@}% + \lower\@tempdimb\copy\pr@markerbox}% + \else \box\pr@box \fi}% + \global\advance\pr@snippet\@ne + \pr@cleanup +} +\let\pr@shipout=\shipout +\def\shipout{\deadcycles\z@\setbox\z@\box\voidb@x\setbox\z@} +\def\pr@parseit#1{\csname pr@parse#1\endcsname} +\let\pr@endparse=\@percentchar +\def\next#1{% +\def\pr@callafter{% + \afterassignment\pr@parseit + \let#1= }} +\expandafter\next\csname pr@parse\pr@endparse\endcsname +\long\expandafter\def\csname pr@parse*\endcsname#1\pr@endparse#2{% + \begingroup\toks@{#1\pr@endparse{#2}}% + \edef\next##1{\endgroup##1\the\toks@}% + \@ifstar{\next{\pr@parse@*}}{\next\pr@parseit}} +\long\expandafter\def\csname pr@parse[\endcsname#1\pr@endparse#2{% + \begingroup\toks@{#1\pr@endparse{#2}}% + \edef\next##1{\endgroup##1\the\toks@}% + \@ifnextchar[{\next\pr@bracket}{\next\pr@parseit}} +\long\def\pr@bracket#1\pr@endparse#2[#3]{% + \pr@parseit#1\pr@endparse{#2[{#3}]}} +\expandafter\let\csname pr@parse]\endcsname=\pr@parseit +\long\def\pr@parse#1\pr@endparse#2#3{% + \pr@parseit#1\pr@endparse{#2{#3}}} +\expandafter\let\csname pr@parse!\endcsname=\pr@parse +\long\expandafter\def\csname pr@parse?\endcsname#1#2\pr@endparse#3{% + \begingroup\toks@{#2\pr@endparse{#3}}% + \@ifnextchar#1{\pr@parsecond\@firstoftwo}% + {\pr@parsecond\@secondoftwo}} +\def\pr@parsecond#1{\expandafter\endgroup + \expandafter\expandafter\expandafter\pr@parseit + \expandafter#1\the\toks@} + \long\def\pr@parse@#1#2\pr@endparse#3{% + \pr@parseit #2\pr@endparse{#3#1}} +\long\expandafter\def\csname pr@parse-\endcsname + #1\pr@endparse#2{\begingroup + \toks@{\endgroup\pr@parseit #1\pr@endparse{#2}}% + {\aftergroup\the\aftergroup\toks@ \afterassignment}% + \let\next= } +\long\expandafter\def\csname pr@parse:\endcsname + #1#2#3\pr@endparse#4{\begingroup + \toks@{\endgroup \pr@parseit#3\pr@endparse{#4}}% + \long\def\next#1{#2}% + \the\expandafter\toks@\next} +\long\expandafter\def\csname pr@parse#\endcsname + #1#2#3\pr@endparse#4{\begingroup + \toks@{#4}% + \long\edef\next##1{\toks@{\the\toks@##1}}% + \toks@{\endgroup \pr@parseit#3\pr@endparse}% + \long\def\reserved@a#1{{#2}}% + \the\expandafter\next\reserved@a} +\def\pr@endaftergroup#1{#1\aftergroup\pr@endbox} +\let\pr@endsnarf\relax +\long\def\pr@snarfafter#1{\ifpr@outer + \pr@ship@start + \let\pr@ship@start\relax + \let\pr@endsnarf\endgroup + \else + \let\pr@endsnarf\relax + \fi + \pr@protect{\pr@callafter\pr@startsnarf#1]\pr@endparse}} +\def\pr@startsnarf#1{#1\begingroup + \pr@startbox{\begingroup\aftergroup\pr@endbox}{\endgroup}% + \ignorespaces} +\renewenvironment{preview}{\begingroup + \pr@startbox{\begingroup\aftergroup\pr@endbox}% + {\endgroup}% + \ignorespaces}% + {\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@} +\def\pr@typeinfos{\typeout{Preview: Fontsize \f@size pt}% + \ifnum\mag=\@m\else\typeout{Preview: Magnification \number\mag}\fi + \ifx\pdfoutput\@undefined \else + \ifx\pdfoutput\relax \else + \ifnum\pdfoutput>\z@ + \typeout{Preview: PDFoutput 1}% + \fi + \fi + \fi +} +\AtBeginDocument{\pr@typeinfos} +\pr@loadcfg{prdefault} +\endinput +%% +%% End of file `preview.sty'. diff --git a/Master/texmf-dist/tex/latex/preview/prfootnotes.def b/Master/texmf-dist/tex/latex/preview/prfootnotes.def new file mode 100644 index 00000000000..b978cdfb0fc --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prfootnotes.def @@ -0,0 +1,46 @@ +%% +%% This is file `prfootnotes.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `footnotes') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prfootnotes.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\PreviewMacro[[!]\footnote %] +\endinput +%% +%% End of file `prfootnotes.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prlyx.def b/Master/texmf-dist/tex/latex/preview/prlyx.def new file mode 100644 index 00000000000..9f846d46bef --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prlyx.def @@ -0,0 +1,50 @@ +%% +%% This is file `prlyx.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `lyx') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prlyx.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\pr@loadcfg{prlyx} +\g@addto@macro\pr@ship@end{\typeout{Preview: + Snippet \number\pr@snippet\space + \number\ht\pr@box\space \number\dp\pr@box \space\number\wd\pr@box}} +\endinput +%% +%% End of file `prlyx.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prshowbox.def b/Master/texmf-dist/tex/latex/preview/prshowbox.def new file mode 100644 index 00000000000..2f0e5831cc6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prshowbox.def @@ -0,0 +1,50 @@ +%% +%% This is file `prshowbox.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `showbox') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prshowbox.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\AtEndOfPackage{% + \showboxbreadth\maxdimen + \showboxdepth\maxdimen} +\g@addto@macro\pr@ship@end{\showbox\pr@box} +\endinput +%% +%% End of file `prshowbox.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prshowlabels.def b/Master/texmf-dist/tex/latex/preview/prshowlabels.def new file mode 100644 index 00000000000..1edce6b07de --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prshowlabels.def @@ -0,0 +1,85 @@ +%% +%% This is file `prshowlabels.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `showlabels') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prshowlabels.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\newbox\pr@labelbox +\def\pr@label#1{\pr@@label{#1}% + \ifpr@setbox\z@{#1}% + \global\setbox\pr@labelbox\vbox{\unvbox\pr@labelbox + \box\z@}\egroup\fi} +\def\ifpr@setbox#1#2{% + \romannumeral% + \ifx\protect\@typeset@protect\ifpr@outer\else + \z@\bgroup + \protected@edef\next{#2}\@onelevel@sanitize\next + \ifx\next\@empty\egroup\romannumeral\else + \ifx\next\pr@lastlabel\egroup\romannumeral\else + \global\let\pr@lastlabel\next + \setbox#1\pr@boxlabel\pr@lastlabel + \expandafter\expandafter\romannumeral\fi\fi\fi\fi + \z@\iffalse\iftrue\fi} +\def\pr@boxlabel#1{\hbox{\normalfont + \footnotesize\ttfamily\fboxsep0.4ex\relax\fbox{#1}}} +\def\pr@maketag#1{\pr@@maketag{#1}% + \ifpr@setbox\z@{\df@label}% + \global\setbox\pr@labelbox\vbox{% + \hrule\@width\wd\z@\@height\z@ + \unvbox\pr@labelbox}% + \wd\z@\z@\box\z@ \egroup\fi} +\g@addto@macro\pr@ship@start{% + \global\setbox\pr@labelbox\box\voidb@x + \xdef\pr@lastlabel{}% + \global\let\pr@@label\label \let\label\pr@label + \global\let\pr@@maketag\maketag@@@ + \let\maketag@@@\pr@maketag +} +\pr@addto@front\pr@ship@end{% + \ifx \label\pr@label \global\let\label\pr@@label \fi + \ifx \maketag@@@\pr@maketag + \global\let\maketag@@@\pr@@maketag \fi + \ifvoid\pr@labelbox + \else \setbox\pr@box\hbox{% + \box\pr@box\,\box\pr@labelbox}% + \fi} +\endinput +%% +%% End of file `prshowlabels.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prtightpage.def b/Master/texmf-dist/tex/latex/preview/prtightpage.def new file mode 100644 index 00000000000..e0021c96dcd --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prtightpage.def @@ -0,0 +1,138 @@ +%% +%% This is file `prtightpage.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `tightpage') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prtightpage.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifx\PreviewBorder\@undefined + \newdimen\PreviewBorder + \PreviewBorder=0.50001bp +\fi +\ifx\PreviewBbAdjust\@undefined + \def\PreviewBbAdjust{-\PreviewBorder -\PreviewBorder + \PreviewBorder \PreviewBorder} +\fi +\ifPreview\else\expandafter\endinput\fi +\def\pr@nextbb{\edef\next{\next\space\number\dimen@}% + \expandafter\xdef\csname pr@bb@% + \romannumeral\count@\endcsname{\the\dimen@}% + \advance\count@\@ne\ifnum\count@<5 + \afterassignment\pr@nextbb\dimen@=\fi} +\ifnum\pr@graphicstype=\z@ + \ifcase \ifx\pdfoutput\@undefined \@ne\fi + \ifx\pdfoutput\relax \@ne\fi + \ifnum\pdfoutput>\z@ \tw@\fi \@ne \or + \ExecuteOptions{dvips}\relax \or + \ExecuteOptions{pdftex}\relax\fi\fi +\global\let\pr@bbadjust\@empty +\pr@addto@front\pr@ship@end{\begingroup + \let\next\@gobble + \count@\@ne\afterassignment\pr@nextbb + \dimen@\PreviewBbAdjust + \ifx\pr@bbadjust\next + \else \global\let\pr@bbadjust\next + \typeout{Preview: Tightpage \pr@bbadjust}% + \fi\endgroup} +\ifcase\pr@graphicstype +\or + \g@addto@macro\pr@ship@end{\setbox\pr@box\hbox{% + \special{ps::\pr@bbadjust\space + \number\ifdim\ht\pr@box>\z@ \ht\pr@box + \else \z@ + \fi \space + \number\ifdim\dp\pr@box>\z@ \dp\pr@box + \else \z@ + \fi \space + \number\ifdim\wd\pr@box>\z@ \wd\pr@box + \else \z@ + \fi}\box\pr@box}} +\or + \g@addto@macro\pr@ship@end{{\dimen@\ht\pr@box + \ifdim\dimen@<\z@ \dimen@\z@\fi + \advance\dimen@\pr@bb@iv + \dimen@ii=\dimen@ + \global\pdfvorigin\dimen@ + \dimen@\dp\pr@box + \ifdim\dimen@<\z@ \dimen@\z@\fi + \advance\dimen@-\pr@bb@ii + \advance\dimen@\dimen@ii + \global\pdfpageheight\dimen@ + \dimen@\wd\pr@box + \ifdim\dimen@<\z@ \dimen@=\z@\fi + \advance\dimen@-\pr@bb@i + \advance\dimen@\pr@bb@iii + \global\pdfpagewidth\dimen@ + \global\pdfhorigin-\pr@bb@i}} +\fi +\ifnum\pr@graphicstype=\@ne +\preview@delay{\AtBeginDvi{% + \special{!/preview@tightpage true def (% + compatibility PostScript comment for dvipng<=1.5 } + \special{!userdict begin/bop-hook{% + 7{currentfile token not{stop}if + 65781.76 div DVImag mul}repeat + 72 add 72 2 copy gt{exch}if 4 2 roll + neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% + {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add + 3 1 roll + 4{5 -1 roll add 4 1 roll}repeat + <</PageSize[5 -1 roll 6 index sub 5 -1 roll 5 index sub]% + /PageOffset[7 -2 roll [1 1 dtransform exch]% + {0 ge{neg}if exch}forall]>>setpagedevice% + //bop-hook exec}bind def end} + \special{!userdict (some extra code to avoid + dvipng>=1.6 unknown special: + 7{currentfile token not{stop}if 65781.76 div })) pop} + \special{!userdict begin/bop-hook{% + preview-bop-level 0 le{% + 7{currentfile token not{stop}if + 65781.76 div DVImag mul}repeat + 72 add 72 2 copy gt{exch}if 4 2 roll + neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% + {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add + 3 1 roll + 4{5 -1 roll add 4 1 roll}repeat + <</PageSize[5 -1 roll 6 index sub 5 -1 roll 5 index sub]% + /PageOffset[7 -2 roll [1 1 dtransform exch]% + {0 ge{neg}if exch}forall]>>setpagedevice}if% + //bop-hook exec}bind def end}}} +\fi +\endinput +%% +%% End of file `prtightpage.def'. diff --git a/Master/texmf-dist/tex/latex/preview/prtracingall.def b/Master/texmf-dist/tex/latex/preview/prtracingall.def new file mode 100644 index 00000000000..0383f1284cb --- /dev/null +++ b/Master/texmf-dist/tex/latex/preview/prtracingall.def @@ -0,0 +1,48 @@ +%% +%% This is file `prtracingall.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% preview.dtx (with options: `tracingall') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from prtracingall.def. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file preview.dtx. +%% +%% This generated file may be distributed as long as the +%% 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., 59 Temple Place, Suite 330, +%% Boston, MA 02111-1307 USA +%%\fi +\ifPreview\else\expandafter\endinput\fi +\pr@addto@front\pr@ship@start{\let\tracingonline\count@ + \let\errorstopmode\@empty\tracingall} +\endinput +%% +%% End of file `prtracingall.def'. |