summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jj_game/jjgpro.def
blob: e9524779abe88dc36176573165063c8c6331b8ad (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
%%
%% This is file `jjgpro.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jj_game.dtx  (with options: `copyright,jjgpro')
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% jj_game.cls class file,                              %%
%% Copyright (C) 2000-2016  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.      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\noPrintLayer#1{%
    \literalps@out{/Print [/Print] [(xb.#1)] AddASEvent}%
    \literalps@out{(xb.#1) <<
/Print<< /PrintState/OFF >> >> SetOCGUsage}%
}
\def\bJJGInsertLayer{\xBld{q\the\rownum\the\colnum}}
\def\eJJGInsertLayer{\eBld\noPrintLayer{q\the\rownum\the\colnum}}
\def\jjAdditionalJSActions{/Next <<\JS{%
    if ( typeof pushCell\the\rownum\the\colnum\space!= "undefined")
            toggleSetThisLayer("q\the\rownum\the\colnum",true);}>>}
\begin{execJS}{lockocgs}
var o = this.getOCGs();
for (var i = 0; i < o.length; i++)
    o[i].locked = true;
\end{execJS}
\endinput
%%
%% End of file `jjgpro.def'.