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

Tagging exercises #2

Closed
Strauman opened this issue Apr 3, 2018 · 13 comments
Closed

Tagging exercises #2

Strauman opened this issue Apr 3, 2018 · 13 comments
Labels
new feature New accepted feature
Projects

Comments

@Strauman
Copy link
Owner

Strauman commented Apr 3, 2018

Ability to tag exercises and tell sprite only to build exercises with given tags.
Example:

%someExercisefile.tex
\tag{exam}

Then in main file

%main.tex
\sprite[tags={exam}]
@Strauman Strauman added new feature New accepted feature help wanted Extra attention is needed labels Apr 3, 2018
@Strauman Strauman added this to Backlog in Backlog Apr 12, 2018
@Strauman Strauman added this to Backlog in 0.2.1 Apr 12, 2018
@thorstengrothe
Copy link

I played around with the new tagging option of your pre-release and it works pretty well, great work!

I found three things:

  1. One must tag all problems otherwise the normal \buildset command shows nothing.
  2. Is it possible to assign multiple tags like so: tag=easy, sunshine, fun? I tried it out but it does not work here, only one tag is possible.
  3. I personally have a lot of courses and want to reuse my problems. For that I want to use tags because I need to know which problems belong to which courses: tags=HH17,HH18,HH19. That way I know what problems I used in the past. I would be very convenient if the user could toggle between showing/not showing tags when the document is compiled, like so:
Problem 1
Tags=easy % Toogle on or off
(1a) bla bla

@Strauman
Copy link
Owner Author

Strauman commented Aug 26, 2018

Thank you so much for testing!

  1. This is really strange! I'm reproducing it nicely, and I'll fix \buildset command ASAP.
  2. Multiple tags in lists are possible to implement, and I'll look into it.
  3. I'm not really sure what the problem is, but you can build multiple by tags using \buildtags{taglist}{setname} as described on page 12 in the docs. If this is not what you meant, would you care to clarify?
    Also: @thorstengrothe I'm mentioning you in the changelog for thanks in the docs with a link to your github user. Let me know if this is not okay!

@thorstengrothe
Copy link

@Strauman

Ok, let me try to clearify Point 3. Say I have 50 part exercises and I used them for different courses over the years. So I tag them for example with HH17, HH194

Now I make a new exam and would like to see my tags in a first compile. Exsheets has such a feature: debug=true:

exsheets_tags

This way I now when I used the part problems (HH17, HH194). Now I use your nice \ShowNumbers command and can select my part problems. Is that clearer now?

In short: a command \ShowTags like your very useful \ShowNumbers would be fine!

Also: Oh it's very nice, that someone mentions me in a changelog, thank you very much!

@Vouivre
Copy link

Vouivre commented Aug 26, 2018

Hi, I have also tried the tagging features and you already know the problem.

I just want to add:

  • probably I won't tag every exercises, so it's great if you can fix the issue
  • for sure I will add multiple tags sometimes to a problem.

Thank you!

@Strauman
Copy link
Owner Author

@thorstengrothe It's clear now! This will be fixed!

@Strauman
Copy link
Owner Author

@tristelune1 The every exercise-bug should already be fixed in the prerelease-version. See releases

@Vouivre
Copy link

Vouivre commented Aug 27, 2018

Unfortunately it isn't fixed for me. I have downloaded the last version, I have tagged nothing and I compiled with Latex. With version b76 only "Solution" was displayed. With version b77:

 Exercise 1
     Solution
 Exercise 2
     Solution

So only the "headers" are displayed. The description of the problem is not printed. Do you need a small example ? If yes, tell me the best way to send it to you. Perhaps you have a better alternative than Pastebin.

@Strauman
Copy link
Owner Author

@tristelune1 Thank you so much for testing!

I can't reproduce, so please send me an MWE. The easiest would be writing the code here. Use three backticks, like these: ``` YOUR CODE ``` to format it nicely! You could also upload code here or, as you mention, use pastebin!

@Strauman Strauman removed the help wanted Extra attention is needed label Aug 27, 2018
@Strauman
Copy link
Owner Author

Reproduced with \makeset{11}{\exclude{secondexercise}{1}}

@Strauman
Copy link
Owner Author

@tristelune1 Please open new issue next time, if the title doesn't match :)

Strauman added a commit that referenced this issue Aug 27, 2018
@Strauman
Copy link
Owner Author

@tristelune1 Please try now! If you have issues, please open a new issue if it isn't directly related to tagging exercises :)

0.2.1 automation moved this from In progress to Done Aug 27, 2018
@Vouivre
Copy link

Vouivre commented Aug 28, 2018

It's fixed, thank you! Great work!

Next time I'll open a new issue, but for me it was related.

@Strauman
Copy link
Owner Author

@tristelune1 Thanks for your help in these matters, and I'll be sure to mention you in the docs of the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New accepted feature
Projects
No open projects
0.2.1
  
Done
Development

No branches or pull requests

3 participants