-
Notifications
You must be signed in to change notification settings - Fork 23
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
Buffer problem #122
Comments
Sorry I don't get your point. A complete example would be a best description. |
Thank you for your answer. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Élève 2% (second student)%%%%%%%%%%%%%%%%%%%%%%%%%%%%% And so on until the sixth student (In my code there are only 2 students, because the code is exactly the same for the other students, except the tag, of course).
I hope I am clear |
I will try to do it short. I think this is not a good way because the external final is input 6 times. |
I guess I am not clear. Never mind |
Hello,
Here is the situation.Each week, six of my students have a small exam.For each chapter, I created a file with exercises and solutions. These exercises are tagged for each student (eleve=1, …, eleve=6).Then each week, I create a document with the exercises for the students.
Here is a part of the code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Élève 1 (first student)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\xsimsetup{
solution/print=true,
eleve=1}
\input{\cheminun/coursColles-\chapun}
\input{\chemindeux/coursColles-\chapdeux}
\input{\chemintrois/coursColles-\chaptrois}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Élève 2% (second student)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\xsimsetup{eleve=2}
\input{\cheminun/exosColles-\chapun}
\input{\chemindeux/exosColles-\chapdeux}
\input{\chemintrois/exosColles-\chaptrois}
And so on until the sixth student
And then I have a buffer problem. I there are only 3 students, it works fine (but the compilation is very long).I guess it is because each chapter (which contains the tagged exercises) is read six times, and there may be up to 4 chapters (in my example of code, there are 3 chapters). The chapters are external files.I guess I can avoid this buffer problem with collections but I didn’t succeed. What I would like:- each chapter is read only one time- when the chapter is read, the 6 collections are created (a collection for tag « eleve=1 », …, « eleve=6 »)- when I print the exercises and the solutions, the exercises for each student are numbered 1, 2, … and not as they are numbered in each chapter.
I hope I am clear
The text was updated successfully, but these errors were encountered: