blob: 148cdbc9bb8890b68577b9e9d5d41d924edceaa5 (
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
|
%%
%% This is file `scandoc-grc.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% qrcstamps.dtx (with options: `copyright,scandoc')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% qrcstamps.sty package, %%
%% Copyright (C) 2017 %%
%% 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.2 of the %%
%% License, or (at your option) any later version. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{execJS}{scan4qrc}
var aBCStamps=new Array();
if (typeof scancomplete=="undefined") {
var scancomplete=false,annots,isStamp,isHashtag;
this.syncAnnotScan();
for (var p=0; p<this.numPages; p++) {
annots=this.getAnnots(p);
if (annots!=null) {
for (var i=0; i<annots.length; i++) {
isStamp=(annots[i].type=="Stamp");
isHashtag=(annots[i].AP.indexOf("\#")==0);
if ( isStamp && isHashtag ) {
aBCStamps.push(p);
break;
}
}
}
}
}
QRCscrollPage.index=0;
function QRCscrollPage() {
if (QRCscrollPage.index<aBCStamps.length) {
this.pageNum=aBCStamps[QRCscrollPage.index];
QRCscrollPage.index+=1;
} else {
app.clearInterval(qrcTO);
scancomplete=true;
this.pageNum=0;
}
}
if (aBCStamps.length>0)
var qrcTO=app.setInterval("QRCscrollPage()", 5);
\end{execJS}
\endinput
%%
%% End of file `scandoc-grc.def'.
|