diff options
Diffstat (limited to 'macros/latex/contrib/sdaps/sdapsclassic.dtx')
-rw-r--r-- | macros/latex/contrib/sdaps/sdapsclassic.dtx | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/macros/latex/contrib/sdaps/sdapsclassic.dtx b/macros/latex/contrib/sdaps/sdapsclassic.dtx index 7694aa12ee..cfc0d877e9 100644 --- a/macros/latex/contrib/sdaps/sdapsclassic.dtx +++ b/macros/latex/contrib/sdaps/sdapsclassic.dtx @@ -334,7 +334,7 @@ \providecommand{\addinfo}[2]{ - \sdaps_info_write:x{\unexpanded{#1}=\unexpanded{#2}} + \sdaps_info_write:x{Info-\unexpanded{#1}=\unexpanded{#2}} } \newcommand\qid{\tl_use:N \g__sdaps_questionnaire_id_tl} @@ -925,33 +925,38 @@ you~can~get~similar~results~by~temporarily~changing~the~checkbox~style. } noinfo .meta:n = { info=false }, } -\cs_new_protected_nopar:Nn \_sdaps_classic_show_info: +\cs_new_protected_nopar:Nn \_sdaps_classic_info: { - \bool_if:NT \l__sdaps_questionnaire_info_bool { - \begin{info} - \translate{infotext} \\[1ex] - \tl_if_eq:VnTF \g_sdaps_checkmode_tl { checkcorrect } { - \begin{tabularx}{\textwidth}{lXllll} - \checkbox & \strut \translate{info-multi} & \hspace{2em} \checkedbox {} & \translate{info-cross} & \hspace{1em} \correctedbox {} & \translate{info-corrected} \\ - \checkbox* & \strut \translate{info-single} & \hspace{2em} \checkedbox* {} & \translate{info-cross} & \hspace{1em} \correctedbox* {} & \translate{info-corrected} \\ + \translate{infotext} \\[1ex] + \tl_if_eq:VnTF \g_sdaps_checkmode_tl { checkcorrect } { + \begin{tabularx}{\textwidth}{lXllll} + \checkbox & \strut \translate{info-multi} & \hspace{2em} \checkedbox {} & \translate{info-cross} & \hspace{1em} \correctedbox {} & \translate{info-corrected} \\ + \checkbox* & \strut \translate{info-single} & \hspace{2em} \checkedbox* {} & \translate{info-cross} & \hspace{1em} \correctedbox* {} & \translate{info-corrected} \\ + \end{tabularx} + } { + \tl_if_eq:VnTF \g_sdaps_checkmode_tl { check } { + \begin{tabularx}{\textwidth}{lXll} + \checkbox & \strut \translate{info-multi} & \hspace{2em} \checkedbox {} & \translate{info-cross} \\ + \checkbox* & \strut \translate{info-single} & \hspace{2em} \checkedbox* {} & \translate{info-cross} \\ + \end{tabularx} + } { + \tl_if_eq:VnTF \g_sdaps_checkmode_tl { fill } { + \begin{tabularx}{\textwidth}{lXll} + \checkbox & \strut \translate{info-multi} & \hspace{2em} \filledbox {} & \translate{info-fill} \\ + \checkbox* & \strut \translate{info-single} & \hspace{2em} \filledbox* {} & \translate{info-fill} \\ \end{tabularx} } { - \tl_if_eq:VnTF \g_sdaps_checkmode_tl { check } { - \begin{tabularx}{\textwidth}{lXll} - \checkbox & \strut \translate{info-multi} & \hspace{2em} \checkedbox {} & \translate{info-cross} \\ - \checkbox* & \strut \translate{info-single} & \hspace{2em} \checkedbox* {} & \translate{info-cross} \\ - \end{tabularx} - } { - \tl_if_eq:VnTF \g_sdaps_checkmode_tl { fill } { - \begin{tabularx}{\textwidth}{lXll} - \checkbox & \strut \translate{info-multi} & \hspace{2em} \filledbox {} & \translate{info-fill} \\ - \checkbox* & \strut \translate{info-single} & \hspace{2em} \filledbox* {} & \translate{info-fill} \\ - \end{tabularx} - } { - \PackageError{sdaps}{Sorry, there is no help text for the checkmode you have choosen right now! Please pass the noinfo optional argument to the questionnaire environment!}\@ehb % - } - } + \PackageError{sdaps}{Sorry, there is no help text for the checkmode you have choosen right now! Please pass the noinfo optional argument to the questionnaire environment!}\@ehb % } + } + } +} + +\cs_new_protected_nopar:Nn \_sdaps_classic_show_info: +{ + \bool_if:NT \l__sdaps_questionnaire_info_bool { + \begin{info} + \_sdaps_classic_info: \end{info} } \ignorespaces @@ -1059,6 +1064,10 @@ you~can~get~similar~results~by~temporarily~changing~the~checkbox~style. } \sdaps_page_end: } +\def\sdapsinfo{ + \_sdaps_classic_info: +} + % \end{macrocode} % % \subsection{The group environments} |