File: ocgx2.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (107 lines) | stat: -rw-r--r-- 3,704 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# ocgx2 package
# Matthew Bertucci 2022/08/12 for v0.55

#include:ocgbase

#keyvals:\usepackage/ocgx2#c
dvipdfmx
viewocg=#always,never,ifvisible
printocg=#always,never,ifvisible
exportocg=#always,never,ifvisible
showingui=#true,false,always,never,iffirstuse
tikz#true,false
ocgcolorlinks#true,false
#endkeyvals

\begin{ocg}{layer name}{ocg id}{initial visibility}
\begin{ocg}[options%keyvals]{layer name}{ocg id}{initial visibility}
\end{ocg}

#keyvals:\begin{ocg}
viewocg=#always,never,ifvisible
printocg=#always,never,ifvisible
exportocg=#always,never,ifvisible
showingui=#true,false,always,never,iffirstuse
listintoolbar=#true,false,always,never,iffirstuse
radiobtngrps={%<group1,group2,...%>}
#endkeyvals

\begin{ocmd}{visibility policy,visibility expression}
\begin{ocmd}[id]{visibility policy,visibility expression}
\end{ocmd}

\AllOn{ocg1,ocg2,...}
\AnyOn{ocg1,ocg2,...}
\AnyOff{ocg1,ocg2,...}
\AllOff{ocg1,ocg2,...}
\Not{item}
\And{item1,item2,...}
\Or{item1,item2,...}

\switchocg{ocg1,ocg2,...}{link text%text}
\switchocg[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\switchocg*{ocg1,ocg2,...}{link text%text}
\switchocg*[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\showocg{ocg1,ocg2,...}{link text%text}
\showocg[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\showocg*{ocg1,ocg2,...}{link text%text}
\showocg*[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\hideocg{ocg1,ocg2,...}{link text%text}
\hideocg[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\hideocg*{ocg1,ocg2,...}{link text%text}
\hideocg*[trigger%keyvals]{ocg1,ocg2,...}{link text%text}
\actionsocg{switchocg1,...}{showocg1,...}{hideocg1,...}{link text%text}
\actionsocg[trigger%keyvals]{switchocg1,...}{showocg1,...}{hideocg1,...}{link text%text}
\actionsocg*{switchocg1,...}{showocg1,...}{hideocg1,...}{link text%text}
\actionsocg*[trigger%keyvals]{switchocg1,...}{showocg1,...}{hideocg1,...}{link text%text}

#keyvals:\switchocg,\switchocg*,\showocg,\showocg*,\hideocg,\hideocg*,\actionsocg,\actionsocg*
onmousenter
onmouseexit
onmousedown
onmouseup
onmouseall
#endkeyvals

\ocglinkprotect{text%plain}

#ifOption:tikz
#include:tikz
# loads calc tikzlibrary
#keyvals:\tikzset#c,\begin{tikzpicture}#c,\begin{scope}#c,\node#c
ocg={%<options%>}
ocmd={%<options%>}
trigger ocg=#onmousenter,onmouseexit,onmousedown,onmouseup,onmouseall
switch ocg={%<ocg list%>}
show ocg={%<ocg list%>}
hide ocg={%<ocg list%>}
actions ocg={%<ocg list1%>}{%<ocg list2%>}{%<ocg list3%>}
switch ocg with mark on={%<ocg ref%>}{%<ocg list%>}
switch ocg with mark off={%<ocg ref%>}{%<ocg list%>}
#endkeyvals
#endif
#ifOption:tikz=true
#include:tikz
# loads calc tikzlibrary
#keyvals:\tikzset#c,\begin{tikzpicture}#c,\begin{scope}#c,\node#c
ocg={%<options%>}
ocmd={%<options%>}
trigger ocg=#onmousenter,onmouseexit,onmousedown,onmouseup,onmouseall
switch ocg={%<ocg list%>}
show ocg={%<ocg list%>}
hide ocg={%<ocg list%>}
actions ocg={%<ocg list1%>}{%<ocg list2%>}{%<ocg list3%>}
switch ocg with mark on={%<ocg ref%>}{%<ocg list%>}
switch ocg with mark off={%<ocg ref%>}{%<ocg list%>}
#endkeyvals
#endif

# deprecated
\toggleocgs{layerid1 layerid2 ...}{link text%text}#*
\toggleocgs[option%keyvals]{layerid1 layerid2 ...}{link text%text}#*
\showocgs{layerid1 layerid2 ...}{link text%text}#*
\showocgs[option%keyvals]{layerid1 layerid2 ...}{link text%text}#*
\hideocgs{layerid1 layerid2 ...}{link text%text}#*
\hideocgs[option%keyvals]{layerid1 layerid2 ...}{link text%text}#*
\setocgs{tlayerid1 ...}{slayerid1 ...}{hlayerid1 ...}{link text%text}#*
\setocgs[option%keyvals]{tlayerid1 ...}{slayerid1 ...}{hlayerid1 ...}{link text%text}#*