File: dps.cwl

package info (click to toggle)
texstudio 4.8.7%2Bds-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 108,288 kB
  • sloc: cpp: 108,337; xml: 18,660; ansic: 8,977; javascript: 177; sh: 147; python: 73; makefile: 53
file content (202 lines) | stat: -rw-r--r-- 4,144 bytes parent folder | download | duplicates (2)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# dps package
# Matthew Bertucci 2022/05/10 for v1.7

#include:xkeyval
#include:web
#include:eforms
#include:graphicx
#include:verbatim
#include:calc
#include:multicol
#include:multido

#keyvals:\usepackage/dps#c
nonrandomized
!nonrandomized
viewmode
!viewmode
showletters
!showletters
showanswerlabels
!showanswerlabels
showanswerkey
!showanswerkey
usebtnappr
uselayers
savedata
!savedata
lang=#english,german,custom
#endkeyvals

#ifOption:usebtnappr
#include:icon-appr
# loads usebtnappr.def
\quesNumTxt{text}#*
\quesNumTxTPost#*
\begin{setContent}{name}
\end{setContent}
\ltrToNum{arg}#*
\dpsEmbedIcons
\TFOR#S
\dpsQuesIcon{name}{width}{height}
\dpsQuesIcon[modifications]{name}{width}{height}
\dpsOtherIcon{name}{width}{height}
\dpsOtherIcon[modifications]{name}{width}{height}
\placeQuesIcon{placement cmds}
\placeOtherIcon{placement cmds}
\dpsEmbedSideShow{n}{imagefile}#g
\dpsEmbedSideShow[ext]{n}{imagefile}#g
\dpsNumSideShowPics#*
\tileKVs{arg}#S
\insertSideshow{rows}{cols}{width}{height}
\iconPresets#*
#endif

#ifOption:uselayers
# loads useocgappr.def
\fmtOCGQues{formatting cmds}
\dpsQuesLayer{arg}
\placeQuesLayer{formatting cmds}
\placeOtherLayer{formatting cmds}
\insertQuesLayer{arg}
\quesNumTxt{text}#*
\quesNumTxTPost#*
\begin{setContent}{name}
\end{setContent}
\scArg#S
\insertSideshow{rows}{cols}{imagefile}#g
\insertSideshow{rows}{cols}[options%keyvals]{imagefile}#g
#keyvals:\insertSideshow
alt={%<alt text%>}
bb=%<llx lly urx ury%>
bbllx=
bblly=
bburx=
bbury=
natwidth=
natheight=
hiresbb#true,false
pagebox=#mediabox,cropbox,bleedbox,trimbox,artbox
viewport=%<llx lly urx ury%>
trim=%<llx lly urx ury%>
angle=%<degrees%>
origin=
width=##L
height=##L
totalheight=##L
keepaspectratio#true,false
scale=%<factor%>
clip#true,false
draft#true,false
type=%<file type%>
ext=%<file extension%>
read=%<read-file extension%>
command=
quiet
page=%<page number%>
interpolate#true,false
decodearray={%<color array%>}
#endkeyvals
#endif

\AnswerKey
\setdpsfootskip{skip}
\DeclarePuzzle{{%<letter1%>}{%<name1%>}{%<letter2%>}{%<name2%>}%<...%>}
\nPuzzleCols{n}
\sideshowPackaged
\begin{Composing}
\end{Composing}
\begin{cQ}{name}
\end{cQ}
\begin{cA}{name}
\begin{cA}[alt-letter]{name}
\end{cA}
\writeComposingEnv
\insertPuzzle{n}
\PuzzleAppearance{modifications}
\rowsep{skip}
\wdPuzzleFields{length}
\htPuzzleFields{length}
\displayRandomizedQuestions
\QuesAppearance{modifications}
\widestFmtdQNum{string}
\htOfQ{length}
\displayRandomizedAnswers
\displayRandomizedAnswersLeftPanel
\displayRandomizedAnswersRightPanel
\AnsAppearance{modifications}
\ltrFmtA{definition}
\widestFmtdALtr{string}
\htOfA{length}
\placeMessageField{width}{height}
\placeMessageField[modifications]{width}{height}
\useRandomSeed{seed}
\inputRandomSeed
\useLastSeed
\printDPS{width}{height}
\printDPS[modifications]{width}{height}
\resetDPS{width}{height}
\resetDPS[modifications]{width}{height}
\dpsResetHook{JS code%definition}
\dpsFinishedEvent{JS code%definition}
\dpsfinishedevent#*
\randomizePicMappings
\sortPicMappings
\clearOnCloseOrSave
\threshold{n}
\dsthreshold#*
\penaltypoints{n}
\dspenaltypoints#*
\passing{n}
\dspassing#*

# from random.tex
\randomi#*
\nextrandom#*
\setrannum{count register}{min}{max}#*
\setrandim{dimen register}{min}{max}#*
\pointless#*
\PoinTless#S
\ranval#*

# not documented
\afterQhookA{arg1}#S
\aPenaltyMsgs#S
\aPenaltyScale#S
\argi#S
\Awidth#S
\bRandPicMaps#S
\checkboxTmp#S
\chooseQ#S
\ComposingEnvMsg#S
\congratFinished#S
\dpsA{arg1}{arg2}#S
\dpsAitemOptArg#S
\DPSIndxList#S
\dpsInputBtnAppr#S
\dpsInputOcgAppr#S
\dpsLastSeed{seed}#*
\DPSNamesList#S
\dpsQ{arg1}#S
\dpsWCSWrnMsg#S
\finalPenaltyScore#S
\getLetterNext#S
\lastOnLeft#S
\lngthOfMsg#S
\msgi#S
\msgii#S
\nCols#S
\nextPuzzleChar#*
\nextPuzzleLetter#*
\nextPuzzlePair#*
\OnFocusQhookAA#S
\puzzleParameters#*
\Qht#S
\Qwidth#S
\redefnextrandomAsNeeded#*
\regretPleased#S
\reportPenaltyPoints#S
\signInMsg#S
\textfieldTmp#S
\triedTooMuch#S
\WriteBookmarks#S