How to do subexercises or exercise parts with the xsim package?











up vote
1
down vote

favorite












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.



documentclass{article}
usepackage{xsim}
begin{document}
begin{exercise}
Two cars travel ....
begin{enumerate}
item Write the equations ...
item Find the time ...
item Find the distance ...
end{enumerate}
end{exercise}
end{document}


If one uses a solution like the above one, one has to keep the subexercises or parts in the same order in both the exercise and solution environment manually.










share|improve this question






















  • Which features of an xsim exercise do you need for your subexercises?
    – TeXnician
    yesterday










  • For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
    – Jonas Camillus Jeppesen
    yesterday















up vote
1
down vote

favorite












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.



documentclass{article}
usepackage{xsim}
begin{document}
begin{exercise}
Two cars travel ....
begin{enumerate}
item Write the equations ...
item Find the time ...
item Find the distance ...
end{enumerate}
end{exercise}
end{document}


If one uses a solution like the above one, one has to keep the subexercises or parts in the same order in both the exercise and solution environment manually.










share|improve this question






















  • Which features of an xsim exercise do you need for your subexercises?
    – TeXnician
    yesterday










  • For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
    – Jonas Camillus Jeppesen
    yesterday













up vote
1
down vote

favorite









up vote
1
down vote

favorite











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.



documentclass{article}
usepackage{xsim}
begin{document}
begin{exercise}
Two cars travel ....
begin{enumerate}
item Write the equations ...
item Find the time ...
item Find the distance ...
end{enumerate}
end{exercise}
end{document}


If one uses a solution like the above one, one has to keep the subexercises or parts in the same order in both the exercise and solution environment manually.










share|improve this question













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.



documentclass{article}
usepackage{xsim}
begin{document}
begin{exercise}
Two cars travel ....
begin{enumerate}
item Write the equations ...
item Find the time ...
item Find the distance ...
end{enumerate}
end{exercise}
end{document}


If one uses a solution like the above one, one has to keep the subexercises or parts in the same order in both the exercise and solution environment manually.







exam xsim






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









Jonas Camillus Jeppesen

133




133












  • Which features of an xsim exercise do you need for your subexercises?
    – TeXnician
    yesterday










  • For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
    – Jonas Camillus Jeppesen
    yesterday


















  • Which features of an xsim exercise do you need for your subexercises?
    – TeXnician
    yesterday










  • For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
    – Jonas Camillus Jeppesen
    yesterday
















Which features of an xsim exercise do you need for your subexercises?
– TeXnician
yesterday




Which features of an xsim exercise do you need for your subexercises?
– TeXnician
yesterday












For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
– Jonas Camillus Jeppesen
yesterday




For my purpose it is mostly the automatic numbering and keeping exercises/solutions paired up correctly. If I change the order of my enumerate items in the exercise environment, then I manually have to change them in the in the solution environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.
– Jonas Camillus Jeppesen
yesterday















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461072%2fhow-to-do-subexercises-or-exercise-parts-with-the-xsim-package%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461072%2fhow-to-do-subexercises-or-exercise-parts-with-the-xsim-package%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)