Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subexercises or exercise parts (like 1a, 1b, 1c). #42

Closed
jonascj opened this issue Nov 21, 2018 · 4 comments
Closed

Subexercises or exercise parts (like 1a, 1b, 1c). #42

jonascj opened this issue Nov 21, 2018 · 4 comments
Assignees
Labels
duplicate this has been reported earlier suggestion suggestions and feature requests

Comments

@jonascj
Copy link

jonascj commented Nov 21, 2018

I quite often see, and myself create, exercises which consist of multiple subexercises or parts, like this:

# Exercise 1
Two cars are traveling in opposite directions. 
They are 2.7km apart, driving 50km/h and 65km/h, respectively.
a) Write the equations of motion for the two cars.
b) Find the time t at which the two cars will meet.
c) Find the distance traveled by the cars when they meet.

As far as I can see, this is not a feature directly provided by the xsim package. Any recommendations on how to achieve this by other means?

A solution with the enumerate or itemize environment works, but maybe there are other ways.

\begin{exercise}
Two cars travel ....
\begin{enumerate}
\item Write the equations ...
\item Find the time ...
\item Find the distance ...
\end{enumerate}
\end{exercise}
@psttf
Copy link

psttf commented Dec 25, 2018

Regarding xsim-specific features of subexercises it would be nice to print just a single subexercise while keeping the parent-exercise text.

E.g. in textbook I want the following:

Bring to normal form:
(1) Some formula. (2) Another formula.

But I want to reference only one of such exercises in exam sheet:

Bring to normal form:
Some formula

@cgnieder
Copy link
Owner

This is an interesting problem and definitely something worth being implemented. This will have to wait, though, as I have way too less time for package development lately…

@cgnieder cgnieder added the suggestion suggestions and feature requests label Sep 26, 2019
@cgnieder cgnieder self-assigned this Sep 26, 2019
@cgnieder
Copy link
Owner

cgnieder commented Mar 8, 2020

Currently it seems that nested exercises might be a way for some people, cf. issue #57

@cgnieder cgnieder added the duplicate this has been reported earlier label Mar 24, 2020
@cgnieder
Copy link
Owner

I'll close this as duplicate of issue #67. We'll discuss this matter there more closely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate this has been reported earlier suggestion suggestions and feature requests
Projects
None yet
Development

No branches or pull requests

3 participants