I am writing a math textbook, and hope to have a separate solutions manual. I'd like for the manual to be able to refer to problems in the original book so that LaTeX, or I, can catch when the exercise numbers change since I am always revising them. Also I may wish to skip some in the solutions manual.

It occurs to me that another solution would be to have one big, happy document but "turn off" the table of contents generation after the main text and then restart the page numbering for the manual.

Perhaps someone has a better solution than either of these. Thanks in advance.

  • I think this is what you're looking for: en.wikibooks.org/wiki/TeX/includeonly
    – Seamus
    Jun 17, 2016 at 16:26
  • 2
    Isn't xr exactly meant for this?
    – user31729
    Jun 17, 2016 at 16:28
  • 1
    @ChristianHupfer yes, excellent package that, who wrote it? Jun 17, 2016 at 17:16
  • 1
    @DavidCarlisle: Some strange British bloke, can't remember his name right now ;-)
    – user31729
    Jun 17, 2016 at 17:21
  • 3
    I'm voting to close this question as off-topic because the issue could be solved in comments
    – user31729
    Feb 3, 2017 at 21:41


Browse other questions tagged .