Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-perpage.sty

raw
1 %%
2 %% This is file `lwarp-perpage.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `perpage')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackageDrop{perpage}[2014/10/25]
19 \newcommand\AddAbsoluteCounter[1]
20 {
21 \@ifundefined{c@abs#1}{%
22 \expandafter\newcount\csname c@abs#1\endcsname
23 \global\value{abs#1}\@ne
24 \expandafter\xdef\csname theabs#1\endcsname{%
25 }%
26 }
27 {}
28 }
29
30 \AddAbsoluteCounter{page}
31 \def\theabspage{1}
32
33 \newcommand*\MakePerPage[2][1]{%
34 \ifltxcounter{#2Reset}{%
35 \setcounter{#2Reset}{#1}%
36 }{
37
38 }%
39 }
40
41 \newcommand*\MakeSorted[1]{}
42
43 \newcommand*\MakeSortedPerPage[2][1]{%
44 \ifltxcounter{#2Reset}{%
45 \setcounter{#2Reset}{#1}%
46 }{
47 }%
48 }
49
50 \newcommand*{\theperpage}{1}
51
52 \endinput
53 %%
54 %% End of file `lwarp-perpage.sty'.