-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make it possible to duplicate exercises and/or solutions #11
Comments
This is easily doable - but the user would have to keep track of all the exercise labels and would have to create a new directive for every exercise they want to copy in the new location. Would it make more sense to simply include all? |
hmmm - I could see either one being useful, though am not sure what the most-common approach would be. Perhaps @jni has thoughts as I think the elegant SciPy book does this |
I'm in the copy-all-directive camp, and agree with @najuzilu that it would be painful to have to keep track of each label. (Totally not my forte in any case. 😂) In Elegant SciPy we copy everything. Specifically:
|
sounds good - then maybe we start with a single "copy all" directive, and if folks ask for single-exercise directives in the future, we can consider adding them then? |
I would envision this looking something like ```{copy-exercises}
:include-solutions:
``` We can also introduce a |
Personally I think it should be only
I see clear use case for copying only solutions, or solutions + exercises, but not so much for copying the exercises only. Right? |
We don't have a consistent approach yet. I like the system that @jni is suggesting. It would be great to have this available. |
I believe that @jni mentioned it is common for them to have exercises in individual chapters and additionally at the end of a book. I think that's a pretty common pattern across fields. It would be nice if authors could write one exercise / solution and then be able to display both elsewhere without creating new labels etc.
I wonder if we could just add this as a keyword to the directives, something like:
and it would look for an exercise node of label
somelabel
and, if so, copy / paste it into the new location (perhaps with a link that points to the original)The text was updated successfully, but these errors were encountered: