summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/latex/annot-pro/scandoc-anp.def
blob: f651c08e1eb3c9a66b0e42529c448013acbf3f07 (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
%%
%% This is file `scandoc-anp.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% annot_pro.dtx  (with options: `copyright,scandoc')
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% annot_pro package,                                   %%
%% Copyright (C) 2002-2017  D. P. Story                 %%
%%   dpstory@uakron.edu                                 %%
%%                                                      %%
%% This program can 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 (at your option) any later version.      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{execJS}{scan4anp}
var aANPStamps=new Array();
if (typeof scancomplete=="undefined") {
    var scancomplete=false;
    this.syncAnnotScan();
    for (var p=0; p<this.numPages; p++) {
         a=this.getAnnots(p);
         if (a!=null) {
            for (var i=0; i<a.length; i++) {
                if ( a[i].type=="Stamp" && a[i].AP.indexOf("\#")==0 ) {
                    aANPStamps.push(p);
                    break;
                }
            }
        }
    }
}
ANPscrollPage.index=0;
function ANPscrollPage() {
    if (ANPscrollPage.index<aANPStamps.length) {
        this.pageNum=aANPStamps[ANPscrollPage.index];
        ANPscrollPage.index+=1;
    } else {
        app.clearInterval(anpTO);
        scancomplete=true;
        this.pageNum=0;
    }
}
if (aANPStamps.length>0)
    var anpTO=app.setInterval("ANPscrollPage()", 5);
\end{execJS}
\endinput
%%
%% End of file `scandoc-anp.def'.