File: exam-zh-question.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 (146 lines) | stat: -rw-r--r-- 3,859 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
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
# exam-zh-question package
# Matthew Bertucci 2022/08/14 for v0.1.17

#include:expl3
#include:xparse
#include:amsthm
#include:tcolorbox
# loads most option of tcolorbox
#include:xeCJKfntef
#include:linegoal
# loads shapes.misc tikzlibrary

#keyvals:\examsetup,\ExamPrintAnswerSet
question={%<键值列表%>}
question/show-answer#true,false
question/points=%<number%>
question/show-points=#true,auto,false
question/points-separate-par#true,false
question/top-sep=##L
question/bottom-sep=##L
question/index=%<integer%>
question/label=%<label%>
question/combine-fillin#true,false
question/combine-fillin-args=%<\fillin 命令的参数%>
question/hang#true,false
question/label-align=#left,center,right
paren={%<键值列表%>}
paren/show-answer#true,false
paren/show-paren#true,false
paren/text-color=#%color
paren/type=#hfill,none
fillin={%<键值列表%>}
fillin/type=#line,paren,circle,rectangle,blank
fillin/no-answer-type=#blacktriangle,counter,none
fillin/no-answer-counter-index=%<integer%>
fillin/no-answer-counter-label=%<label%>
fillin/show-answer#true,false
fillin/width=##L
fillin/width-type=#fill,normal
fillin/color=#%color
fillin/text-color=#%color
fillin/paren-type=#banjiao,quanjiao
solution={%<键值列表%>}
solution/show-solution#true,false
solution/parbreak#true,false
solution/show-qed#true,false
solution/qedsymbol=%<symbol%>
solution/label-content=%<content%>
solution/label-punct=%<punct%>
solution/score-pre-content=%<content%>
solution/score-post-content=%<content%>
solution/score-format=%<风格设置%>
solution/score-showleader#true,false
solution/text-color=#%color
solution/top-sep=##L
solution/bottom-sep=##L
solution/blank-type=#none,manual,hide
solution/blank-vsep=##L
#endkeyvals

\begin{question}
\begin{question}[键值列表%keyvals]
\end{question}
\begin{problem}
\begin{problem}[键值列表%keyvals]
\end{problem}
\questionsetup{键值列表%keyvals}

#keyvals:\begin{question},\begin{problem},\questionsetup
show-answer#true,false
points=%<number%>
show-points=#true,auto,false
points-separate-par#true,false
top-sep=##L
bottom-sep=##L
index=%<integer%>
label=%<label%>
combine-fillin#true,false
combine-fillin-args=%<\fillin 命令的参数%>
hang#true,false
label-align=#left,center,right
#endkeyvals

\paren
\paren[答案]
\AddQuestionCounter{LaTeX command%cmd}{internal command%definition}#d
\circlednumber{数字或计数器名字}
\circlednumber*{数字或计数器名字}
\tikzcirclednumber{数字或计数器名字}#S
\tikzcirclednumber*{数字或计数器名字}#S

\fillin
\fillin[答案]
\fillin[键值列表%keyvals][答案]
\fillin*
\fillin*[答案]
\fillin*[键值列表%keyvals][答案]
\fillinsetup{键值列表%keyvals}

# need #c because of odd syntax for \fillin
#keyvals:\fillin#c,\fillin*#c,\fillinsetup
type=#line,paren,circle,rectangle,blank
no-answer-type=#blacktriangle,counter,none
no-answer-counter-index=%<integer%>
no-answer-counter-label=%<label%>
show-answer#true,false
width=##L
color=#%color
text-color=#%color
#endkeyvals

\AddFillinCounter{LaTeX command%cmd}{internal command%definition}#d

\begin{solution}
\begin{solution}[键值列表%keyvals]
\end{solution}

#keyvals:\begin{solution}
show-solution#true,false
parbreak#true,false
show-qed#true,false
qedsymbol=%<symbol%>
label-content=%<content%>
label-punct=%<punct%>
score-pre-content=%<content%>
score-post-content=%<content%>
score-format=%<风格设置%>
score-showleader#true,false
text-color=#%color
top-sep=##L
bottom-sep=##L
blank-type=#none,manual,hide
blank-vsep=##L
#endkeyvals

\score{分数}

# from most option of tcolorbox
#include:amsmath
#include:incgraph
#include:listings
#include:listingsutf8
#include:pdftexcmds
#include:shellesc
#include:tikz
#include:pdfcol