Feature Tracker

ID 51🔗
Date: 2021-03-03 17:46:33
Status Open
Category probsoln
Summary Provisions for a default problem

Sign in to subscribe to notifications about this report.


Modification to make \useproblem fallback on a default label if the supplied one isn't defined.


%% modify probsoln to allow the use of a default problem label
	%% undefined label?
		%% is a default problem label defined?
		%% if so, use it, otherwise throw an error message
			{Problem \defproblabel and Problem ‘#2’ are not defined in data set ‘#1’}{}%
			\def\@useprob@next{\csname prob@data@#1@\defproblabel\endcsname}%
		\def\@useprob@next{\csname prob@data@#1@#2\endcsname}%

%% exercises
\item This is exercise 1 on the topic.
\item This is exercise 2 on the topic.

%% exam questions
This is the default question for topic 1 on any exam.
This is the question for topic 1 for exam A.
This is the question for topic 1 on exam B.

%% document


Show the exercises for this topic here.


Show how this topic is tested across four different exams.

\item Exam A \useproblem{exam-topic1-A}
\item Exam B \useproblem{exam-topic1-B}
\item Exam C \useproblem{exam-topic1-C}
\item Exam D \useproblem{exam-topic1-D}

I use a command \newcommand{\theSet}{A} in the preamble. I can substitute \useproblem{exam-topic1-\theSet} to make different versions of the exam. In this way, I need to only make a DEFAULT problem. It will be used automatically regardless of the letter designation for \theSet.


No mwe.tex




Add Comment

Name (optional):

Are you human? Please confirm the feature request ID (which can be found at the top of this page) or login if you have an account.


You can use the following markup:


[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/featuretracker.php?key=51