Skip to content

Commit 8540022

Browse files
committed
testfiles: Add choicequestion prevdepth test and update testfiles
Seems like the example row distance changed slightly. But more importantly, add a test to ensure we pick the right baseline for the prevdepth calculation.
1 parent db04d56 commit 8540022

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed

Diff for: testfiles/classic.lvt

+17
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,23 @@
9090
\choicemulticolitem[text=ctext]{3}{c}
9191
\end{choicequestion}
9292

93+
% Here we test that baselineskip correctly works on the last baseline of the row
94+
\begin{choicequestion}[cols=7]{Question}
95+
\baselineskip=2em
96+
\choiceitem{a \newline a}
97+
\choicemulticolitem{6}{b}
98+
\choiceitem{c}
99+
\choicemulticolitem{6}{d \newline d}
100+
\choiceitem{e}
101+
\choicemulticolitem{6}{g}
102+
\choiceitem{g}
103+
\choiceitemtext{2cm}{6}{h}
104+
\choiceitem{e}
105+
\choicemulticolitem{6}{\newline g}
106+
\choiceitem{g}
107+
\choiceitemtext{2cm}{6}{h}
108+
\end{choicequestion}
109+
93110
\end{MYTESTPAGE}
94111

95112
\OMIT

Diff for: testfiles/classic.tlg

+30
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
6363
(hyperref) removing `\unhcopy' on input line ....
6464
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
6565
(hyperref) removing `\strutbox' on input line ....
66+
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
67+
(hyperref) removing `\unhcopy' on input line ....
68+
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
69+
(hyperref) removing `\strutbox' on input line ....
6670
[3
6771
[84]QObject-Choice=0.4. Question
6872
[85]Answer[0.4]=a
@@ -84,5 +88,31 @@ Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
8488
[100]Box[0.5]=Checkbox,0,192.69606pt,645.68501pt,9.95845pt,9.95845pt,ellipse,1.00374pt,qvar_3,3
8589
[102]Box[0.5]=Checkbox,0,40.1433pt,632.085pt,9.95845pt,9.95845pt,ellipse,1.00374pt,qvar_4,4
8690
[103]Variable[0.5]=qvar
91+
[104]QObject-Choice=0.6. Question
92+
[105]Answer[0.6]=a \newline a
93+
[107]Answer[0.6]=b
94+
[109]Answer[0.6]=c
95+
[106]Box[0.6]=Checkbox,0,40.1433pt,580.21231pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_1,1
96+
[108]Box[0.6]=Checkbox,0,116.41968pt,580.21231pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_2,2
97+
[111]Answer[0.6]=d \newline d
98+
[113]Answer[0.6]=e
99+
[110]Box[0.6]=Checkbox,0,40.1433pt,544.83655pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_3,3
100+
[112]Box[0.6]=Checkbox,0,116.41968pt,544.83655pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_4,4
101+
[115]Answer[0.6]=g
102+
[117]Answer[0.6]=g
103+
[114]Box[0.6]=Checkbox,0,40.1433pt,509.46078pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_5,5
104+
[116]Box[0.6]=Checkbox,0,116.41968pt,509.46078pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_6,6
105+
[119]Answer[0.6]=h
106+
[121]Answer[0.6]=e
107+
[118]Box[0.6]=Checkbox,0,40.1433pt,472.15727pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_7,7
108+
[120]Box[0.6]=Textbox,0,126.0986pt,495.63078pt,431.26604pt,56.90549pt,1.00374pt,0_6_8,
109+
[123]Answer[0.6]=\newline g
110+
[125]Answer[0.6]=g
111+
[122]Box[0.6]=Checkbox,0,40.1433pt,436.9553pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_9,9
112+
[124]Box[0.6]=Checkbox,0,116.41968pt,436.9553pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_10,10
113+
[127]Answer[0.6]=h
114+
[126]Box[0.6]=Checkbox,0,40.1433pt,386.05179pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_11,11
115+
[128]Box[0.6]=Textbox,0,126.0986pt,409.5253pt,431.26604pt,56.90549pt,1.00374pt,0_6_12,
116+
[129]Variable[0.6]=0_6
87117
]
88118
============================================================

Diff for: testfiles/classic.xetex.tlg

+30
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ Package hyperref Warning: Token not allowed in a PDF string (Unicode):
6363
(hyperref) removing `\unhcopy' on input line ....
6464
Package hyperref Warning: Token not allowed in a PDF string (Unicode):
6565
(hyperref) removing `\strutbox' on input line ....
66+
Package hyperref Warning: Token not allowed in a PDF string (Unicode):
67+
(hyperref) removing `\unhcopy' on input line ....
68+
Package hyperref Warning: Token not allowed in a PDF string (Unicode):
69+
(hyperref) removing `\strutbox' on input line ....
6670
[3
6771
[84]QObject-Choice=0.4. Question
6872
[85]Answer[0.4]=a
@@ -84,5 +88,31 @@ Package hyperref Warning: Token not allowed in a PDF string (Unicode):
8488
[100]Box[0.5]=Checkbox,0,192.6964pt,645.68094pt,9.95845pt,9.95845pt,ellipse,1.00374pt,qvar_3,3
8589
[102]Box[0.5]=Checkbox,0,40.1433pt,632.08093pt,9.95845pt,9.95845pt,ellipse,1.00374pt,qvar_4,4
8690
[103]Variable[0.5]=qvar
91+
[104]QObject-Choice=0.6. Question
92+
[105]Answer[0.6]=a \newline a
93+
[107]Answer[0.6]=b
94+
[109]Answer[0.6]=c
95+
[106]Box[0.6]=Checkbox,0,40.1433pt,580.08015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_1,1
96+
[108]Box[0.6]=Checkbox,0,116.41985pt,580.08015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_2,2
97+
[111]Answer[0.6]=d \newline d
98+
[113]Answer[0.6]=e
99+
[110]Box[0.6]=Checkbox,0,40.1433pt,544.58015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_3,3
100+
[112]Box[0.6]=Checkbox,0,116.41985pt,544.58015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_4,4
101+
[115]Answer[0.6]=g
102+
[117]Answer[0.6]=g
103+
[114]Box[0.6]=Checkbox,0,40.1433pt,509.08015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_5,5
104+
[116]Box[0.6]=Checkbox,0,116.41985pt,509.08015pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_6,6
105+
[119]Answer[0.6]=h
106+
[121]Answer[0.6]=e
107+
[118]Box[0.6]=Checkbox,0,40.1433pt,471.77577pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_7,7
108+
[120]Box[0.6]=Textbox,0,126.15309pt,495.24928pt,431.21155pt,56.90549pt,1.00374pt,0_6_8,
109+
[123]Answer[0.6]=\newline g
110+
[125]Answer[0.6]=g
111+
[122]Box[0.6]=Checkbox,0,40.1433pt,436.57468pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_9,9
112+
[124]Box[0.6]=Checkbox,0,116.41985pt,436.57468pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_10,10
113+
[127]Answer[0.6]=h
114+
[126]Box[0.6]=Checkbox,0,40.1433pt,385.67029pt,9.95845pt,9.95845pt,box,1.00374pt,0_6_11,11
115+
[128]Box[0.6]=Textbox,0,126.15309pt,409.1438pt,431.21155pt,56.90549pt,1.00374pt,0_6_12,
116+
[129]Variable[0.6]=0_6
87117
]
88118
============================================================

0 commit comments

Comments
 (0)