%PDF- %PDF-
| Direktori : /proc/self/root/data/old/usr/share/texlive/texmf-dist/tex/latex/preprint/ |
| Current File : //proc/self/root/data/old/usr/share/texlive/texmf-dist/tex/latex/preprint/figcaps.sty |
%%
%% This is file `figcaps.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% figcaps.dtx (with options: `package')
%% =============================================
%% IMPORTANT NOTICE:
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt; either
%% version 1 of the License, or any later version.
%%
%% This is a generated file.
%% It may not be distributed without the original source file figcaps.dtx.
%%
%% Full documentation can be obtained by LaTeXing that original file.
%% Only a few abbreviated comments remain here to describe the usage.
%% =============================================
%% Copyright 1993-1999 Patrick W Daly
%% Max-Planck-Institut f\"ur Aeronomie
%% Max-Planck-Str. 2
%% D-37191 Katlenburg-Lindau
%% Germany
%% E-mail: daly@linmpi.mpg.de
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{figcaps}
[1999/02/23 4.7 (PWD)]
% This option allows the figure captions to be collected throughout
% the paper and printed on a separate page at the end. The figures
% themselves will not appear in the text. This is for purposes of
% a manuscript for submission.
% Similarly, tables are not printed in the text, but are outputted at
% the end, after the figure captions.
% The figures themselves may appear, with captions, at
% the end, after the tables. This is done with command \printfigures
% in the preamble. This only makes sense if the figures have been
% generated by LaTeX or if they are being imported.
% Marginal notes added where environments placed if \figmarkon given.
% NOTE: Only works for article-like styles at present, where \section is
% the highest sectioning level.
% NOTE: Tables of contents (incl figures and tables) cannot be used
% NOTE: This file must be read in AFTER \appendix has been defined;
%
% Options with LaTeX2e:
% printfigures - prints the figures at the end of the article, (is
% like issuing the \printfigures command)
% figmark - turns on the markers for figures and tables in the text,
% (is like issuing \figmarkon)
% figon/off - activates or deactivates the whole procedure (is like
% (issuing \figcapson or \figcapsoff). Default=on.
% mylang - (default) leaves explicit text (e.g. `Figure Captions'
% as is, or if undefined, makes them English
% english,american,german,austrian,french,esperanto - changes explicit
% texts accordingly
% blank - makes explicit texts empty.
%-----------------------------------------------------------
\@ifundefined{chapter}{}{%
\PackageError{figcaps}
{`figcaps' may only be used with article-like classes}
{There is no help. You just cannot use `figcaps'}}
\newif\iffigcaps \figcapstrue
\newif\iffigmark \figmarkfalse
\newif\if@figpage \@figpagefalse
\DeclareOption{english}{\def\figurecapname{Figure Captions}%
\def\tablepagename{Tables}%
\def\figurepagename{Figures}}
\DeclareOption{american}{\ExecuteOptions{english}}
\DeclareOption{german}{\def\figurecapname{Untertiteln der Abbildungen}%
\def\tablepagename{Tabellen}%
\def\figurepagename{Abbildungen}}
\DeclareOption{austrian}{\ExecuteOptions{german}}
\DeclareOption{french}{\def\figurecapname{Titres des Figures}%
\def\tablepagename{Tableaux}%
\def\figurepagename{Figures}}
\DeclareOption{esperanto}{\def\figurecapname{Titroj de la Figuroj}%
\def\tablepagename{Tabeloj}%
\def\figurepagename{Figuroj}}
\DeclareOption{blank}{\def\figurecapname{}%
\def\tablepagename{}%
\def\figurepagename{}}
\DeclareOption{blank}{\def\appendixname{}}
\DeclareOption{mylang}{\providecommand{\figurecapname}{Figure Captions}%
\providecommand{\tablepagename}{Tables}%
\providecommand{\figurepagename}{Figures}}
\DeclareOption{figmark}{\figmarktrue}
\DeclareOption{printfigures}{\@figpagetrue}
\DeclareOption{figon}{\figcapstrue}
\DeclareOption{figoff}{\figcapsfalse}
\ExecuteOptions{mylang,figon}
\ProcessOptions*
\begingroup
\catcode `|=0 \catcode `[= 1
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
\catcode`\^^M=13 \catcode`\\=12 %
|long|gdef|@vfig#1\end{figure}[|def|@term[\end{figure}]%
|expandafter|writelof#1^^M\end{figure}^^M|end[figure]]%
|long|gdef|@vsfig#1\end{figure*}[|def|@term[\end{figure*}]%
|expandafter|writelof#1^^M\end{figure*}^^M|end[figure*]]%
|long|gdef|@vtab#1\end{table}[|def|@term[\end{table}]%
|expandafter|writelot#1^^M\end{table}^^M|end[table]]%
|long|gdef|@vstab#1\end{table*}[|def|@term[\end{table*}]%
|expandafter|writelot#1^^M\end{table*}^^M|end[table*]]%
|long|gdef|@fcaponly#1\caption[|endgroup|@fcaption]%
|long|gdef|@feject#1\end{figure}[|end[figure]]%
|endgroup
\long\def\FC@writefile#1#2{\@ifundefined{tf@#1}{}{%
\immediate\write\csname tf@#1\endcsname{#2}}}
\def\lof{lof} \def\lot{lot}
{\catcode`\^^M=13%
\long\gdef\writelof#1^^M{\def\@tempb{#1}%
\ifx\@tempb\@term\let\@tempa\relax\else
\if@filesw\FC@writefile{pof}{#1}\fi\let\@tempa\writelof\fi \@tempa}
\long\gdef\writelot#1^^M{\def\@tempb{#1}%
\ifx\@tempb\@term\let\@tempa\relax\else
\if@filesw\FC@writefile{pot}{#1}\fi\let\@tempa\writelot\fi \@tempa}
}
\def\@fcaption{\refstepcounter\@captype \@ifnextchar[{\@@fcapopt}{\@@fcap}}
\def\@@fcapopt[#1]#2{\@caption\@captype[]{#2}\begingroup\set@literal\@feject}
\def\@@fcap#1{\@caption\@captype[]{#1}\begingroup\set@literal\@feject}
\def\figcapson{\figcapstrue}
\def\figcapsoff{\figcapsfalse}
\def\figmarkon{\figmarktrue}
\def\figmarkoff{\figmarkfalse}
\def\figure{\iffigcaps \let\@tempb=\@zfigure \else \let\@tempb=\@float\fi
\@tempb{figure}}
\def\@zfigure#1{\begingroup\set@literal\@ifnextchar[{\@figure}{\@figure[]}}
\def\@figure[#1]{\@ifundefined{tf@pof}{\newwrite\tf@pof
\if@filesw\immediate\openout\tf@pof\jobname.\lof\relax
\ifFC@appendix\FC@writefile{pof}{\string\doappendix}\fi\fi}{}%
\refstepcounter{figure}\iffigmark\marginpar{\fbox{\fnum@figure}}\fi
\def\@captype{figure}\if@filesw\FC@writefile{pof}{\string\begin{figure}}\fi
\@vfig}
\def\endfigure{\iffigcaps
\endgroup\if@filesw\FC@writefile{pof}{\string\end{figure}}\fi\else
\end@float\fi}
\@namedef{figure*}{\iffigcaps \let\@tempb=\@zsfigure \else
\let\@tempb=\@dblfloat\fi \@tempb{figure}}
\def\@zsfigure#1{\begingroup\set@literal\@ifnextchar[{\@sfigure}{\@sfigure[]}}
\def\@sfigure[#1]{\@ifundefined{tf@pof}{\newwrite\tf@pof
\if@filesw\immediate\openout\tf@pof\jobname.\lof\relax
\ifFC@appendix\FC@writefile{pof}{\string\doappendix}\fi\fi}{}%
\refstepcounter{figure}\iffigmark\marginpar{\fbox{\fnum@figure}}\fi
\def\@captype{figure}\if@filesw\FC@writefile{pof}{\string\begin{figure}}\fi
\@vsfig}
\@namedef{endfigure*}{\iffigcaps\endfigure\else\end@dblfloat\fi}
\def\table{\iffigcaps \let\@tempb=\@ztable \else \let\@tempb=\@float\fi
\@tempb{table}}
\def\@ztable#1{\begingroup\set@literal\@ifnextchar[{\@table}{\@table[]}}
\def\@table[#1]{\@ifundefined{tf@pot}{\newwrite\tf@pot
\if@filesw\immediate\openout\tf@pot\jobname.\lot\relax
\ifFC@appendix\FC@writefile{pot}{\string\doappendix}\fi\fi}{}%
\refstepcounter{table}\iffigmark\marginpar{\fbox{\fnum@table}}\fi
\def\@captype{table}\if@filesw\FC@writefile{pot}{\string\begin{table}}\fi
\@vtab}
\def\endtable{\iffigcaps
\endgroup\if@filesw\FC@writefile{pot}{\string\end{table}}\fi\else
\end@float\fi}
\@namedef{table*}{\iffigcaps \let\@tempb=\@zstable \else
\let\@tempb=\@dblfloat\fi \@tempb{table}}
\def\@zstable#1{\begingroup\set@literal\@ifnextchar[{\@stable}{\@stable[]}}
\def\@stable[#1]{\@ifundefined{tf@pot}{\newwrite\tf@pot
\if@filesw\immediate\openout\tf@pot\jobname.\lot\relax
\ifFC@appendix\FC@writefile{pot}{\string\doappendix}\fi\fi}{}%
\refstepcounter{table}\iffigmark\marginpar{\fbox{\fnum@table}}\fi
\def\@captype{table}\if@filesw\FC@writefile{pot}
{\string\begin{table}}%
\fi\@vstab}
\@namedef{endtable*}{\iffigcaps\endtable\else
\end@dblfloat\fi}
\def\tableofcontents{%
\PackageWarningNoLine{figcaps}
{Ignored: \protect\tableofcontents\space command}}
\def\listoffigures{%
\PackageWarningNoLine{figcaps}
{Ignored: \protect\listoffigures\space command}}
\def\listoftables{%
\PackageWarningNoLine{figcaps}
{Ignored: \protect\listoftables\space command}}
\def\addtocontents#1#2{\relax}
\def\addcontentsline#1#2#3{\relax}
{\catcode`\^^M=\active \gdef\cr@relax{\catcode`\^^M=\active \let^^M=\relax}}
\def\set@literal{\cr@relax \let\do\@makeother\dospecials}
\def\@figurecaps{\@ifundefined{tf@pof}{}{\if@filesw
\immediate\closeout\tf@pof\fi
\@ifundefined{appendixname}{}{\def\appendixname{}}
\parindent\z@
\reset@figtab\clearpage\section*{\figurecapname}\vspace{1cm}%
\@mkboth{\uppercase{\figurecapname}}{\uppercase{\figurecapname}}%
\addcontentsline{toc}{section}{\figurecapname}%
\def\figure{\def\addcontentsline####1####2####3{}%
\def\@captype{figure}%
\begingroup\set@literal\@fcaponly
}\def\endfigure{\endgroup\bigskip}%
{\let\@makecaption=\@makefcaption
\@input{\jobname.\lof}}%
\clearpage}}%
\def\@tablepage{\@ifundefined{tf@pot}{}{\if@filesw
\immediate\closeout\tf@pot\fi
\@ifundefined{appendixname}{}{\def\appendixname{}}
\parindent\z@
\reset@figtab\clearpage\section*{\tablepagename}
\@mkboth{\uppercase{\tablepagename}}{\uppercase{\tablepagename}}%
\def\table{\def\@captype{table}\vbox\bgroup
}\def\endtable{\egroup\bigskip}%
\@input{\jobname.\lot}
\clearpage}}
\def\printfigures{\@figpagetrue}
\def\@figurepage{\if@figpage\@ifundefined{tf@pof}{}{%
\@ifundefined{appendixname}{}{\def\appendixname{}}
\reset@figtab\clearpage\section*{\figurepagename}%
\@mkboth{\uppercase{\figurepagename}}{\uppercase{\figurepagename}}%
\begingroup
\def\figure{\def\@captype{figure}\vbox\bgroup}\def\endfigure{\egroup
\vspace{20pt}}%
\def\label##1{}%
\@input{\jobname.\lof}\newpage\endgroup}\fi}
\long\def\@makefcaption#1#2{%
\vskip 10pt
#1. #2\par }
\def\reset@figtab{%
\setcounter{figure}{0}\setcounter{table}{0}
}
\AtEndDocument{\iffigcaps\@tablepage\@figurecaps\@figurepage\fi}
\let\@appendix=\appendix
\newif\ifFC@appendix \FC@appendixfalse
\def\appendix{\FC@appendixtrue
\@ifundefined{tf@pof}{}{\if@filesw\FC@writefile{pof}{\string\doappendix}\fi}%
\@ifundefined{tf@pot}{}{\if@filesw\FC@writefile{pot}{\string\doappendix}\fi}%
\global\let\@section=\section
\doappendix
\let\@@section=\section
\def\section{%
\@ifundefined{tf@pof}{}{\if@filesw\FC@writefile{pof}{\string
\stepcounter{section}}\fi}%
\@ifundefined{tf@pot}{}{\if@filesw\FC@writefile{pot}{\string
\stepcounter{section}}\fi}%
\@@section}
\global\let\reset@figtab=\@unappendix}
\def\doappendix{%
\global\let\@thefigure=\thefigure
\global\let\@thetable=\thetable
\global\let\@cl@section=\cl@section
\@appendix
}
\def\@unappendix{\FC@appendixfalse
\setcounter{figure}{0}\setcounter{table}{0}
\let\thefigure=\@thefigure
\let\thetable=\@thetable
\let\cl@section=\@cl@section
\let\section=\@section
}
%%
%% <<<<< End of generated file <<<<<<
%%
%% End of file `figcaps.sty'.