I am preparing a question bank type book which contains problems as well as answer keys to all the problems. I'm doing this using
org-mode. This will be exported to LaTeX PDF for my final book.
However, there is a problem I'm running into. To put it very simply, here is the problem:
My book will have 2 sections: one containing problems, and the other containing answers to those problems. In org-mode, I have one major heading for Problems, under which I create sub-headings for each new problem. Inside each problem sub-heading, I have another sub-heading which contains the answer to that problem. In my final book, I wish the answers to be in a separate chapter and not directly after the problem. However, in
org-mode, I am adding the answers as a new sub-heading inside each problem itself for my own convenience of writing.
Now, I want to somehow to segregate out the answers' subheadings and push them into new section during my LaTeX export. Can this be done?
Could you suggest some other methodology for writing a question-answer type book, where we have answers in a separate section of the book?