the author of a book includes exercises and solutions, with a home-grown "delay" mechanism that saves the solutions and posts them at the end of a chapter.
unfortunately, some of the solutions contain numbered equations, and the numbers are assigned at the time they are input, so equation numbers end up out of order.
has this question appeared here, or does anyone know of a workable solution?