summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/preview/prcounters.def
blob: f8daac8ff99442ddfa94a283a01dc35196e60f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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'.